lib/google/ads/google_ads/factories/v1/operations.rb in google-ads-googleads-2.3.0 vs lib/google/ads/google_ads/factories/v1/operations.rb in google-ads-googleads-2.4.0

- old
+ new

@@ -10,74 +10,162 @@ def self.feed_attribute require "google/ads/google_ads/v1/resources/feed_pb.rb" Google::Ads::GoogleAds::V1::Resources::FeedAttributeOperation.new end - # Create a new CustomInterestOperation + # Create a new KeywordPlanKeywordOperation # - # @return [Google::Ads::GoogleAds::V1::Services::CustomInterestOperation] the operation - def self.custom_interest - require "google/ads/google_ads/v1/services/custom_interest_service_pb.rb" - Google::Ads::GoogleAds::V1::Services::CustomInterestOperation.new + # @return [Google::Ads::GoogleAds::V1::Services::KeywordPlanKeywordOperation] the operation + def self.keyword_plan_keyword + require "google/ads/google_ads/v1/services/keyword_plan_keyword_service_pb.rb" + Google::Ads::GoogleAds::V1::Services::KeywordPlanKeywordOperation.new end - # Create a new RemarketingActionOperation + # Create a new FeedMappingOperation # - # @return [Google::Ads::GoogleAds::V1::Services::RemarketingActionOperation] the operation - def self.remarketing_action - require "google/ads/google_ads/v1/services/remarketing_action_service_pb.rb" - Google::Ads::GoogleAds::V1::Services::RemarketingActionOperation.new + # @return [Google::Ads::GoogleAds::V1::Services::FeedMappingOperation] the operation + def self.feed_mapping + require "google/ads/google_ads/v1/services/feed_mapping_service_pb.rb" + Google::Ads::GoogleAds::V1::Services::FeedMappingOperation.new end - # Create a new KeywordPlanCampaignOperation + # Create a new FeedOperation # - # @return [Google::Ads::GoogleAds::V1::Services::KeywordPlanCampaignOperation] the operation - def self.keyword_plan_campaign - require "google/ads/google_ads/v1/services/keyword_plan_campaign_service_pb.rb" - Google::Ads::GoogleAds::V1::Services::KeywordPlanCampaignOperation.new + # @return [Google::Ads::GoogleAds::V1::Services::FeedOperation] the operation + def self.feed + require "google/ads/google_ads/v1/services/feed_service_pb.rb" + Google::Ads::GoogleAds::V1::Services::FeedOperation.new end - # Create a new AdGroupAdLabelOperation + # Create a new AdGroupCriterionLabelOperation # - # @return [Google::Ads::GoogleAds::V1::Services::AdGroupAdLabelOperation] the operation - def self.ad_group_ad_label - require "google/ads/google_ads/v1/services/ad_group_ad_label_service_pb.rb" - Google::Ads::GoogleAds::V1::Services::AdGroupAdLabelOperation.new + # @return [Google::Ads::GoogleAds::V1::Services::AdGroupCriterionLabelOperation] the operation + def self.ad_group_criterion_label + require "google/ads/google_ads/v1/services/ad_group_criterion_label_service_pb.rb" + Google::Ads::GoogleAds::V1::Services::AdGroupCriterionLabelOperation.new end - # Create a new AdGroupAdOperation + # Create a new ConversionActionOperation # - # @return [Google::Ads::GoogleAds::V1::Services::AdGroupAdOperation] the operation - def self.ad_group_ad - require "google/ads/google_ads/v1/services/ad_group_ad_service_pb.rb" - Google::Ads::GoogleAds::V1::Services::AdGroupAdOperation.new + # @return [Google::Ads::GoogleAds::V1::Services::ConversionActionOperation] the operation + def self.conversion_action + require "google/ads/google_ads/v1/services/conversion_action_service_pb.rb" + Google::Ads::GoogleAds::V1::Services::ConversionActionOperation.new end + # Create a new BiddingStrategyOperation + # + # @return [Google::Ads::GoogleAds::V1::Services::BiddingStrategyOperation] the operation + def self.bidding_strategy + require "google/ads/google_ads/v1/services/bidding_strategy_service_pb.rb" + Google::Ads::GoogleAds::V1::Services::BiddingStrategyOperation.new + end + + # Create a new AccountBudgetProposalOperation + # + # @return [Google::Ads::GoogleAds::V1::Services::AccountBudgetProposalOperation] the operation + def self.account_budget_proposal + require "google/ads/google_ads/v1/services/account_budget_proposal_service_pb.rb" + Google::Ads::GoogleAds::V1::Services::AccountBudgetProposalOperation.new + end + + # Create a new FeedItemOperation + # + # @return [Google::Ads::GoogleAds::V1::Services::FeedItemOperation] the operation + def self.feed_item + require "google/ads/google_ads/v1/services/feed_item_service_pb.rb" + Google::Ads::GoogleAds::V1::Services::FeedItemOperation.new + end + + # Create a new CampaignBudgetOperation + # + # @return [Google::Ads::GoogleAds::V1::Services::CampaignBudgetOperation] the operation + def self.campaign_budget + require "google/ads/google_ads/v1/services/campaign_budget_service_pb.rb" + Google::Ads::GoogleAds::V1::Services::CampaignBudgetOperation.new + end + # Create a new AdGroupBidModifierOperation # # @return [Google::Ads::GoogleAds::V1::Services::AdGroupBidModifierOperation] the operation def self.ad_group_bid_modifier require "google/ads/google_ads/v1/services/ad_group_bid_modifier_service_pb.rb" Google::Ads::GoogleAds::V1::Services::AdGroupBidModifierOperation.new end - # Create a new AdGroupCriterionLabelOperation + # Create a new CustomerOperation # - # @return [Google::Ads::GoogleAds::V1::Services::AdGroupCriterionLabelOperation] the operation - def self.ad_group_criterion_label - require "google/ads/google_ads/v1/services/ad_group_criterion_label_service_pb.rb" - Google::Ads::GoogleAds::V1::Services::AdGroupCriterionLabelOperation.new + # @return [Google::Ads::GoogleAds::V1::Services::CustomerOperation] the operation + def self.customer + require "google/ads/google_ads/v1/services/customer_service_pb.rb" + Google::Ads::GoogleAds::V1::Services::CustomerOperation.new end + # Create a new CampaignLabelOperation + # + # @return [Google::Ads::GoogleAds::V1::Services::CampaignLabelOperation] the operation + def self.campaign_label + require "google/ads/google_ads/v1/services/campaign_label_service_pb.rb" + Google::Ads::GoogleAds::V1::Services::CampaignLabelOperation.new + end + + # Create a new SharedCriterionOperation + # + # @return [Google::Ads::GoogleAds::V1::Services::SharedCriterionOperation] the operation + def self.shared_criterion + require "google/ads/google_ads/v1/services/shared_criterion_service_pb.rb" + Google::Ads::GoogleAds::V1::Services::SharedCriterionOperation.new + end + + # Create a new KeywordPlanAdGroupOperation + # + # @return [Google::Ads::GoogleAds::V1::Services::KeywordPlanAdGroupOperation] the operation + def self.keyword_plan_ad_group + require "google/ads/google_ads/v1/services/keyword_plan_ad_group_service_pb.rb" + Google::Ads::GoogleAds::V1::Services::KeywordPlanAdGroupOperation.new + end + + # Create a new CampaignDraftOperation + # + # @return [Google::Ads::GoogleAds::V1::Services::CampaignDraftOperation] the operation + def self.campaign_draft + require "google/ads/google_ads/v1/services/campaign_draft_service_pb.rb" + Google::Ads::GoogleAds::V1::Services::CampaignDraftOperation.new + end + + # Create a new CampaignFeedOperation + # + # @return [Google::Ads::GoogleAds::V1::Services::CampaignFeedOperation] the operation + def self.campaign_feed + require "google/ads/google_ads/v1/services/campaign_feed_service_pb.rb" + Google::Ads::GoogleAds::V1::Services::CampaignFeedOperation.new + end + # Create a new AdGroupCriterionOperation # # @return [Google::Ads::GoogleAds::V1::Services::AdGroupCriterionOperation] the operation def self.ad_group_criterion require "google/ads/google_ads/v1/services/ad_group_criterion_service_pb.rb" Google::Ads::GoogleAds::V1::Services::AdGroupCriterionOperation.new end + # Create a new AdGroupAdLabelOperation + # + # @return [Google::Ads::GoogleAds::V1::Services::AdGroupAdLabelOperation] the operation + def self.ad_group_ad_label + require "google/ads/google_ads/v1/services/ad_group_ad_label_service_pb.rb" + Google::Ads::GoogleAds::V1::Services::AdGroupAdLabelOperation.new + end + + # Create a new AdGroupAdOperation + # + # @return [Google::Ads::GoogleAds::V1::Services::AdGroupAdOperation] the operation + def self.ad_group_ad + require "google/ads/google_ads/v1/services/ad_group_ad_service_pb.rb" + Google::Ads::GoogleAds::V1::Services::AdGroupAdOperation.new + end + # Create a new AdGroupExtensionSettingOperation # # @return [Google::Ads::GoogleAds::V1::Services::AdGroupExtensionSettingOperation] the operation def self.ad_group_extension_setting require "google/ads/google_ads/v1/services/ad_group_extension_setting_service_pb.rb" @@ -122,50 +210,26 @@ def self.asset require "google/ads/google_ads/v1/services/asset_service_pb.rb" Google::Ads::GoogleAds::V1::Services::AssetOperation.new end - # Create a new BiddingStrategyOperation - # - # @return [Google::Ads::GoogleAds::V1::Services::BiddingStrategyOperation] the operation - def self.bidding_strategy - require "google/ads/google_ads/v1/services/bidding_strategy_service_pb.rb" - Google::Ads::GoogleAds::V1::Services::BiddingStrategyOperation.new - end - # Create a new CampaignBidModifierOperation # # @return [Google::Ads::GoogleAds::V1::Services::CampaignBidModifierOperation] the operation def self.campaign_bid_modifier require "google/ads/google_ads/v1/services/campaign_bid_modifier_service_pb.rb" Google::Ads::GoogleAds::V1::Services::CampaignBidModifierOperation.new end - # Create a new CampaignBudgetOperation - # - # @return [Google::Ads::GoogleAds::V1::Services::CampaignBudgetOperation] the operation - def self.campaign_budget - require "google/ads/google_ads/v1/services/campaign_budget_service_pb.rb" - Google::Ads::GoogleAds::V1::Services::CampaignBudgetOperation.new - end - # Create a new CampaignCriterionOperation # # @return [Google::Ads::GoogleAds::V1::Services::CampaignCriterionOperation] the operation def self.campaign_criterion require "google/ads/google_ads/v1/services/campaign_criterion_service_pb.rb" Google::Ads::GoogleAds::V1::Services::CampaignCriterionOperation.new end - # Create a new CampaignDraftOperation - # - # @return [Google::Ads::GoogleAds::V1::Services::CampaignDraftOperation] the operation - def self.campaign_draft - require "google/ads/google_ads/v1/services/campaign_draft_service_pb.rb" - Google::Ads::GoogleAds::V1::Services::CampaignDraftOperation.new - end - # Create a new CampaignExperimentOperation # # @return [Google::Ads::GoogleAds::V1::Services::CampaignExperimentOperation] the operation def self.campaign_experiment require "google/ads/google_ads/v1/services/campaign_experiment_service_pb.rb" @@ -178,26 +242,10 @@ def self.campaign_extension_setting require "google/ads/google_ads/v1/services/campaign_extension_setting_service_pb.rb" Google::Ads::GoogleAds::V1::Services::CampaignExtensionSettingOperation.new end - # Create a new CampaignFeedOperation - # - # @return [Google::Ads::GoogleAds::V1::Services::CampaignFeedOperation] the operation - def self.campaign_feed - require "google/ads/google_ads/v1/services/campaign_feed_service_pb.rb" - Google::Ads::GoogleAds::V1::Services::CampaignFeedOperation.new - end - - # Create a new CampaignLabelOperation - # - # @return [Google::Ads::GoogleAds::V1::Services::CampaignLabelOperation] the operation - def self.campaign_label - require "google/ads/google_ads/v1/services/campaign_label_service_pb.rb" - Google::Ads::GoogleAds::V1::Services::CampaignLabelOperation.new - end - # Create a new CampaignOperation # # @return [Google::Ads::GoogleAds::V1::Services::CampaignOperation] the operation def self.campaign require "google/ads/google_ads/v1/services/campaign_service_pb.rb" @@ -210,18 +258,10 @@ def self.campaign_shared_set require "google/ads/google_ads/v1/services/campaign_shared_set_service_pb.rb" Google::Ads::GoogleAds::V1::Services::CampaignSharedSetOperation.new end - # Create a new ConversionActionOperation - # - # @return [Google::Ads::GoogleAds::V1::Services::ConversionActionOperation] the operation - def self.conversion_action - require "google/ads/google_ads/v1/services/conversion_action_service_pb.rb" - Google::Ads::GoogleAds::V1::Services::ConversionActionOperation.new - end - # Create a new CustomerExtensionSettingOperation # # @return [Google::Ads::GoogleAds::V1::Services::CustomerExtensionSettingOperation] the operation def self.customer_extension_setting require "google/ads/google_ads/v1/services/customer_extension_setting_service_pb.rb" @@ -250,58 +290,26 @@ def self.customer_negative_criterion require "google/ads/google_ads/v1/services/customer_negative_criterion_service_pb.rb" Google::Ads::GoogleAds::V1::Services::CustomerNegativeCriterionOperation.new end - # Create a new CustomerOperation - # - # @return [Google::Ads::GoogleAds::V1::Services::CustomerOperation] the operation - def self.customer - require "google/ads/google_ads/v1/services/customer_service_pb.rb" - Google::Ads::GoogleAds::V1::Services::CustomerOperation.new - end - # Create a new ExtensionFeedItemOperation # # @return [Google::Ads::GoogleAds::V1::Services::ExtensionFeedItemOperation] the operation def self.extension_feed_item require "google/ads/google_ads/v1/services/extension_feed_item_service_pb.rb" Google::Ads::GoogleAds::V1::Services::ExtensionFeedItemOperation.new end - # Create a new FeedItemOperation - # - # @return [Google::Ads::GoogleAds::V1::Services::FeedItemOperation] the operation - def self.feed_item - require "google/ads/google_ads/v1/services/feed_item_service_pb.rb" - Google::Ads::GoogleAds::V1::Services::FeedItemOperation.new - end - # Create a new FeedItemTargetOperation # # @return [Google::Ads::GoogleAds::V1::Services::FeedItemTargetOperation] the operation def self.feed_item_target require "google/ads/google_ads/v1/services/feed_item_target_service_pb.rb" Google::Ads::GoogleAds::V1::Services::FeedItemTargetOperation.new end - # Create a new FeedMappingOperation - # - # @return [Google::Ads::GoogleAds::V1::Services::FeedMappingOperation] the operation - def self.feed_mapping - require "google/ads/google_ads/v1/services/feed_mapping_service_pb.rb" - Google::Ads::GoogleAds::V1::Services::FeedMappingOperation.new - end - - # Create a new FeedOperation - # - # @return [Google::Ads::GoogleAds::V1::Services::FeedOperation] the operation - def self.feed - require "google/ads/google_ads/v1/services/feed_service_pb.rb" - Google::Ads::GoogleAds::V1::Services::FeedOperation.new - end - # Create a new LabelOperation # # @return [Google::Ads::GoogleAds::V1::Services::LabelOperation] the operation def self.label require "google/ads/google_ads/v1/services/label_service_pb.rb" @@ -314,16 +322,16 @@ def self.media_file require "google/ads/google_ads/v1/services/media_file_service_pb.rb" Google::Ads::GoogleAds::V1::Services::MediaFileOperation.new end - # Create a new SharedCriterionOperation + # Create a new RemarketingActionOperation # - # @return [Google::Ads::GoogleAds::V1::Services::SharedCriterionOperation] the operation - def self.shared_criterion - require "google/ads/google_ads/v1/services/shared_criterion_service_pb.rb" - Google::Ads::GoogleAds::V1::Services::SharedCriterionOperation.new + # @return [Google::Ads::GoogleAds::V1::Services::RemarketingActionOperation] the operation + def self.remarketing_action + require "google/ads/google_ads/v1/services/remarketing_action_service_pb.rb" + Google::Ads::GoogleAds::V1::Services::RemarketingActionOperation.new end # Create a new SharedSetOperation # # @return [Google::Ads::GoogleAds::V1::Services::SharedSetOperation] the operation @@ -346,18 +354,10 @@ def self.mutate require "google/ads/google_ads/v1/services/google_ads_service_pb.rb" Google::Ads::GoogleAds::V1::Services::MutateOperation.new end - # Create a new KeywordPlanKeywordOperation - # - # @return [Google::Ads::GoogleAds::V1::Services::KeywordPlanKeywordOperation] the operation - def self.keyword_plan_keyword - require "google/ads/google_ads/v1/services/keyword_plan_keyword_service_pb.rb" - Google::Ads::GoogleAds::V1::Services::KeywordPlanKeywordOperation.new - end - # Create a new ApplyRecommendationOperation # # @return [Google::Ads::GoogleAds::V1::Services::ApplyRecommendationOperation] the operation def self.apply_recommendation require "google/ads/google_ads/v1/services/recommendation_service_pb.rb" @@ -370,74 +370,74 @@ def self.dismiss_recommendation require "google/ads/google_ads/v1/services/recommendation_service_pb.rb" Google::Ads::GoogleAds::V1::Services::DismissRecommendationRequest::DismissRecommendationOperation.new end - # Create a new KeywordPlanNegativeKeywordOperation + # Create a new KeywordPlanCampaignOperation # - # @return [Google::Ads::GoogleAds::V1::Services::KeywordPlanNegativeKeywordOperation] the operation - def self.keyword_plan_negative_keyword - require "google/ads/google_ads/v1/services/keyword_plan_negative_keyword_service_pb.rb" - Google::Ads::GoogleAds::V1::Services::KeywordPlanNegativeKeywordOperation.new + # @return [Google::Ads::GoogleAds::V1::Services::KeywordPlanCampaignOperation] the operation + def self.keyword_plan_campaign + require "google/ads/google_ads/v1/services/keyword_plan_campaign_service_pb.rb" + Google::Ads::GoogleAds::V1::Services::KeywordPlanCampaignOperation.new end - # Create a new KeywordPlanOperation + # Create a new BillingSetupOperation # - # @return [Google::Ads::GoogleAds::V1::Services::KeywordPlanOperation] the operation - def self.keyword_plan - require "google/ads/google_ads/v1/services/keyword_plan_service_pb.rb" - Google::Ads::GoogleAds::V1::Services::KeywordPlanOperation.new + # @return [Google::Ads::GoogleAds::V1::Services::BillingSetupOperation] the operation + def self.billing_setup + require "google/ads/google_ads/v1/services/billing_setup_service_pb.rb" + Google::Ads::GoogleAds::V1::Services::BillingSetupOperation.new end # Create a new MerchantCenterLinkOperation # # @return [Google::Ads::GoogleAds::V1::Services::MerchantCenterLinkOperation] the operation def self.merchant_center_link require "google/ads/google_ads/v1/services/merchant_center_link_service_pb.rb" Google::Ads::GoogleAds::V1::Services::MerchantCenterLinkOperation.new end + # Create a new KeywordPlanOperation + # + # @return [Google::Ads::GoogleAds::V1::Services::KeywordPlanOperation] the operation + def self.keyword_plan + require "google/ads/google_ads/v1/services/keyword_plan_service_pb.rb" + Google::Ads::GoogleAds::V1::Services::KeywordPlanOperation.new + end + # Create a new CustomerManagerLinkOperation # # @return [Google::Ads::GoogleAds::V1::Services::CustomerManagerLinkOperation] the operation def self.customer_manager_link require "google/ads/google_ads/v1/services/customer_manager_link_service_pb.rb" Google::Ads::GoogleAds::V1::Services::CustomerManagerLinkOperation.new end - # Create a new AccountBudgetProposalOperation + # Create a new KeywordPlanNegativeKeywordOperation # - # @return [Google::Ads::GoogleAds::V1::Services::AccountBudgetProposalOperation] the operation - def self.account_budget_proposal - require "google/ads/google_ads/v1/services/account_budget_proposal_service_pb.rb" - Google::Ads::GoogleAds::V1::Services::AccountBudgetProposalOperation.new + # @return [Google::Ads::GoogleAds::V1::Services::KeywordPlanNegativeKeywordOperation] the operation + def self.keyword_plan_negative_keyword + require "google/ads/google_ads/v1/services/keyword_plan_negative_keyword_service_pb.rb" + Google::Ads::GoogleAds::V1::Services::KeywordPlanNegativeKeywordOperation.new end + # Create a new CustomInterestOperation + # + # @return [Google::Ads::GoogleAds::V1::Services::CustomInterestOperation] the operation + def self.custom_interest + require "google/ads/google_ads/v1/services/custom_interest_service_pb.rb" + Google::Ads::GoogleAds::V1::Services::CustomInterestOperation.new + end + # Create a new CustomerClientLinkOperation # # @return [Google::Ads::GoogleAds::V1::Services::CustomerClientLinkOperation] the operation def self.customer_client_link require "google/ads/google_ads/v1/services/customer_client_link_service_pb.rb" Google::Ads::GoogleAds::V1::Services::CustomerClientLinkOperation.new end - # Create a new BillingSetupOperation - # - # @return [Google::Ads::GoogleAds::V1::Services::BillingSetupOperation] the operation - def self.billing_setup - require "google/ads/google_ads/v1/services/billing_setup_service_pb.rb" - Google::Ads::GoogleAds::V1::Services::BillingSetupOperation.new - end - - # Create a new KeywordPlanAdGroupOperation - # - # @return [Google::Ads::GoogleAds::V1::Services::KeywordPlanAdGroupOperation] the operation - def self.keyword_plan_ad_group - require "google/ads/google_ads/v1/services/keyword_plan_ad_group_service_pb.rb" - Google::Ads::GoogleAds::V1::Services::KeywordPlanAdGroupOperation.new - end - # Get a reference module containing convenience methods for creating # resources # # @return [Google::Ads::GoogleAds::Factories::V1::Operations::CreateResource] def self.create_resource @@ -459,110 +459,160 @@ def self.remove_resource RemoveResource end module CreateResource - # A convenience method for creating an CustomInterestOperation instance with - # its "create" field prepopulated with an CustomInterest instance. + # A convenience method for creating an KeywordPlanKeywordOperation instance with + # its "create" field prepopulated with an KeywordPlanKeyword instance. # - # @overload custom_interest - # creates an operation instance, yielding a newly fabricated CustomInterest + # @overload keyword_plan_keyword + # creates an operation instance, yielding a newly fabricated KeywordPlanKeyword # which can be used for setting attributes on the newly created resource - # @overload custom_interest(res) + # @overload keyword_plan_keyword(res) # creates an operation instance, with the resource to be created # set to the passed value (res) - # @param res [Google::Ads::GoogleAds::V1::Resources::CustomInterest] + # @param res [Google::Ads::GoogleAds::V1::Resources::KeywordPlanKeyword] # a resource instance to be used for creation in this operation. # - # @return [Google::Ads::GoogleAds::V1::Services::CustomInterestOperation] instance that will create the resource - def self.custom_interest(res = nil, &blk) - require "google/ads/google_ads/v1/services/custom_interest_service_pb.rb" - op = Google::Ads::GoogleAds::V1::Services::CustomInterestOperation.new + # @return [Google::Ads::GoogleAds::V1::Services::KeywordPlanKeywordOperation] instance that will create the resource + def self.keyword_plan_keyword(res = nil, &blk) + require "google/ads/google_ads/v1/services/keyword_plan_keyword_service_pb.rb" + op = Google::Ads::GoogleAds::V1::Services::KeywordPlanKeywordOperation.new if !res.nil? op["create"] = res elsif !blk.nil? - op["create"] = Factories::V1::Resources.custom_interest(&blk) + op["create"] = Factories::V1::Resources.keyword_plan_keyword(&blk) end op end - # A convenience method for creating an RemarketingActionOperation instance with - # its "create" field prepopulated with an RemarketingAction instance. + # A convenience method for creating an FeedOperation instance with + # its "create" field prepopulated with an Feed instance. # - # @overload remarketing_action - # creates an operation instance, yielding a newly fabricated RemarketingAction + # @overload feed + # creates an operation instance, yielding a newly fabricated Feed # which can be used for setting attributes on the newly created resource - # @overload remarketing_action(res) + # @overload feed(res) # creates an operation instance, with the resource to be created # set to the passed value (res) - # @param res [Google::Ads::GoogleAds::V1::Resources::RemarketingAction] + # @param res [Google::Ads::GoogleAds::V1::Resources::Feed] # a resource instance to be used for creation in this operation. # - # @return [Google::Ads::GoogleAds::V1::Services::RemarketingActionOperation] instance that will create the resource - def self.remarketing_action(res = nil, &blk) - require "google/ads/google_ads/v1/services/remarketing_action_service_pb.rb" - op = Google::Ads::GoogleAds::V1::Services::RemarketingActionOperation.new + # @return [Google::Ads::GoogleAds::V1::Services::FeedOperation] instance that will create the resource + def self.feed(res = nil, &blk) + require "google/ads/google_ads/v1/services/feed_service_pb.rb" + op = Google::Ads::GoogleAds::V1::Services::FeedOperation.new if !res.nil? op["create"] = res elsif !blk.nil? - op["create"] = Factories::V1::Resources.remarketing_action(&blk) + op["create"] = Factories::V1::Resources.feed(&blk) end op end - # A convenience method for creating an KeywordPlanCampaignOperation instance with - # its "create" field prepopulated with an KeywordPlanCampaign instance. + # A convenience method for creating an ConversionActionOperation instance with + # its "create" field prepopulated with an ConversionAction instance. # - # @overload keyword_plan_campaign - # creates an operation instance, yielding a newly fabricated KeywordPlanCampaign + # @overload conversion_action + # creates an operation instance, yielding a newly fabricated ConversionAction # which can be used for setting attributes on the newly created resource - # @overload keyword_plan_campaign(res) + # @overload conversion_action(res) # creates an operation instance, with the resource to be created # set to the passed value (res) - # @param res [Google::Ads::GoogleAds::V1::Resources::KeywordPlanCampaign] + # @param res [Google::Ads::GoogleAds::V1::Resources::ConversionAction] # a resource instance to be used for creation in this operation. # - # @return [Google::Ads::GoogleAds::V1::Services::KeywordPlanCampaignOperation] instance that will create the resource - def self.keyword_plan_campaign(res = nil, &blk) - require "google/ads/google_ads/v1/services/keyword_plan_campaign_service_pb.rb" - op = Google::Ads::GoogleAds::V1::Services::KeywordPlanCampaignOperation.new + # @return [Google::Ads::GoogleAds::V1::Services::ConversionActionOperation] instance that will create the resource + def self.conversion_action(res = nil, &blk) + require "google/ads/google_ads/v1/services/conversion_action_service_pb.rb" + op = Google::Ads::GoogleAds::V1::Services::ConversionActionOperation.new if !res.nil? op["create"] = res elsif !blk.nil? - op["create"] = Factories::V1::Resources.keyword_plan_campaign(&blk) + op["create"] = Factories::V1::Resources.conversion_action(&blk) end op end - # A convenience method for creating an AdGroupAdOperation instance with - # its "create" field prepopulated with an AdGroupAd instance. + # A convenience method for creating an BiddingStrategyOperation instance with + # its "create" field prepopulated with an BiddingStrategy instance. # - # @overload ad_group_ad - # creates an operation instance, yielding a newly fabricated AdGroupAd + # @overload bidding_strategy + # creates an operation instance, yielding a newly fabricated BiddingStrategy # which can be used for setting attributes on the newly created resource - # @overload ad_group_ad(res) + # @overload bidding_strategy(res) # creates an operation instance, with the resource to be created # set to the passed value (res) - # @param res [Google::Ads::GoogleAds::V1::Resources::AdGroupAd] + # @param res [Google::Ads::GoogleAds::V1::Resources::BiddingStrategy] # a resource instance to be used for creation in this operation. # - # @return [Google::Ads::GoogleAds::V1::Services::AdGroupAdOperation] instance that will create the resource - def self.ad_group_ad(res = nil, &blk) - require "google/ads/google_ads/v1/services/ad_group_ad_service_pb.rb" - op = Google::Ads::GoogleAds::V1::Services::AdGroupAdOperation.new + # @return [Google::Ads::GoogleAds::V1::Services::BiddingStrategyOperation] instance that will create the resource + def self.bidding_strategy(res = nil, &blk) + require "google/ads/google_ads/v1/services/bidding_strategy_service_pb.rb" + op = Google::Ads::GoogleAds::V1::Services::BiddingStrategyOperation.new if !res.nil? op["create"] = res elsif !blk.nil? - op["create"] = Factories::V1::Resources.ad_group_ad(&blk) + op["create"] = Factories::V1::Resources.bidding_strategy(&blk) end op end + # A convenience method for creating an FeedItemOperation instance with + # its "create" field prepopulated with an FeedItem instance. + # + # @overload feed_item + # creates an operation instance, yielding a newly fabricated FeedItem + # which can be used for setting attributes on the newly created resource + # @overload feed_item(res) + # creates an operation instance, with the resource to be created + # set to the passed value (res) + # @param res [Google::Ads::GoogleAds::V1::Resources::FeedItem] + # a resource instance to be used for creation in this operation. + # + # @return [Google::Ads::GoogleAds::V1::Services::FeedItemOperation] instance that will create the resource + def self.feed_item(res = nil, &blk) + require "google/ads/google_ads/v1/services/feed_item_service_pb.rb" + op = Google::Ads::GoogleAds::V1::Services::FeedItemOperation.new + if !res.nil? + op["create"] = res + elsif !blk.nil? + op["create"] = Factories::V1::Resources.feed_item(&blk) + end + + op + end + + # A convenience method for creating an CampaignBudgetOperation instance with + # its "create" field prepopulated with an CampaignBudget instance. + # + # @overload campaign_budget + # creates an operation instance, yielding a newly fabricated CampaignBudget + # which can be used for setting attributes on the newly created resource + # @overload campaign_budget(res) + # creates an operation instance, with the resource to be created + # set to the passed value (res) + # @param res [Google::Ads::GoogleAds::V1::Resources::CampaignBudget] + # a resource instance to be used for creation in this operation. + # + # @return [Google::Ads::GoogleAds::V1::Services::CampaignBudgetOperation] instance that will create the resource + def self.campaign_budget(res = nil, &blk) + require "google/ads/google_ads/v1/services/campaign_budget_service_pb.rb" + op = Google::Ads::GoogleAds::V1::Services::CampaignBudgetOperation.new + if !res.nil? + op["create"] = res + elsif !blk.nil? + op["create"] = Factories::V1::Resources.campaign_budget(&blk) + end + + op + end + # A convenience method for creating an AdGroupBidModifierOperation instance with # its "create" field prepopulated with an AdGroupBidModifier instance. # # @overload ad_group_bid_modifier # creates an operation instance, yielding a newly fabricated AdGroupBidModifier @@ -584,10 +634,110 @@ end op end + # A convenience method for creating an CustomerOperation instance with + # its "create" field prepopulated with an Customer instance. + # + # @overload customer + # creates an operation instance, yielding a newly fabricated Customer + # which can be used for setting attributes on the newly created resource + # @overload customer(res) + # creates an operation instance, with the resource to be created + # set to the passed value (res) + # @param res [Google::Ads::GoogleAds::V1::Resources::Customer] + # a resource instance to be used for creation in this operation. + # + # @return [Google::Ads::GoogleAds::V1::Services::CustomerOperation] instance that will create the resource + def self.customer(res = nil, &blk) + require "google/ads/google_ads/v1/services/customer_service_pb.rb" + op = Google::Ads::GoogleAds::V1::Services::CustomerOperation.new + if !res.nil? + op["create"] = res + elsif !blk.nil? + op["create"] = Factories::V1::Resources.customer(&blk) + end + + op + end + + # A convenience method for creating an KeywordPlanAdGroupOperation instance with + # its "create" field prepopulated with an KeywordPlanAdGroup instance. + # + # @overload keyword_plan_ad_group + # creates an operation instance, yielding a newly fabricated KeywordPlanAdGroup + # which can be used for setting attributes on the newly created resource + # @overload keyword_plan_ad_group(res) + # creates an operation instance, with the resource to be created + # set to the passed value (res) + # @param res [Google::Ads::GoogleAds::V1::Resources::KeywordPlanAdGroup] + # a resource instance to be used for creation in this operation. + # + # @return [Google::Ads::GoogleAds::V1::Services::KeywordPlanAdGroupOperation] instance that will create the resource + def self.keyword_plan_ad_group(res = nil, &blk) + require "google/ads/google_ads/v1/services/keyword_plan_ad_group_service_pb.rb" + op = Google::Ads::GoogleAds::V1::Services::KeywordPlanAdGroupOperation.new + if !res.nil? + op["create"] = res + elsif !blk.nil? + op["create"] = Factories::V1::Resources.keyword_plan_ad_group(&blk) + end + + op + end + + # A convenience method for creating an CampaignDraftOperation instance with + # its "create" field prepopulated with an CampaignDraft instance. + # + # @overload campaign_draft + # creates an operation instance, yielding a newly fabricated CampaignDraft + # which can be used for setting attributes on the newly created resource + # @overload campaign_draft(res) + # creates an operation instance, with the resource to be created + # set to the passed value (res) + # @param res [Google::Ads::GoogleAds::V1::Resources::CampaignDraft] + # a resource instance to be used for creation in this operation. + # + # @return [Google::Ads::GoogleAds::V1::Services::CampaignDraftOperation] instance that will create the resource + def self.campaign_draft(res = nil, &blk) + require "google/ads/google_ads/v1/services/campaign_draft_service_pb.rb" + op = Google::Ads::GoogleAds::V1::Services::CampaignDraftOperation.new + if !res.nil? + op["create"] = res + elsif !blk.nil? + op["create"] = Factories::V1::Resources.campaign_draft(&blk) + end + + op + end + + # A convenience method for creating an CampaignFeedOperation instance with + # its "create" field prepopulated with an CampaignFeed instance. + # + # @overload campaign_feed + # creates an operation instance, yielding a newly fabricated CampaignFeed + # which can be used for setting attributes on the newly created resource + # @overload campaign_feed(res) + # creates an operation instance, with the resource to be created + # set to the passed value (res) + # @param res [Google::Ads::GoogleAds::V1::Resources::CampaignFeed] + # a resource instance to be used for creation in this operation. + # + # @return [Google::Ads::GoogleAds::V1::Services::CampaignFeedOperation] instance that will create the resource + def self.campaign_feed(res = nil, &blk) + require "google/ads/google_ads/v1/services/campaign_feed_service_pb.rb" + op = Google::Ads::GoogleAds::V1::Services::CampaignFeedOperation.new + if !res.nil? + op["create"] = res + elsif !blk.nil? + op["create"] = Factories::V1::Resources.campaign_feed(&blk) + end + + op + end + # A convenience method for creating an AdGroupCriterionOperation instance with # its "create" field prepopulated with an AdGroupCriterion instance. # # @overload ad_group_criterion # creates an operation instance, yielding a newly fabricated AdGroupCriterion @@ -609,10 +759,35 @@ end op end + # A convenience method for creating an AdGroupAdOperation instance with + # its "create" field prepopulated with an AdGroupAd instance. + # + # @overload ad_group_ad + # creates an operation instance, yielding a newly fabricated AdGroupAd + # which can be used for setting attributes on the newly created resource + # @overload ad_group_ad(res) + # creates an operation instance, with the resource to be created + # set to the passed value (res) + # @param res [Google::Ads::GoogleAds::V1::Resources::AdGroupAd] + # a resource instance to be used for creation in this operation. + # + # @return [Google::Ads::GoogleAds::V1::Services::AdGroupAdOperation] instance that will create the resource + def self.ad_group_ad(res = nil, &blk) + require "google/ads/google_ads/v1/services/ad_group_ad_service_pb.rb" + op = Google::Ads::GoogleAds::V1::Services::AdGroupAdOperation.new + if !res.nil? + op["create"] = res + elsif !blk.nil? + op["create"] = Factories::V1::Resources.ad_group_ad(&blk) + end + + op + end + # A convenience method for creating an AdGroupExtensionSettingOperation instance with # its "create" field prepopulated with an AdGroupExtensionSetting instance. # # @overload ad_group_extension_setting # creates an operation instance, yielding a newly fabricated AdGroupExtensionSetting @@ -709,35 +884,10 @@ end op end - # A convenience method for creating an BiddingStrategyOperation instance with - # its "create" field prepopulated with an BiddingStrategy instance. - # - # @overload bidding_strategy - # creates an operation instance, yielding a newly fabricated BiddingStrategy - # which can be used for setting attributes on the newly created resource - # @overload bidding_strategy(res) - # creates an operation instance, with the resource to be created - # set to the passed value (res) - # @param res [Google::Ads::GoogleAds::V1::Resources::BiddingStrategy] - # a resource instance to be used for creation in this operation. - # - # @return [Google::Ads::GoogleAds::V1::Services::BiddingStrategyOperation] instance that will create the resource - def self.bidding_strategy(res = nil, &blk) - require "google/ads/google_ads/v1/services/bidding_strategy_service_pb.rb" - op = Google::Ads::GoogleAds::V1::Services::BiddingStrategyOperation.new - if !res.nil? - op["create"] = res - elsif !blk.nil? - op["create"] = Factories::V1::Resources.bidding_strategy(&blk) - end - - op - end - # A convenience method for creating an CampaignBidModifierOperation instance with # its "create" field prepopulated with an CampaignBidModifier instance. # # @overload campaign_bid_modifier # creates an operation instance, yielding a newly fabricated CampaignBidModifier @@ -759,35 +909,10 @@ end op end - # A convenience method for creating an CampaignBudgetOperation instance with - # its "create" field prepopulated with an CampaignBudget instance. - # - # @overload campaign_budget - # creates an operation instance, yielding a newly fabricated CampaignBudget - # which can be used for setting attributes on the newly created resource - # @overload campaign_budget(res) - # creates an operation instance, with the resource to be created - # set to the passed value (res) - # @param res [Google::Ads::GoogleAds::V1::Resources::CampaignBudget] - # a resource instance to be used for creation in this operation. - # - # @return [Google::Ads::GoogleAds::V1::Services::CampaignBudgetOperation] instance that will create the resource - def self.campaign_budget(res = nil, &blk) - require "google/ads/google_ads/v1/services/campaign_budget_service_pb.rb" - op = Google::Ads::GoogleAds::V1::Services::CampaignBudgetOperation.new - if !res.nil? - op["create"] = res - elsif !blk.nil? - op["create"] = Factories::V1::Resources.campaign_budget(&blk) - end - - op - end - # A convenience method for creating an CampaignCriterionOperation instance with # its "create" field prepopulated with an CampaignCriterion instance. # # @overload campaign_criterion # creates an operation instance, yielding a newly fabricated CampaignCriterion @@ -809,35 +934,10 @@ end op end - # A convenience method for creating an CampaignDraftOperation instance with - # its "create" field prepopulated with an CampaignDraft instance. - # - # @overload campaign_draft - # creates an operation instance, yielding a newly fabricated CampaignDraft - # which can be used for setting attributes on the newly created resource - # @overload campaign_draft(res) - # creates an operation instance, with the resource to be created - # set to the passed value (res) - # @param res [Google::Ads::GoogleAds::V1::Resources::CampaignDraft] - # a resource instance to be used for creation in this operation. - # - # @return [Google::Ads::GoogleAds::V1::Services::CampaignDraftOperation] instance that will create the resource - def self.campaign_draft(res = nil, &blk) - require "google/ads/google_ads/v1/services/campaign_draft_service_pb.rb" - op = Google::Ads::GoogleAds::V1::Services::CampaignDraftOperation.new - if !res.nil? - op["create"] = res - elsif !blk.nil? - op["create"] = Factories::V1::Resources.campaign_draft(&blk) - end - - op - end - # A convenience method for creating an CampaignExperimentOperation instance with # its "create" field prepopulated with an CampaignExperiment instance. # # @overload campaign_experiment # creates an operation instance, yielding a newly fabricated CampaignExperiment @@ -884,35 +984,10 @@ end op end - # A convenience method for creating an CampaignFeedOperation instance with - # its "create" field prepopulated with an CampaignFeed instance. - # - # @overload campaign_feed - # creates an operation instance, yielding a newly fabricated CampaignFeed - # which can be used for setting attributes on the newly created resource - # @overload campaign_feed(res) - # creates an operation instance, with the resource to be created - # set to the passed value (res) - # @param res [Google::Ads::GoogleAds::V1::Resources::CampaignFeed] - # a resource instance to be used for creation in this operation. - # - # @return [Google::Ads::GoogleAds::V1::Services::CampaignFeedOperation] instance that will create the resource - def self.campaign_feed(res = nil, &blk) - require "google/ads/google_ads/v1/services/campaign_feed_service_pb.rb" - op = Google::Ads::GoogleAds::V1::Services::CampaignFeedOperation.new - if !res.nil? - op["create"] = res - elsif !blk.nil? - op["create"] = Factories::V1::Resources.campaign_feed(&blk) - end - - op - end - # A convenience method for creating an CampaignOperation instance with # its "create" field prepopulated with an Campaign instance. # # @overload campaign # creates an operation instance, yielding a newly fabricated Campaign @@ -934,35 +1009,10 @@ end op end - # A convenience method for creating an ConversionActionOperation instance with - # its "create" field prepopulated with an ConversionAction instance. - # - # @overload conversion_action - # creates an operation instance, yielding a newly fabricated ConversionAction - # which can be used for setting attributes on the newly created resource - # @overload conversion_action(res) - # creates an operation instance, with the resource to be created - # set to the passed value (res) - # @param res [Google::Ads::GoogleAds::V1::Resources::ConversionAction] - # a resource instance to be used for creation in this operation. - # - # @return [Google::Ads::GoogleAds::V1::Services::ConversionActionOperation] instance that will create the resource - def self.conversion_action(res = nil, &blk) - require "google/ads/google_ads/v1/services/conversion_action_service_pb.rb" - op = Google::Ads::GoogleAds::V1::Services::ConversionActionOperation.new - if !res.nil? - op["create"] = res - elsif !blk.nil? - op["create"] = Factories::V1::Resources.conversion_action(&blk) - end - - op - end - # A convenience method for creating an CustomerExtensionSettingOperation instance with # its "create" field prepopulated with an CustomerExtensionSetting instance. # # @overload customer_extension_setting # creates an operation instance, yielding a newly fabricated CustomerExtensionSetting @@ -1009,35 +1059,10 @@ end op end - # A convenience method for creating an CustomerOperation instance with - # its "create" field prepopulated with an Customer instance. - # - # @overload customer - # creates an operation instance, yielding a newly fabricated Customer - # which can be used for setting attributes on the newly created resource - # @overload customer(res) - # creates an operation instance, with the resource to be created - # set to the passed value (res) - # @param res [Google::Ads::GoogleAds::V1::Resources::Customer] - # a resource instance to be used for creation in this operation. - # - # @return [Google::Ads::GoogleAds::V1::Services::CustomerOperation] instance that will create the resource - def self.customer(res = nil, &blk) - require "google/ads/google_ads/v1/services/customer_service_pb.rb" - op = Google::Ads::GoogleAds::V1::Services::CustomerOperation.new - if !res.nil? - op["create"] = res - elsif !blk.nil? - op["create"] = Factories::V1::Resources.customer(&blk) - end - - op - end - # A convenience method for creating an ExtensionFeedItemOperation instance with # its "create" field prepopulated with an ExtensionFeedItem instance. # # @overload extension_feed_item # creates an operation instance, yielding a newly fabricated ExtensionFeedItem @@ -1059,85 +1084,60 @@ end op end - # A convenience method for creating an FeedItemOperation instance with - # its "create" field prepopulated with an FeedItem instance. + # A convenience method for creating an LabelOperation instance with + # its "create" field prepopulated with an Label instance. # - # @overload feed_item - # creates an operation instance, yielding a newly fabricated FeedItem + # @overload label + # creates an operation instance, yielding a newly fabricated Label # which can be used for setting attributes on the newly created resource - # @overload feed_item(res) + # @overload label(res) # creates an operation instance, with the resource to be created # set to the passed value (res) - # @param res [Google::Ads::GoogleAds::V1::Resources::FeedItem] + # @param res [Google::Ads::GoogleAds::V1::Resources::Label] # a resource instance to be used for creation in this operation. # - # @return [Google::Ads::GoogleAds::V1::Services::FeedItemOperation] instance that will create the resource - def self.feed_item(res = nil, &blk) - require "google/ads/google_ads/v1/services/feed_item_service_pb.rb" - op = Google::Ads::GoogleAds::V1::Services::FeedItemOperation.new + # @return [Google::Ads::GoogleAds::V1::Services::LabelOperation] instance that will create the resource + def self.label(res = nil, &blk) + require "google/ads/google_ads/v1/services/label_service_pb.rb" + op = Google::Ads::GoogleAds::V1::Services::LabelOperation.new if !res.nil? op["create"] = res elsif !blk.nil? - op["create"] = Factories::V1::Resources.feed_item(&blk) + op["create"] = Factories::V1::Resources.label(&blk) end op end - # A convenience method for creating an FeedOperation instance with - # its "create" field prepopulated with an Feed instance. + # A convenience method for creating an RemarketingActionOperation instance with + # its "create" field prepopulated with an RemarketingAction instance. # - # @overload feed - # creates an operation instance, yielding a newly fabricated Feed + # @overload remarketing_action + # creates an operation instance, yielding a newly fabricated RemarketingAction # which can be used for setting attributes on the newly created resource - # @overload feed(res) + # @overload remarketing_action(res) # creates an operation instance, with the resource to be created # set to the passed value (res) - # @param res [Google::Ads::GoogleAds::V1::Resources::Feed] + # @param res [Google::Ads::GoogleAds::V1::Resources::RemarketingAction] # a resource instance to be used for creation in this operation. # - # @return [Google::Ads::GoogleAds::V1::Services::FeedOperation] instance that will create the resource - def self.feed(res = nil, &blk) - require "google/ads/google_ads/v1/services/feed_service_pb.rb" - op = Google::Ads::GoogleAds::V1::Services::FeedOperation.new + # @return [Google::Ads::GoogleAds::V1::Services::RemarketingActionOperation] instance that will create the resource + def self.remarketing_action(res = nil, &blk) + require "google/ads/google_ads/v1/services/remarketing_action_service_pb.rb" + op = Google::Ads::GoogleAds::V1::Services::RemarketingActionOperation.new if !res.nil? op["create"] = res elsif !blk.nil? - op["create"] = Factories::V1::Resources.feed(&blk) + op["create"] = Factories::V1::Resources.remarketing_action(&blk) end op end - # A convenience method for creating an LabelOperation instance with - # its "create" field prepopulated with an Label instance. - # - # @overload label - # creates an operation instance, yielding a newly fabricated Label - # which can be used for setting attributes on the newly created resource - # @overload label(res) - # creates an operation instance, with the resource to be created - # set to the passed value (res) - # @param res [Google::Ads::GoogleAds::V1::Resources::Label] - # a resource instance to be used for creation in this operation. - # - # @return [Google::Ads::GoogleAds::V1::Services::LabelOperation] instance that will create the resource - def self.label(res = nil, &blk) - require "google/ads/google_ads/v1/services/label_service_pb.rb" - op = Google::Ads::GoogleAds::V1::Services::LabelOperation.new - if !res.nil? - op["create"] = res - elsif !blk.nil? - op["create"] = Factories::V1::Resources.label(&blk) - end - - op - end - # A convenience method for creating an SharedSetOperation instance with # its "create" field prepopulated with an SharedSet instance. # # @overload shared_set # creates an operation instance, yielding a newly fabricated SharedSet @@ -1184,55 +1184,55 @@ end op end - # A convenience method for creating an KeywordPlanKeywordOperation instance with - # its "create" field prepopulated with an KeywordPlanKeyword instance. + # A convenience method for creating an KeywordPlanCampaignOperation instance with + # its "create" field prepopulated with an KeywordPlanCampaign instance. # - # @overload keyword_plan_keyword - # creates an operation instance, yielding a newly fabricated KeywordPlanKeyword + # @overload keyword_plan_campaign + # creates an operation instance, yielding a newly fabricated KeywordPlanCampaign # which can be used for setting attributes on the newly created resource - # @overload keyword_plan_keyword(res) + # @overload keyword_plan_campaign(res) # creates an operation instance, with the resource to be created # set to the passed value (res) - # @param res [Google::Ads::GoogleAds::V1::Resources::KeywordPlanKeyword] + # @param res [Google::Ads::GoogleAds::V1::Resources::KeywordPlanCampaign] # a resource instance to be used for creation in this operation. # - # @return [Google::Ads::GoogleAds::V1::Services::KeywordPlanKeywordOperation] instance that will create the resource - def self.keyword_plan_keyword(res = nil, &blk) - require "google/ads/google_ads/v1/services/keyword_plan_keyword_service_pb.rb" - op = Google::Ads::GoogleAds::V1::Services::KeywordPlanKeywordOperation.new + # @return [Google::Ads::GoogleAds::V1::Services::KeywordPlanCampaignOperation] instance that will create the resource + def self.keyword_plan_campaign(res = nil, &blk) + require "google/ads/google_ads/v1/services/keyword_plan_campaign_service_pb.rb" + op = Google::Ads::GoogleAds::V1::Services::KeywordPlanCampaignOperation.new if !res.nil? op["create"] = res elsif !blk.nil? - op["create"] = Factories::V1::Resources.keyword_plan_keyword(&blk) + op["create"] = Factories::V1::Resources.keyword_plan_campaign(&blk) end op end - # A convenience method for creating an KeywordPlanNegativeKeywordOperation instance with - # its "create" field prepopulated with an KeywordPlanNegativeKeyword instance. + # A convenience method for creating an MerchantCenterLinkOperation instance with + # its "create" field prepopulated with an MerchantCenterLink instance. # - # @overload keyword_plan_negative_keyword - # creates an operation instance, yielding a newly fabricated KeywordPlanNegativeKeyword + # @overload merchant_center_link + # creates an operation instance, yielding a newly fabricated MerchantCenterLink # which can be used for setting attributes on the newly created resource - # @overload keyword_plan_negative_keyword(res) + # @overload merchant_center_link(res) # creates an operation instance, with the resource to be created # set to the passed value (res) - # @param res [Google::Ads::GoogleAds::V1::Resources::KeywordPlanNegativeKeyword] + # @param res [Google::Ads::GoogleAds::V1::Resources::MerchantCenterLink] # a resource instance to be used for creation in this operation. # - # @return [Google::Ads::GoogleAds::V1::Services::KeywordPlanNegativeKeywordOperation] instance that will create the resource - def self.keyword_plan_negative_keyword(res = nil, &blk) - require "google/ads/google_ads/v1/services/keyword_plan_negative_keyword_service_pb.rb" - op = Google::Ads::GoogleAds::V1::Services::KeywordPlanNegativeKeywordOperation.new + # @return [Google::Ads::GoogleAds::V1::Services::MerchantCenterLinkOperation] instance that will create the resource + def self.merchant_center_link(res = nil, &blk) + require "google/ads/google_ads/v1/services/merchant_center_link_service_pb.rb" + op = Google::Ads::GoogleAds::V1::Services::MerchantCenterLinkOperation.new if !res.nil? op["create"] = res elsif !blk.nil? - op["create"] = Factories::V1::Resources.keyword_plan_negative_keyword(&blk) + op["create"] = Factories::V1::Resources.merchant_center_link(&blk) end op end @@ -1259,60 +1259,85 @@ end op end - # A convenience method for creating an MerchantCenterLinkOperation instance with - # its "create" field prepopulated with an MerchantCenterLink instance. + # A convenience method for creating an CustomerManagerLinkOperation instance with + # its "create" field prepopulated with an CustomerManagerLink instance. # - # @overload merchant_center_link - # creates an operation instance, yielding a newly fabricated MerchantCenterLink + # @overload customer_manager_link + # creates an operation instance, yielding a newly fabricated CustomerManagerLink # which can be used for setting attributes on the newly created resource - # @overload merchant_center_link(res) + # @overload customer_manager_link(res) # creates an operation instance, with the resource to be created # set to the passed value (res) - # @param res [Google::Ads::GoogleAds::V1::Resources::MerchantCenterLink] + # @param res [Google::Ads::GoogleAds::V1::Resources::CustomerManagerLink] # a resource instance to be used for creation in this operation. # - # @return [Google::Ads::GoogleAds::V1::Services::MerchantCenterLinkOperation] instance that will create the resource - def self.merchant_center_link(res = nil, &blk) - require "google/ads/google_ads/v1/services/merchant_center_link_service_pb.rb" - op = Google::Ads::GoogleAds::V1::Services::MerchantCenterLinkOperation.new + # @return [Google::Ads::GoogleAds::V1::Services::CustomerManagerLinkOperation] instance that will create the resource + def self.customer_manager_link(res = nil, &blk) + require "google/ads/google_ads/v1/services/customer_manager_link_service_pb.rb" + op = Google::Ads::GoogleAds::V1::Services::CustomerManagerLinkOperation.new if !res.nil? op["create"] = res elsif !blk.nil? - op["create"] = Factories::V1::Resources.merchant_center_link(&blk) + op["create"] = Factories::V1::Resources.customer_manager_link(&blk) end op end - # A convenience method for creating an CustomerManagerLinkOperation instance with - # its "create" field prepopulated with an CustomerManagerLink instance. + # A convenience method for creating an KeywordPlanNegativeKeywordOperation instance with + # its "create" field prepopulated with an KeywordPlanNegativeKeyword instance. # - # @overload customer_manager_link - # creates an operation instance, yielding a newly fabricated CustomerManagerLink + # @overload keyword_plan_negative_keyword + # creates an operation instance, yielding a newly fabricated KeywordPlanNegativeKeyword # which can be used for setting attributes on the newly created resource - # @overload customer_manager_link(res) + # @overload keyword_plan_negative_keyword(res) # creates an operation instance, with the resource to be created # set to the passed value (res) - # @param res [Google::Ads::GoogleAds::V1::Resources::CustomerManagerLink] + # @param res [Google::Ads::GoogleAds::V1::Resources::KeywordPlanNegativeKeyword] # a resource instance to be used for creation in this operation. # - # @return [Google::Ads::GoogleAds::V1::Services::CustomerManagerLinkOperation] instance that will create the resource - def self.customer_manager_link(res = nil, &blk) - require "google/ads/google_ads/v1/services/customer_manager_link_service_pb.rb" - op = Google::Ads::GoogleAds::V1::Services::CustomerManagerLinkOperation.new + # @return [Google::Ads::GoogleAds::V1::Services::KeywordPlanNegativeKeywordOperation] instance that will create the resource + def self.keyword_plan_negative_keyword(res = nil, &blk) + require "google/ads/google_ads/v1/services/keyword_plan_negative_keyword_service_pb.rb" + op = Google::Ads::GoogleAds::V1::Services::KeywordPlanNegativeKeywordOperation.new if !res.nil? op["create"] = res elsif !blk.nil? - op["create"] = Factories::V1::Resources.customer_manager_link(&blk) + op["create"] = Factories::V1::Resources.keyword_plan_negative_keyword(&blk) end op end + # A convenience method for creating an CustomInterestOperation instance with + # its "create" field prepopulated with an CustomInterest instance. + # + # @overload custom_interest + # creates an operation instance, yielding a newly fabricated CustomInterest + # which can be used for setting attributes on the newly created resource + # @overload custom_interest(res) + # creates an operation instance, with the resource to be created + # set to the passed value (res) + # @param res [Google::Ads::GoogleAds::V1::Resources::CustomInterest] + # a resource instance to be used for creation in this operation. + # + # @return [Google::Ads::GoogleAds::V1::Services::CustomInterestOperation] instance that will create the resource + def self.custom_interest(res = nil, &blk) + require "google/ads/google_ads/v1/services/custom_interest_service_pb.rb" + op = Google::Ads::GoogleAds::V1::Services::CustomInterestOperation.new + if !res.nil? + op["create"] = res + elsif !blk.nil? + op["create"] = Factories::V1::Resources.custom_interest(&blk) + end + + op + end + # A convenience method for creating an CustomerClientLinkOperation instance with # its "create" field prepopulated with an CustomerClientLink instance. # # @overload customer_client_link # creates an operation instance, yielding a newly fabricated CustomerClientLink @@ -1333,233 +1358,364 @@ op["create"] = Factories::V1::Resources.customer_client_link(&blk) end op end + end - # A convenience method for creating an KeywordPlanAdGroupOperation instance with - # its "create" field prepopulated with an KeywordPlanAdGroup instance. + module UpdateResource + # A convenience method for creating an KeywordPlanKeywordOperation instance with + # its "update" field prepopulated with an KeywordPlanKeyword instance, and + # its "update_mask" field populated as needed to send the updates to the API. # - # @overload keyword_plan_ad_group - # creates an operation instance, yielding a newly fabricated KeywordPlanAdGroup - # which can be used for setting attributes on the newly created resource - # @overload keyword_plan_ad_group(res) - # creates an operation instance, with the resource to be created - # set to the passed value (res) - # @param res [Google::Ads::GoogleAds::V1::Resources::KeywordPlanAdGroup] - # a resource instance to be used for creation in this operation. + # @overload #keyword_plan_keyword(path, &blk) + # @param path [String] a resource path for the resource to update + # @yield [Google::Ads::GoogleAds::V1::Resources::KeywordPlanKeyword] a new instance of the resource for this update operation, on + # which fields can be set to update # - # @return [Google::Ads::GoogleAds::V1::Services::KeywordPlanAdGroupOperation] instance that will create the resource - def self.keyword_plan_ad_group(res = nil, &blk) - require "google/ads/google_ads/v1/services/keyword_plan_ad_group_service_pb.rb" - op = Google::Ads::GoogleAds::V1::Services::KeywordPlanAdGroupOperation.new - if !res.nil? - op["create"] = res - elsif !blk.nil? - op["create"] = Factories::V1::Resources.keyword_plan_ad_group(&blk) + # @overload #keyword_plan_keyword(resource, &blk) + # @param resource [Google::Ads::GoogleAds::V1::Resources::KeywordPlanKeyword] 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::V1::Services::KeywordPlanKeywordOperation] the operation instance to update the resource + def self.keyword_plan_keyword(resource_or_path, &blk) + require "google/ads/google_ads/v1/services/keyword_plan_keyword_service_pb.rb" + res = case resource_or_path + when Google::Ads::GoogleAds::V1::Resources::KeywordPlanKeyword + resource_or_path + # got a resource path + when String + obj = Google::Ads::GoogleAds::V1::Resources::KeywordPlanKeyword.new + obj.resource_name = resource_or_path + obj + else + unless Google::Ads::GoogleAds::V1::Resources::KeywordPlanKeyword === res + raise ArgumentError.new( + "Called #{__method__} with instance of wrong type:"\ + " #{res.class} want #{operation.update_class}"\ + " or String representing resource name" + ) + end end + op = Google::Ads::GoogleAds::V1::Services::KeywordPlanKeywordOperation.new + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update"] = res op end - end - module UpdateResource - # A convenience method for creating an CustomInterestOperation instance with - # its "update" field prepopulated with an CustomInterest instance, and + # A convenience method for creating an FeedMappingOperation instance with + # its "update" field prepopulated with an FeedMapping instance, and # its "update_mask" field populated as needed to send the updates to the API. # - # @overload #custom_interest(path, &blk) + # @overload #feed_mapping(path, &blk) # @param path [String] a resource path for the resource to update - # @yield [Google::Ads::GoogleAds::V1::Resources::CustomInterest] a new instance of the resource for this update operation, on + # @yield [Google::Ads::GoogleAds::V1::Resources::FeedMapping] a new instance of the resource for this update operation, on # which fields can be set to update # - # @overload #custom_interest(resource, &blk) - # @param resource [Google::Ads::GoogleAds::V1::Resources::CustomInterest] a resource instance to update + # @overload #feed_mapping(resource, &blk) + # @param resource [Google::Ads::GoogleAds::V1::Resources::FeedMapping] 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::V1::Services::CustomInterestOperation] the operation instance to update the resource - def self.custom_interest(resource_or_path, &blk) - require "google/ads/google_ads/v1/services/custom_interest_service_pb.rb" + # @return [Google::Ads::GoogleAds::V1::Services::FeedMappingOperation] the operation instance to update the resource + def self.feed_mapping(resource_or_path, &blk) + require "google/ads/google_ads/v1/services/feed_mapping_service_pb.rb" res = case resource_or_path - when Google::Ads::GoogleAds::V1::Resources::CustomInterest + when Google::Ads::GoogleAds::V1::Resources::FeedMapping resource_or_path # got a resource path when String - obj = Google::Ads::GoogleAds::V1::Resources::CustomInterest.new + obj = Google::Ads::GoogleAds::V1::Resources::FeedMapping.new obj.resource_name = resource_or_path obj else - unless Google::Ads::GoogleAds::V1::Resources::CustomInterest === res + unless Google::Ads::GoogleAds::V1::Resources::FeedMapping === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end - op = Google::Ads::GoogleAds::V1::Services::CustomInterestOperation.new + op = Google::Ads::GoogleAds::V1::Services::FeedMappingOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end - # A convenience method for creating an RemarketingActionOperation instance with - # its "update" field prepopulated with an RemarketingAction instance, and + # A convenience method for creating an FeedOperation instance with + # its "update" field prepopulated with an Feed instance, and # its "update_mask" field populated as needed to send the updates to the API. # - # @overload #remarketing_action(path, &blk) + # @overload #feed(path, &blk) # @param path [String] a resource path for the resource to update - # @yield [Google::Ads::GoogleAds::V1::Resources::RemarketingAction] a new instance of the resource for this update operation, on + # @yield [Google::Ads::GoogleAds::V1::Resources::Feed] a new instance of the resource for this update operation, on # which fields can be set to update # - # @overload #remarketing_action(resource, &blk) - # @param resource [Google::Ads::GoogleAds::V1::Resources::RemarketingAction] a resource instance to update + # @overload #feed(resource, &blk) + # @param resource [Google::Ads::GoogleAds::V1::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::V1::Services::RemarketingActionOperation] the operation instance to update the resource - def self.remarketing_action(resource_or_path, &blk) - require "google/ads/google_ads/v1/services/remarketing_action_service_pb.rb" + # @return [Google::Ads::GoogleAds::V1::Services::FeedOperation] the operation instance to update the resource + def self.feed(resource_or_path, &blk) + require "google/ads/google_ads/v1/services/feed_service_pb.rb" res = case resource_or_path - when Google::Ads::GoogleAds::V1::Resources::RemarketingAction + when Google::Ads::GoogleAds::V1::Resources::Feed resource_or_path # got a resource path when String - obj = Google::Ads::GoogleAds::V1::Resources::RemarketingAction.new + obj = Google::Ads::GoogleAds::V1::Resources::Feed.new obj.resource_name = resource_or_path obj else - unless Google::Ads::GoogleAds::V1::Resources::RemarketingAction === res + unless Google::Ads::GoogleAds::V1::Resources::Feed === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end - op = Google::Ads::GoogleAds::V1::Services::RemarketingActionOperation.new + op = Google::Ads::GoogleAds::V1::Services::FeedOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end - # A convenience method for creating an KeywordPlanCampaignOperation instance with - # its "update" field prepopulated with an KeywordPlanCampaign instance, and + # A convenience method for creating an AdGroupCriterionLabelOperation instance with + # its "update" field prepopulated with an AdGroupCriterionLabel instance, and # its "update_mask" field populated as needed to send the updates to the API. # - # @overload #keyword_plan_campaign(path, &blk) + # @overload #ad_group_criterion_label(path, &blk) # @param path [String] a resource path for the resource to update - # @yield [Google::Ads::GoogleAds::V1::Resources::KeywordPlanCampaign] a new instance of the resource for this update operation, on + # @yield [Google::Ads::GoogleAds::V1::Resources::AdGroupCriterionLabel] a new instance of the resource for this update operation, on # which fields can be set to update # - # @overload #keyword_plan_campaign(resource, &blk) - # @param resource [Google::Ads::GoogleAds::V1::Resources::KeywordPlanCampaign] a resource instance to update + # @overload #ad_group_criterion_label(resource, &blk) + # @param resource [Google::Ads::GoogleAds::V1::Resources::AdGroupCriterionLabel] 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::V1::Services::KeywordPlanCampaignOperation] the operation instance to update the resource - def self.keyword_plan_campaign(resource_or_path, &blk) - require "google/ads/google_ads/v1/services/keyword_plan_campaign_service_pb.rb" + # @return [Google::Ads::GoogleAds::V1::Services::AdGroupCriterionLabelOperation] the operation instance to update the resource + def self.ad_group_criterion_label(resource_or_path, &blk) + require "google/ads/google_ads/v1/services/ad_group_criterion_label_service_pb.rb" res = case resource_or_path - when Google::Ads::GoogleAds::V1::Resources::KeywordPlanCampaign + when Google::Ads::GoogleAds::V1::Resources::AdGroupCriterionLabel resource_or_path # got a resource path when String - obj = Google::Ads::GoogleAds::V1::Resources::KeywordPlanCampaign.new + obj = Google::Ads::GoogleAds::V1::Resources::AdGroupCriterionLabel.new obj.resource_name = resource_or_path obj else - unless Google::Ads::GoogleAds::V1::Resources::KeywordPlanCampaign === res + unless Google::Ads::GoogleAds::V1::Resources::AdGroupCriterionLabel === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end - op = Google::Ads::GoogleAds::V1::Services::KeywordPlanCampaignOperation.new + op = Google::Ads::GoogleAds::V1::Services::AdGroupCriterionLabelOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end - # A convenience method for creating an AdGroupAdLabelOperation instance with - # its "update" field prepopulated with an AdGroupAdLabel instance, and + # A convenience method for creating an ConversionActionOperation instance with + # its "update" field prepopulated with an ConversionAction instance, and # its "update_mask" field populated as needed to send the updates to the API. # - # @overload #ad_group_ad_label(path, &blk) + # @overload #conversion_action(path, &blk) # @param path [String] a resource path for the resource to update - # @yield [Google::Ads::GoogleAds::V1::Resources::AdGroupAdLabel] a new instance of the resource for this update operation, on + # @yield [Google::Ads::GoogleAds::V1::Resources::ConversionAction] a new instance of the resource for this update operation, on # which fields can be set to update # - # @overload #ad_group_ad_label(resource, &blk) - # @param resource [Google::Ads::GoogleAds::V1::Resources::AdGroupAdLabel] a resource instance to update + # @overload #conversion_action(resource, &blk) + # @param resource [Google::Ads::GoogleAds::V1::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::V1::Services::AdGroupAdLabelOperation] the operation instance to update the resource - def self.ad_group_ad_label(resource_or_path, &blk) - require "google/ads/google_ads/v1/services/ad_group_ad_label_service_pb.rb" + # @return [Google::Ads::GoogleAds::V1::Services::ConversionActionOperation] the operation instance to update the resource + def self.conversion_action(resource_or_path, &blk) + require "google/ads/google_ads/v1/services/conversion_action_service_pb.rb" res = case resource_or_path - when Google::Ads::GoogleAds::V1::Resources::AdGroupAdLabel + when Google::Ads::GoogleAds::V1::Resources::ConversionAction resource_or_path # got a resource path when String - obj = Google::Ads::GoogleAds::V1::Resources::AdGroupAdLabel.new + obj = Google::Ads::GoogleAds::V1::Resources::ConversionAction.new obj.resource_name = resource_or_path obj else - unless Google::Ads::GoogleAds::V1::Resources::AdGroupAdLabel === res + unless Google::Ads::GoogleAds::V1::Resources::ConversionAction === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end - op = Google::Ads::GoogleAds::V1::Services::AdGroupAdLabelOperation.new + op = Google::Ads::GoogleAds::V1::Services::ConversionActionOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end - # A convenience method for creating an AdGroupAdOperation instance with - # its "update" field prepopulated with an AdGroupAd instance, and + # A convenience method for creating an BiddingStrategyOperation instance with + # its "update" field prepopulated with an BiddingStrategy instance, and # its "update_mask" field populated as needed to send the updates to the API. # - # @overload #ad_group_ad(path, &blk) + # @overload #bidding_strategy(path, &blk) # @param path [String] a resource path for the resource to update - # @yield [Google::Ads::GoogleAds::V1::Resources::AdGroupAd] a new instance of the resource for this update operation, on + # @yield [Google::Ads::GoogleAds::V1::Resources::BiddingStrategy] a new instance of the resource for this update operation, on # which fields can be set to update # - # @overload #ad_group_ad(resource, &blk) - # @param resource [Google::Ads::GoogleAds::V1::Resources::AdGroupAd] a resource instance to update + # @overload #bidding_strategy(resource, &blk) + # @param resource [Google::Ads::GoogleAds::V1::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::V1::Services::AdGroupAdOperation] the operation instance to update the resource - def self.ad_group_ad(resource_or_path, &blk) - require "google/ads/google_ads/v1/services/ad_group_ad_service_pb.rb" + # @return [Google::Ads::GoogleAds::V1::Services::BiddingStrategyOperation] the operation instance to update the resource + def self.bidding_strategy(resource_or_path, &blk) + require "google/ads/google_ads/v1/services/bidding_strategy_service_pb.rb" res = case resource_or_path - when Google::Ads::GoogleAds::V1::Resources::AdGroupAd + when Google::Ads::GoogleAds::V1::Resources::BiddingStrategy resource_or_path # got a resource path when String - obj = Google::Ads::GoogleAds::V1::Resources::AdGroupAd.new + obj = Google::Ads::GoogleAds::V1::Resources::BiddingStrategy.new obj.resource_name = resource_or_path obj else - unless Google::Ads::GoogleAds::V1::Resources::AdGroupAd === res + unless Google::Ads::GoogleAds::V1::Resources::BiddingStrategy === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end - op = Google::Ads::GoogleAds::V1::Services::AdGroupAdOperation.new + op = Google::Ads::GoogleAds::V1::Services::BiddingStrategyOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end + # A convenience method for creating an AccountBudgetProposalOperation instance with + # its "update" field prepopulated with an AccountBudgetProposal instance, and + # its "update_mask" field populated as needed to send the updates to the API. + # + # @overload #account_budget_proposal(path, &blk) + # @param path [String] a resource path for the resource to update + # @yield [Google::Ads::GoogleAds::V1::Resources::AccountBudgetProposal] a new instance of the resource for this update operation, on + # which fields can be set to update + # + # @overload #account_budget_proposal(resource, &blk) + # @param resource [Google::Ads::GoogleAds::V1::Resources::AccountBudgetProposal] 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::V1::Services::AccountBudgetProposalOperation] the operation instance to update the resource + def self.account_budget_proposal(resource_or_path, &blk) + require "google/ads/google_ads/v1/services/account_budget_proposal_service_pb.rb" + res = case resource_or_path + when Google::Ads::GoogleAds::V1::Resources::AccountBudgetProposal + resource_or_path + # got a resource path + when String + obj = Google::Ads::GoogleAds::V1::Resources::AccountBudgetProposal.new + obj.resource_name = resource_or_path + obj + else + unless Google::Ads::GoogleAds::V1::Resources::AccountBudgetProposal === res + raise ArgumentError.new( + "Called #{__method__} with instance of wrong type:"\ + " #{res.class} want #{operation.update_class}"\ + " or String representing resource name" + ) + end + end + + op = Google::Ads::GoogleAds::V1::Services::AccountBudgetProposalOperation.new + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update"] = res + op + end + + # A convenience method for creating an FeedItemOperation instance with + # its "update" field prepopulated with an FeedItem instance, and + # its "update_mask" field populated as needed to send the updates to the API. + # + # @overload #feed_item(path, &blk) + # @param path [String] a resource path for the resource to update + # @yield [Google::Ads::GoogleAds::V1::Resources::FeedItem] a new instance of the resource for this update operation, on + # which fields can be set to update + # + # @overload #feed_item(resource, &blk) + # @param resource [Google::Ads::GoogleAds::V1::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::V1::Services::FeedItemOperation] the operation instance to update the resource + def self.feed_item(resource_or_path, &blk) + require "google/ads/google_ads/v1/services/feed_item_service_pb.rb" + res = case resource_or_path + when Google::Ads::GoogleAds::V1::Resources::FeedItem + resource_or_path + # got a resource path + when String + obj = Google::Ads::GoogleAds::V1::Resources::FeedItem.new + obj.resource_name = resource_or_path + obj + else + unless Google::Ads::GoogleAds::V1::Resources::FeedItem === res + raise ArgumentError.new( + "Called #{__method__} with instance of wrong type:"\ + " #{res.class} want #{operation.update_class}"\ + " or String representing resource name" + ) + end + end + + op = Google::Ads::GoogleAds::V1::Services::FeedItemOperation.new + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update"] = res + op + end + + # A convenience method for creating an CampaignBudgetOperation instance with + # its "update" field prepopulated with an CampaignBudget instance, and + # its "update_mask" field populated as needed to send the updates to the API. + # + # @overload #campaign_budget(path, &blk) + # @param path [String] a resource path for the resource to update + # @yield [Google::Ads::GoogleAds::V1::Resources::CampaignBudget] a new instance of the resource for this update operation, on + # which fields can be set to update + # + # @overload #campaign_budget(resource, &blk) + # @param resource [Google::Ads::GoogleAds::V1::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::V1::Services::CampaignBudgetOperation] the operation instance to update the resource + def self.campaign_budget(resource_or_path, &blk) + require "google/ads/google_ads/v1/services/campaign_budget_service_pb.rb" + res = case resource_or_path + when Google::Ads::GoogleAds::V1::Resources::CampaignBudget + resource_or_path + # got a resource path + when String + obj = Google::Ads::GoogleAds::V1::Resources::CampaignBudget.new + obj.resource_name = resource_or_path + obj + else + unless Google::Ads::GoogleAds::V1::Resources::CampaignBudget === res + raise ArgumentError.new( + "Called #{__method__} with instance of wrong type:"\ + " #{res.class} want #{operation.update_class}"\ + " or String representing resource name" + ) + end + end + + op = Google::Ads::GoogleAds::V1::Services::CampaignBudgetOperation.new + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update"] = res + op + end + # A convenience method for creating an AdGroupBidModifierOperation instance with # its "update" field prepopulated with an AdGroupBidModifier instance, and # its "update_mask" field populated as needed to send the updates to the API. # # @overload #ad_group_bid_modifier(path, &blk) @@ -1595,634 +1751,673 @@ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end - # A convenience method for creating an AdGroupCriterionLabelOperation instance with - # its "update" field prepopulated with an AdGroupCriterionLabel instance, and + # A convenience method for creating an CampaignLabelOperation instance with + # its "update" field prepopulated with an CampaignLabel instance, and # its "update_mask" field populated as needed to send the updates to the API. # - # @overload #ad_group_criterion_label(path, &blk) + # @overload #campaign_label(path, &blk) # @param path [String] a resource path for the resource to update - # @yield [Google::Ads::GoogleAds::V1::Resources::AdGroupCriterionLabel] a new instance of the resource for this update operation, on + # @yield [Google::Ads::GoogleAds::V1::Resources::CampaignLabel] a new instance of the resource for this update operation, on # which fields can be set to update # - # @overload #ad_group_criterion_label(resource, &blk) - # @param resource [Google::Ads::GoogleAds::V1::Resources::AdGroupCriterionLabel] a resource instance to update + # @overload #campaign_label(resource, &blk) + # @param resource [Google::Ads::GoogleAds::V1::Resources::CampaignLabel] 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::V1::Services::AdGroupCriterionLabelOperation] the operation instance to update the resource - def self.ad_group_criterion_label(resource_or_path, &blk) - require "google/ads/google_ads/v1/services/ad_group_criterion_label_service_pb.rb" + # @return [Google::Ads::GoogleAds::V1::Services::CampaignLabelOperation] the operation instance to update the resource + def self.campaign_label(resource_or_path, &blk) + require "google/ads/google_ads/v1/services/campaign_label_service_pb.rb" res = case resource_or_path - when Google::Ads::GoogleAds::V1::Resources::AdGroupCriterionLabel + when Google::Ads::GoogleAds::V1::Resources::CampaignLabel resource_or_path # got a resource path when String - obj = Google::Ads::GoogleAds::V1::Resources::AdGroupCriterionLabel.new + obj = Google::Ads::GoogleAds::V1::Resources::CampaignLabel.new obj.resource_name = resource_or_path obj else - unless Google::Ads::GoogleAds::V1::Resources::AdGroupCriterionLabel === res + unless Google::Ads::GoogleAds::V1::Resources::CampaignLabel === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end - op = Google::Ads::GoogleAds::V1::Services::AdGroupCriterionLabelOperation.new + op = Google::Ads::GoogleAds::V1::Services::CampaignLabelOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end - # A convenience method for creating an AdGroupCriterionOperation instance with - # its "update" field prepopulated with an AdGroupCriterion instance, and + # A convenience method for creating an SharedCriterionOperation instance with + # its "update" field prepopulated with an SharedCriterion instance, and # its "update_mask" field populated as needed to send the updates to the API. # - # @overload #ad_group_criterion(path, &blk) + # @overload #shared_criterion(path, &blk) # @param path [String] a resource path for the resource to update - # @yield [Google::Ads::GoogleAds::V1::Resources::AdGroupCriterion] a new instance of the resource for this update operation, on + # @yield [Google::Ads::GoogleAds::V1::Resources::SharedCriterion] a new instance of the resource for this update operation, on # which fields can be set to update # - # @overload #ad_group_criterion(resource, &blk) - # @param resource [Google::Ads::GoogleAds::V1::Resources::AdGroupCriterion] a resource instance to update + # @overload #shared_criterion(resource, &blk) + # @param resource [Google::Ads::GoogleAds::V1::Resources::SharedCriterion] 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::V1::Services::AdGroupCriterionOperation] the operation instance to update the resource - def self.ad_group_criterion(resource_or_path, &blk) - require "google/ads/google_ads/v1/services/ad_group_criterion_service_pb.rb" + # @return [Google::Ads::GoogleAds::V1::Services::SharedCriterionOperation] the operation instance to update the resource + def self.shared_criterion(resource_or_path, &blk) + require "google/ads/google_ads/v1/services/shared_criterion_service_pb.rb" res = case resource_or_path - when Google::Ads::GoogleAds::V1::Resources::AdGroupCriterion + when Google::Ads::GoogleAds::V1::Resources::SharedCriterion resource_or_path # got a resource path when String - obj = Google::Ads::GoogleAds::V1::Resources::AdGroupCriterion.new + obj = Google::Ads::GoogleAds::V1::Resources::SharedCriterion.new obj.resource_name = resource_or_path obj else - unless Google::Ads::GoogleAds::V1::Resources::AdGroupCriterion === res + unless Google::Ads::GoogleAds::V1::Resources::SharedCriterion === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end - op = Google::Ads::GoogleAds::V1::Services::AdGroupCriterionOperation.new + op = Google::Ads::GoogleAds::V1::Services::SharedCriterionOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end - # A convenience method for creating an AdGroupExtensionSettingOperation instance with - # its "update" field prepopulated with an AdGroupExtensionSetting instance, and + # A convenience method for creating an KeywordPlanAdGroupOperation instance with + # its "update" field prepopulated with an KeywordPlanAdGroup instance, and # its "update_mask" field populated as needed to send the updates to the API. # - # @overload #ad_group_extension_setting(path, &blk) + # @overload #keyword_plan_ad_group(path, &blk) # @param path [String] a resource path for the resource to update - # @yield [Google::Ads::GoogleAds::V1::Resources::AdGroupExtensionSetting] a new instance of the resource for this update operation, on + # @yield [Google::Ads::GoogleAds::V1::Resources::KeywordPlanAdGroup] a new instance of the resource for this update operation, on # which fields can be set to update # - # @overload #ad_group_extension_setting(resource, &blk) - # @param resource [Google::Ads::GoogleAds::V1::Resources::AdGroupExtensionSetting] a resource instance to update + # @overload #keyword_plan_ad_group(resource, &blk) + # @param resource [Google::Ads::GoogleAds::V1::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::V1::Services::AdGroupExtensionSettingOperation] the operation instance to update the resource - def self.ad_group_extension_setting(resource_or_path, &blk) - require "google/ads/google_ads/v1/services/ad_group_extension_setting_service_pb.rb" + # @return [Google::Ads::GoogleAds::V1::Services::KeywordPlanAdGroupOperation] the operation instance to update the resource + def self.keyword_plan_ad_group(resource_or_path, &blk) + require "google/ads/google_ads/v1/services/keyword_plan_ad_group_service_pb.rb" res = case resource_or_path - when Google::Ads::GoogleAds::V1::Resources::AdGroupExtensionSetting + when Google::Ads::GoogleAds::V1::Resources::KeywordPlanAdGroup resource_or_path # got a resource path when String - obj = Google::Ads::GoogleAds::V1::Resources::AdGroupExtensionSetting.new + obj = Google::Ads::GoogleAds::V1::Resources::KeywordPlanAdGroup.new obj.resource_name = resource_or_path obj else - unless Google::Ads::GoogleAds::V1::Resources::AdGroupExtensionSetting === res + unless Google::Ads::GoogleAds::V1::Resources::KeywordPlanAdGroup === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end - op = Google::Ads::GoogleAds::V1::Services::AdGroupExtensionSettingOperation.new + op = Google::Ads::GoogleAds::V1::Services::KeywordPlanAdGroupOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end - # A convenience method for creating an AdGroupFeedOperation instance with - # its "update" field prepopulated with an AdGroupFeed instance, and + # A convenience method for creating an CampaignDraftOperation instance with + # its "update" field prepopulated with an CampaignDraft instance, and # its "update_mask" field populated as needed to send the updates to the API. # - # @overload #ad_group_feed(path, &blk) + # @overload #campaign_draft(path, &blk) # @param path [String] a resource path for the resource to update - # @yield [Google::Ads::GoogleAds::V1::Resources::AdGroupFeed] a new instance of the resource for this update operation, on + # @yield [Google::Ads::GoogleAds::V1::Resources::CampaignDraft] a new instance of the resource for this update operation, on # which fields can be set to update # - # @overload #ad_group_feed(resource, &blk) - # @param resource [Google::Ads::GoogleAds::V1::Resources::AdGroupFeed] a resource instance to update + # @overload #campaign_draft(resource, &blk) + # @param resource [Google::Ads::GoogleAds::V1::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::V1::Services::AdGroupFeedOperation] the operation instance to update the resource - def self.ad_group_feed(resource_or_path, &blk) - require "google/ads/google_ads/v1/services/ad_group_feed_service_pb.rb" + # @return [Google::Ads::GoogleAds::V1::Services::CampaignDraftOperation] the operation instance to update the resource + def self.campaign_draft(resource_or_path, &blk) + require "google/ads/google_ads/v1/services/campaign_draft_service_pb.rb" res = case resource_or_path - when Google::Ads::GoogleAds::V1::Resources::AdGroupFeed + when Google::Ads::GoogleAds::V1::Resources::CampaignDraft resource_or_path # got a resource path when String - obj = Google::Ads::GoogleAds::V1::Resources::AdGroupFeed.new + obj = Google::Ads::GoogleAds::V1::Resources::CampaignDraft.new obj.resource_name = resource_or_path obj else - unless Google::Ads::GoogleAds::V1::Resources::AdGroupFeed === res + unless Google::Ads::GoogleAds::V1::Resources::CampaignDraft === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end - op = Google::Ads::GoogleAds::V1::Services::AdGroupFeedOperation.new + op = Google::Ads::GoogleAds::V1::Services::CampaignDraftOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end - # A convenience method for creating an AdGroupLabelOperation instance with - # its "update" field prepopulated with an AdGroupLabel instance, and + # A convenience method for creating an CampaignFeedOperation instance with + # its "update" field prepopulated with an CampaignFeed instance, and # its "update_mask" field populated as needed to send the updates to the API. # - # @overload #ad_group_label(path, &blk) + # @overload #campaign_feed(path, &blk) # @param path [String] a resource path for the resource to update - # @yield [Google::Ads::GoogleAds::V1::Resources::AdGroupLabel] a new instance of the resource for this update operation, on + # @yield [Google::Ads::GoogleAds::V1::Resources::CampaignFeed] a new instance of the resource for this update operation, on # which fields can be set to update # - # @overload #ad_group_label(resource, &blk) - # @param resource [Google::Ads::GoogleAds::V1::Resources::AdGroupLabel] a resource instance to update + # @overload #campaign_feed(resource, &blk) + # @param resource [Google::Ads::GoogleAds::V1::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::V1::Services::AdGroupLabelOperation] the operation instance to update the resource - def self.ad_group_label(resource_or_path, &blk) - require "google/ads/google_ads/v1/services/ad_group_label_service_pb.rb" + # @return [Google::Ads::GoogleAds::V1::Services::CampaignFeedOperation] the operation instance to update the resource + def self.campaign_feed(resource_or_path, &blk) + require "google/ads/google_ads/v1/services/campaign_feed_service_pb.rb" res = case resource_or_path - when Google::Ads::GoogleAds::V1::Resources::AdGroupLabel + when Google::Ads::GoogleAds::V1::Resources::CampaignFeed resource_or_path # got a resource path when String - obj = Google::Ads::GoogleAds::V1::Resources::AdGroupLabel.new + obj = Google::Ads::GoogleAds::V1::Resources::CampaignFeed.new obj.resource_name = resource_or_path obj else - unless Google::Ads::GoogleAds::V1::Resources::AdGroupLabel === res + unless Google::Ads::GoogleAds::V1::Resources::CampaignFeed === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end - op = Google::Ads::GoogleAds::V1::Services::AdGroupLabelOperation.new + op = Google::Ads::GoogleAds::V1::Services::CampaignFeedOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end - # A convenience method for creating an AdGroupOperation instance with - # its "update" field prepopulated with an AdGroup instance, and + # A convenience method for creating an AdGroupCriterionOperation instance with + # its "update" field prepopulated with an AdGroupCriterion instance, and # its "update_mask" field populated as needed to send the updates to the API. # - # @overload #ad_group(path, &blk) + # @overload #ad_group_criterion(path, &blk) # @param path [String] a resource path for the resource to update - # @yield [Google::Ads::GoogleAds::V1::Resources::AdGroup] a new instance of the resource for this update operation, on + # @yield [Google::Ads::GoogleAds::V1::Resources::AdGroupCriterion] a new instance of the resource for this update operation, on # which fields can be set to update # - # @overload #ad_group(resource, &blk) - # @param resource [Google::Ads::GoogleAds::V1::Resources::AdGroup] a resource instance to update + # @overload #ad_group_criterion(resource, &blk) + # @param resource [Google::Ads::GoogleAds::V1::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::V1::Services::AdGroupOperation] the operation instance to update the resource - def self.ad_group(resource_or_path, &blk) - require "google/ads/google_ads/v1/services/ad_group_service_pb.rb" + # @return [Google::Ads::GoogleAds::V1::Services::AdGroupCriterionOperation] the operation instance to update the resource + def self.ad_group_criterion(resource_or_path, &blk) + require "google/ads/google_ads/v1/services/ad_group_criterion_service_pb.rb" res = case resource_or_path - when Google::Ads::GoogleAds::V1::Resources::AdGroup + when Google::Ads::GoogleAds::V1::Resources::AdGroupCriterion resource_or_path # got a resource path when String - obj = Google::Ads::GoogleAds::V1::Resources::AdGroup.new + obj = Google::Ads::GoogleAds::V1::Resources::AdGroupCriterion.new obj.resource_name = resource_or_path obj else - unless Google::Ads::GoogleAds::V1::Resources::AdGroup === res + unless Google::Ads::GoogleAds::V1::Resources::AdGroupCriterion === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end - op = Google::Ads::GoogleAds::V1::Services::AdGroupOperation.new + op = Google::Ads::GoogleAds::V1::Services::AdGroupCriterionOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end - # A convenience method for creating an AdParameterOperation instance with - # its "update" field prepopulated with an AdParameter instance, and + # A convenience method for creating an AdGroupAdLabelOperation instance with + # its "update" field prepopulated with an AdGroupAdLabel instance, and # its "update_mask" field populated as needed to send the updates to the API. # - # @overload #ad_parameter(path, &blk) + # @overload #ad_group_ad_label(path, &blk) # @param path [String] a resource path for the resource to update - # @yield [Google::Ads::GoogleAds::V1::Resources::AdParameter] a new instance of the resource for this update operation, on + # @yield [Google::Ads::GoogleAds::V1::Resources::AdGroupAdLabel] a new instance of the resource for this update operation, on # which fields can be set to update # - # @overload #ad_parameter(resource, &blk) - # @param resource [Google::Ads::GoogleAds::V1::Resources::AdParameter] a resource instance to update + # @overload #ad_group_ad_label(resource, &blk) + # @param resource [Google::Ads::GoogleAds::V1::Resources::AdGroupAdLabel] 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::V1::Services::AdParameterOperation] the operation instance to update the resource - def self.ad_parameter(resource_or_path, &blk) - require "google/ads/google_ads/v1/services/ad_parameter_service_pb.rb" + # @return [Google::Ads::GoogleAds::V1::Services::AdGroupAdLabelOperation] the operation instance to update the resource + def self.ad_group_ad_label(resource_or_path, &blk) + require "google/ads/google_ads/v1/services/ad_group_ad_label_service_pb.rb" res = case resource_or_path - when Google::Ads::GoogleAds::V1::Resources::AdParameter + when Google::Ads::GoogleAds::V1::Resources::AdGroupAdLabel resource_or_path # got a resource path when String - obj = Google::Ads::GoogleAds::V1::Resources::AdParameter.new + obj = Google::Ads::GoogleAds::V1::Resources::AdGroupAdLabel.new obj.resource_name = resource_or_path obj else - unless Google::Ads::GoogleAds::V1::Resources::AdParameter === res + unless Google::Ads::GoogleAds::V1::Resources::AdGroupAdLabel === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end - op = Google::Ads::GoogleAds::V1::Services::AdParameterOperation.new + op = Google::Ads::GoogleAds::V1::Services::AdGroupAdLabelOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end - # A convenience method for creating an AssetOperation instance with - # its "update" field prepopulated with an Asset instance, and + # A convenience method for creating an AdGroupAdOperation instance with + # its "update" field prepopulated with an AdGroupAd instance, and # its "update_mask" field populated as needed to send the updates to the API. # - # @overload #asset(path, &blk) + # @overload #ad_group_ad(path, &blk) # @param path [String] a resource path for the resource to update - # @yield [Google::Ads::GoogleAds::V1::Resources::Asset] a new instance of the resource for this update operation, on + # @yield [Google::Ads::GoogleAds::V1::Resources::AdGroupAd] a new instance of the resource for this update operation, on # which fields can be set to update # - # @overload #asset(resource, &blk) - # @param resource [Google::Ads::GoogleAds::V1::Resources::Asset] a resource instance to update + # @overload #ad_group_ad(resource, &blk) + # @param resource [Google::Ads::GoogleAds::V1::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::V1::Services::AssetOperation] the operation instance to update the resource - def self.asset(resource_or_path, &blk) - require "google/ads/google_ads/v1/services/asset_service_pb.rb" + # @return [Google::Ads::GoogleAds::V1::Services::AdGroupAdOperation] the operation instance to update the resource + def self.ad_group_ad(resource_or_path, &blk) + require "google/ads/google_ads/v1/services/ad_group_ad_service_pb.rb" res = case resource_or_path - when Google::Ads::GoogleAds::V1::Resources::Asset + when Google::Ads::GoogleAds::V1::Resources::AdGroupAd resource_or_path # got a resource path when String - obj = Google::Ads::GoogleAds::V1::Resources::Asset.new + obj = Google::Ads::GoogleAds::V1::Resources::AdGroupAd.new obj.resource_name = resource_or_path obj else - unless Google::Ads::GoogleAds::V1::Resources::Asset === res + unless Google::Ads::GoogleAds::V1::Resources::AdGroupAd === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end - op = Google::Ads::GoogleAds::V1::Services::AssetOperation.new + op = Google::Ads::GoogleAds::V1::Services::AdGroupAdOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end - # A convenience method for creating an BiddingStrategyOperation instance with - # its "update" field prepopulated with an BiddingStrategy instance, and + # A convenience method for creating an AdGroupExtensionSettingOperation instance with + # its "update" field prepopulated with an AdGroupExtensionSetting instance, and # its "update_mask" field populated as needed to send the updates to the API. # - # @overload #bidding_strategy(path, &blk) + # @overload #ad_group_extension_setting(path, &blk) # @param path [String] a resource path for the resource to update - # @yield [Google::Ads::GoogleAds::V1::Resources::BiddingStrategy] a new instance of the resource for this update operation, on + # @yield [Google::Ads::GoogleAds::V1::Resources::AdGroupExtensionSetting] a new instance of the resource for this update operation, on # which fields can be set to update # - # @overload #bidding_strategy(resource, &blk) - # @param resource [Google::Ads::GoogleAds::V1::Resources::BiddingStrategy] a resource instance to update + # @overload #ad_group_extension_setting(resource, &blk) + # @param resource [Google::Ads::GoogleAds::V1::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::V1::Services::BiddingStrategyOperation] the operation instance to update the resource - def self.bidding_strategy(resource_or_path, &blk) - require "google/ads/google_ads/v1/services/bidding_strategy_service_pb.rb" + # @return [Google::Ads::GoogleAds::V1::Services::AdGroupExtensionSettingOperation] the operation instance to update the resource + def self.ad_group_extension_setting(resource_or_path, &blk) + require "google/ads/google_ads/v1/services/ad_group_extension_setting_service_pb.rb" res = case resource_or_path - when Google::Ads::GoogleAds::V1::Resources::BiddingStrategy + when Google::Ads::GoogleAds::V1::Resources::AdGroupExtensionSetting resource_or_path # got a resource path when String - obj = Google::Ads::GoogleAds::V1::Resources::BiddingStrategy.new + obj = Google::Ads::GoogleAds::V1::Resources::AdGroupExtensionSetting.new obj.resource_name = resource_or_path obj else - unless Google::Ads::GoogleAds::V1::Resources::BiddingStrategy === res + unless Google::Ads::GoogleAds::V1::Resources::AdGroupExtensionSetting === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end - op = Google::Ads::GoogleAds::V1::Services::BiddingStrategyOperation.new + op = Google::Ads::GoogleAds::V1::Services::AdGroupExtensionSettingOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end - # A convenience method for creating an CampaignBidModifierOperation instance with - # its "update" field prepopulated with an CampaignBidModifier instance, and + # A convenience method for creating an AdGroupFeedOperation instance with + # its "update" field prepopulated with an AdGroupFeed instance, and # its "update_mask" field populated as needed to send the updates to the API. # - # @overload #campaign_bid_modifier(path, &blk) + # @overload #ad_group_feed(path, &blk) # @param path [String] a resource path for the resource to update - # @yield [Google::Ads::GoogleAds::V1::Resources::CampaignBidModifier] a new instance of the resource for this update operation, on + # @yield [Google::Ads::GoogleAds::V1::Resources::AdGroupFeed] a new instance of the resource for this update operation, on # which fields can be set to update # - # @overload #campaign_bid_modifier(resource, &blk) - # @param resource [Google::Ads::GoogleAds::V1::Resources::CampaignBidModifier] a resource instance to update + # @overload #ad_group_feed(resource, &blk) + # @param resource [Google::Ads::GoogleAds::V1::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::V1::Services::CampaignBidModifierOperation] the operation instance to update the resource - def self.campaign_bid_modifier(resource_or_path, &blk) - require "google/ads/google_ads/v1/services/campaign_bid_modifier_service_pb.rb" + # @return [Google::Ads::GoogleAds::V1::Services::AdGroupFeedOperation] the operation instance to update the resource + def self.ad_group_feed(resource_or_path, &blk) + require "google/ads/google_ads/v1/services/ad_group_feed_service_pb.rb" res = case resource_or_path - when Google::Ads::GoogleAds::V1::Resources::CampaignBidModifier + when Google::Ads::GoogleAds::V1::Resources::AdGroupFeed resource_or_path # got a resource path when String - obj = Google::Ads::GoogleAds::V1::Resources::CampaignBidModifier.new + obj = Google::Ads::GoogleAds::V1::Resources::AdGroupFeed.new obj.resource_name = resource_or_path obj else - unless Google::Ads::GoogleAds::V1::Resources::CampaignBidModifier === res + unless Google::Ads::GoogleAds::V1::Resources::AdGroupFeed === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end - op = Google::Ads::GoogleAds::V1::Services::CampaignBidModifierOperation.new + op = Google::Ads::GoogleAds::V1::Services::AdGroupFeedOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end - # A convenience method for creating an CampaignBudgetOperation instance with - # its "update" field prepopulated with an CampaignBudget instance, and + # A convenience method for creating an AdGroupLabelOperation instance with + # its "update" field prepopulated with an AdGroupLabel instance, and # its "update_mask" field populated as needed to send the updates to the API. # - # @overload #campaign_budget(path, &blk) + # @overload #ad_group_label(path, &blk) # @param path [String] a resource path for the resource to update - # @yield [Google::Ads::GoogleAds::V1::Resources::CampaignBudget] a new instance of the resource for this update operation, on + # @yield [Google::Ads::GoogleAds::V1::Resources::AdGroupLabel] a new instance of the resource for this update operation, on # which fields can be set to update # - # @overload #campaign_budget(resource, &blk) - # @param resource [Google::Ads::GoogleAds::V1::Resources::CampaignBudget] a resource instance to update + # @overload #ad_group_label(resource, &blk) + # @param resource [Google::Ads::GoogleAds::V1::Resources::AdGroupLabel] 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::V1::Services::CampaignBudgetOperation] the operation instance to update the resource - def self.campaign_budget(resource_or_path, &blk) - require "google/ads/google_ads/v1/services/campaign_budget_service_pb.rb" + # @return [Google::Ads::GoogleAds::V1::Services::AdGroupLabelOperation] the operation instance to update the resource + def self.ad_group_label(resource_or_path, &blk) + require "google/ads/google_ads/v1/services/ad_group_label_service_pb.rb" res = case resource_or_path - when Google::Ads::GoogleAds::V1::Resources::CampaignBudget + when Google::Ads::GoogleAds::V1::Resources::AdGroupLabel resource_or_path # got a resource path when String - obj = Google::Ads::GoogleAds::V1::Resources::CampaignBudget.new + obj = Google::Ads::GoogleAds::V1::Resources::AdGroupLabel.new obj.resource_name = resource_or_path obj else - unless Google::Ads::GoogleAds::V1::Resources::CampaignBudget === res + unless Google::Ads::GoogleAds::V1::Resources::AdGroupLabel === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end - op = Google::Ads::GoogleAds::V1::Services::CampaignBudgetOperation.new + op = Google::Ads::GoogleAds::V1::Services::AdGroupLabelOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end - # A convenience method for creating an CampaignCriterionOperation instance with - # its "update" field prepopulated with an CampaignCriterion instance, and + # A convenience method for creating an AdGroupOperation instance with + # its "update" field prepopulated with an AdGroup instance, and # its "update_mask" field populated as needed to send the updates to the API. # - # @overload #campaign_criterion(path, &blk) + # @overload #ad_group(path, &blk) # @param path [String] a resource path for the resource to update - # @yield [Google::Ads::GoogleAds::V1::Resources::CampaignCriterion] a new instance of the resource for this update operation, on + # @yield [Google::Ads::GoogleAds::V1::Resources::AdGroup] a new instance of the resource for this update operation, on # which fields can be set to update # - # @overload #campaign_criterion(resource, &blk) - # @param resource [Google::Ads::GoogleAds::V1::Resources::CampaignCriterion] a resource instance to update + # @overload #ad_group(resource, &blk) + # @param resource [Google::Ads::GoogleAds::V1::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::V1::Services::CampaignCriterionOperation] the operation instance to update the resource - def self.campaign_criterion(resource_or_path, &blk) - require "google/ads/google_ads/v1/services/campaign_criterion_service_pb.rb" + # @return [Google::Ads::GoogleAds::V1::Services::AdGroupOperation] the operation instance to update the resource + def self.ad_group(resource_or_path, &blk) + require "google/ads/google_ads/v1/services/ad_group_service_pb.rb" res = case resource_or_path - when Google::Ads::GoogleAds::V1::Resources::CampaignCriterion + when Google::Ads::GoogleAds::V1::Resources::AdGroup resource_or_path # got a resource path when String - obj = Google::Ads::GoogleAds::V1::Resources::CampaignCriterion.new + obj = Google::Ads::GoogleAds::V1::Resources::AdGroup.new obj.resource_name = resource_or_path obj else - unless Google::Ads::GoogleAds::V1::Resources::CampaignCriterion === res + unless Google::Ads::GoogleAds::V1::Resources::AdGroup === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end - op = Google::Ads::GoogleAds::V1::Services::CampaignCriterionOperation.new + op = Google::Ads::GoogleAds::V1::Services::AdGroupOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end - # A convenience method for creating an CampaignDraftOperation instance with - # its "update" field prepopulated with an CampaignDraft instance, and + # A convenience method for creating an AdParameterOperation instance with + # its "update" field prepopulated with an AdParameter instance, and # its "update_mask" field populated as needed to send the updates to the API. # - # @overload #campaign_draft(path, &blk) + # @overload #ad_parameter(path, &blk) # @param path [String] a resource path for the resource to update - # @yield [Google::Ads::GoogleAds::V1::Resources::CampaignDraft] a new instance of the resource for this update operation, on + # @yield [Google::Ads::GoogleAds::V1::Resources::AdParameter] a new instance of the resource for this update operation, on # which fields can be set to update # - # @overload #campaign_draft(resource, &blk) - # @param resource [Google::Ads::GoogleAds::V1::Resources::CampaignDraft] a resource instance to update + # @overload #ad_parameter(resource, &blk) + # @param resource [Google::Ads::GoogleAds::V1::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::V1::Services::CampaignDraftOperation] the operation instance to update the resource - def self.campaign_draft(resource_or_path, &blk) - require "google/ads/google_ads/v1/services/campaign_draft_service_pb.rb" + # @return [Google::Ads::GoogleAds::V1::Services::AdParameterOperation] the operation instance to update the resource + def self.ad_parameter(resource_or_path, &blk) + require "google/ads/google_ads/v1/services/ad_parameter_service_pb.rb" res = case resource_or_path - when Google::Ads::GoogleAds::V1::Resources::CampaignDraft + when Google::Ads::GoogleAds::V1::Resources::AdParameter resource_or_path # got a resource path when String - obj = Google::Ads::GoogleAds::V1::Resources::CampaignDraft.new + obj = Google::Ads::GoogleAds::V1::Resources::AdParameter.new obj.resource_name = resource_or_path obj else - unless Google::Ads::GoogleAds::V1::Resources::CampaignDraft === res + unless Google::Ads::GoogleAds::V1::Resources::AdParameter === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end - op = Google::Ads::GoogleAds::V1::Services::CampaignDraftOperation.new + op = Google::Ads::GoogleAds::V1::Services::AdParameterOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end - # A convenience method for creating an CampaignExtensionSettingOperation instance with - # its "update" field prepopulated with an CampaignExtensionSetting instance, and + # A convenience method for creating an AssetOperation instance with + # its "update" field prepopulated with an Asset instance, and # its "update_mask" field populated as needed to send the updates to the API. # - # @overload #campaign_extension_setting(path, &blk) + # @overload #asset(path, &blk) # @param path [String] a resource path for the resource to update - # @yield [Google::Ads::GoogleAds::V1::Resources::CampaignExtensionSetting] a new instance of the resource for this update operation, on + # @yield [Google::Ads::GoogleAds::V1::Resources::Asset] a new instance of the resource for this update operation, on # which fields can be set to update # - # @overload #campaign_extension_setting(resource, &blk) - # @param resource [Google::Ads::GoogleAds::V1::Resources::CampaignExtensionSetting] a resource instance to update + # @overload #asset(resource, &blk) + # @param resource [Google::Ads::GoogleAds::V1::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::V1::Services::CampaignExtensionSettingOperation] the operation instance to update the resource - def self.campaign_extension_setting(resource_or_path, &blk) - require "google/ads/google_ads/v1/services/campaign_extension_setting_service_pb.rb" + # @return [Google::Ads::GoogleAds::V1::Services::AssetOperation] the operation instance to update the resource + def self.asset(resource_or_path, &blk) + require "google/ads/google_ads/v1/services/asset_service_pb.rb" res = case resource_or_path - when Google::Ads::GoogleAds::V1::Resources::CampaignExtensionSetting + when Google::Ads::GoogleAds::V1::Resources::Asset resource_or_path # got a resource path when String - obj = Google::Ads::GoogleAds::V1::Resources::CampaignExtensionSetting.new + obj = Google::Ads::GoogleAds::V1::Resources::Asset.new obj.resource_name = resource_or_path obj else - unless Google::Ads::GoogleAds::V1::Resources::CampaignExtensionSetting === res + unless Google::Ads::GoogleAds::V1::Resources::Asset === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end - op = Google::Ads::GoogleAds::V1::Services::CampaignExtensionSettingOperation.new + op = Google::Ads::GoogleAds::V1::Services::AssetOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end - # A convenience method for creating an CampaignFeedOperation instance with - # its "update" field prepopulated with an CampaignFeed instance, and + # A convenience method for creating an CampaignBidModifierOperation instance with + # its "update" field prepopulated with an CampaignBidModifier instance, and # its "update_mask" field populated as needed to send the updates to the API. # - # @overload #campaign_feed(path, &blk) + # @overload #campaign_bid_modifier(path, &blk) # @param path [String] a resource path for the resource to update - # @yield [Google::Ads::GoogleAds::V1::Resources::CampaignFeed] a new instance of the resource for this update operation, on + # @yield [Google::Ads::GoogleAds::V1::Resources::CampaignBidModifier] a new instance of the resource for this update operation, on # which fields can be set to update # - # @overload #campaign_feed(resource, &blk) - # @param resource [Google::Ads::GoogleAds::V1::Resources::CampaignFeed] a resource instance to update + # @overload #campaign_bid_modifier(resource, &blk) + # @param resource [Google::Ads::GoogleAds::V1::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::V1::Services::CampaignFeedOperation] the operation instance to update the resource - def self.campaign_feed(resource_or_path, &blk) - require "google/ads/google_ads/v1/services/campaign_feed_service_pb.rb" + # @return [Google::Ads::GoogleAds::V1::Services::CampaignBidModifierOperation] the operation instance to update the resource + def self.campaign_bid_modifier(resource_or_path, &blk) + require "google/ads/google_ads/v1/services/campaign_bid_modifier_service_pb.rb" res = case resource_or_path - when Google::Ads::GoogleAds::V1::Resources::CampaignFeed + when Google::Ads::GoogleAds::V1::Resources::CampaignBidModifier resource_or_path # got a resource path when String - obj = Google::Ads::GoogleAds::V1::Resources::CampaignFeed.new + obj = Google::Ads::GoogleAds::V1::Resources::CampaignBidModifier.new obj.resource_name = resource_or_path obj else - unless Google::Ads::GoogleAds::V1::Resources::CampaignFeed === res + unless Google::Ads::GoogleAds::V1::Resources::CampaignBidModifier === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end - op = Google::Ads::GoogleAds::V1::Services::CampaignFeedOperation.new + op = Google::Ads::GoogleAds::V1::Services::CampaignBidModifierOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end - # A convenience method for creating an CampaignLabelOperation instance with - # its "update" field prepopulated with an CampaignLabel instance, and + # A convenience method for creating an CampaignCriterionOperation instance with + # its "update" field prepopulated with an CampaignCriterion instance, and # its "update_mask" field populated as needed to send the updates to the API. # - # @overload #campaign_label(path, &blk) + # @overload #campaign_criterion(path, &blk) # @param path [String] a resource path for the resource to update - # @yield [Google::Ads::GoogleAds::V1::Resources::CampaignLabel] a new instance of the resource for this update operation, on + # @yield [Google::Ads::GoogleAds::V1::Resources::CampaignCriterion] a new instance of the resource for this update operation, on # which fields can be set to update # - # @overload #campaign_label(resource, &blk) - # @param resource [Google::Ads::GoogleAds::V1::Resources::CampaignLabel] a resource instance to update + # @overload #campaign_criterion(resource, &blk) + # @param resource [Google::Ads::GoogleAds::V1::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::V1::Services::CampaignLabelOperation] the operation instance to update the resource - def self.campaign_label(resource_or_path, &blk) - require "google/ads/google_ads/v1/services/campaign_label_service_pb.rb" + # @return [Google::Ads::GoogleAds::V1::Services::CampaignCriterionOperation] the operation instance to update the resource + def self.campaign_criterion(resource_or_path, &blk) + require "google/ads/google_ads/v1/services/campaign_criterion_service_pb.rb" res = case resource_or_path - when Google::Ads::GoogleAds::V1::Resources::CampaignLabel + when Google::Ads::GoogleAds::V1::Resources::CampaignCriterion resource_or_path # got a resource path when String - obj = Google::Ads::GoogleAds::V1::Resources::CampaignLabel.new + obj = Google::Ads::GoogleAds::V1::Resources::CampaignCriterion.new obj.resource_name = resource_or_path obj else - unless Google::Ads::GoogleAds::V1::Resources::CampaignLabel === res + unless Google::Ads::GoogleAds::V1::Resources::CampaignCriterion === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end - op = Google::Ads::GoogleAds::V1::Services::CampaignLabelOperation.new + op = Google::Ads::GoogleAds::V1::Services::CampaignCriterionOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end + # A convenience method for creating an CampaignExtensionSettingOperation instance with + # its "update" field prepopulated with an CampaignExtensionSetting instance, and + # its "update_mask" field populated as needed to send the updates to the API. + # + # @overload #campaign_extension_setting(path, &blk) + # @param path [String] a resource path for the resource to update + # @yield [Google::Ads::GoogleAds::V1::Resources::CampaignExtensionSetting] a new instance of the resource for this update operation, on + # which fields can be set to update + # + # @overload #campaign_extension_setting(resource, &blk) + # @param resource [Google::Ads::GoogleAds::V1::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::V1::Services::CampaignExtensionSettingOperation] the operation instance to update the resource + def self.campaign_extension_setting(resource_or_path, &blk) + require "google/ads/google_ads/v1/services/campaign_extension_setting_service_pb.rb" + res = case resource_or_path + when Google::Ads::GoogleAds::V1::Resources::CampaignExtensionSetting + resource_or_path + # got a resource path + when String + obj = Google::Ads::GoogleAds::V1::Resources::CampaignExtensionSetting.new + obj.resource_name = resource_or_path + obj + else + unless Google::Ads::GoogleAds::V1::Resources::CampaignExtensionSetting === res + raise ArgumentError.new( + "Called #{__method__} with instance of wrong type:"\ + " #{res.class} want #{operation.update_class}"\ + " or String representing resource name" + ) + end + end + + op = Google::Ads::GoogleAds::V1::Services::CampaignExtensionSettingOperation.new + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update"] = res + op + end + # A convenience method for creating an CampaignOperation instance with # its "update" field prepopulated with an Campaign instance, and # its "update_mask" field populated as needed to send the updates to the API. # # @overload #campaign(path, &blk) @@ -2297,49 +2492,10 @@ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end - # A convenience method for creating an ConversionActionOperation instance with - # its "update" field prepopulated with an ConversionAction instance, and - # its "update_mask" field populated as needed to send the updates to the API. - # - # @overload #conversion_action(path, &blk) - # @param path [String] a resource path for the resource to update - # @yield [Google::Ads::GoogleAds::V1::Resources::ConversionAction] a new instance of the resource for this update operation, on - # which fields can be set to update - # - # @overload #conversion_action(resource, &blk) - # @param resource [Google::Ads::GoogleAds::V1::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::V1::Services::ConversionActionOperation] the operation instance to update the resource - def self.conversion_action(resource_or_path, &blk) - require "google/ads/google_ads/v1/services/conversion_action_service_pb.rb" - res = case resource_or_path - when Google::Ads::GoogleAds::V1::Resources::ConversionAction - resource_or_path - # got a resource path - when String - obj = Google::Ads::GoogleAds::V1::Resources::ConversionAction.new - obj.resource_name = resource_or_path - obj - else - unless Google::Ads::GoogleAds::V1::Resources::ConversionAction === res - raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ - " or String representing resource name" - ) - end - end - - op = Google::Ads::GoogleAds::V1::Services::ConversionActionOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) - op["update"] = res - op - end - # A convenience method for creating an CustomerExtensionSettingOperation instance with # its "update" field prepopulated with an CustomerExtensionSetting instance, and # its "update_mask" field populated as needed to send the updates to the API. # # @overload #customer_extension_setting(path, &blk) @@ -2531,49 +2687,10 @@ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end - # A convenience method for creating an FeedItemOperation instance with - # its "update" field prepopulated with an FeedItem instance, and - # its "update_mask" field populated as needed to send the updates to the API. - # - # @overload #feed_item(path, &blk) - # @param path [String] a resource path for the resource to update - # @yield [Google::Ads::GoogleAds::V1::Resources::FeedItem] a new instance of the resource for this update operation, on - # which fields can be set to update - # - # @overload #feed_item(resource, &blk) - # @param resource [Google::Ads::GoogleAds::V1::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::V1::Services::FeedItemOperation] the operation instance to update the resource - def self.feed_item(resource_or_path, &blk) - require "google/ads/google_ads/v1/services/feed_item_service_pb.rb" - res = case resource_or_path - when Google::Ads::GoogleAds::V1::Resources::FeedItem - resource_or_path - # got a resource path - when String - obj = Google::Ads::GoogleAds::V1::Resources::FeedItem.new - obj.resource_name = resource_or_path - obj - else - unless Google::Ads::GoogleAds::V1::Resources::FeedItem === res - raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ - " or String representing resource name" - ) - end - end - - op = Google::Ads::GoogleAds::V1::Services::FeedItemOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) - op["update"] = res - op - end - # A convenience method for creating an FeedItemTargetOperation instance with # its "update" field prepopulated with an FeedItemTarget instance, and # its "update_mask" field populated as needed to send the updates to the API. # # @overload #feed_item_target(path, &blk) @@ -2609,88 +2726,10 @@ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end - # A convenience method for creating an FeedMappingOperation instance with - # its "update" field prepopulated with an FeedMapping instance, and - # its "update_mask" field populated as needed to send the updates to the API. - # - # @overload #feed_mapping(path, &blk) - # @param path [String] a resource path for the resource to update - # @yield [Google::Ads::GoogleAds::V1::Resources::FeedMapping] a new instance of the resource for this update operation, on - # which fields can be set to update - # - # @overload #feed_mapping(resource, &blk) - # @param resource [Google::Ads::GoogleAds::V1::Resources::FeedMapping] 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::V1::Services::FeedMappingOperation] the operation instance to update the resource - def self.feed_mapping(resource_or_path, &blk) - require "google/ads/google_ads/v1/services/feed_mapping_service_pb.rb" - res = case resource_or_path - when Google::Ads::GoogleAds::V1::Resources::FeedMapping - resource_or_path - # got a resource path - when String - obj = Google::Ads::GoogleAds::V1::Resources::FeedMapping.new - obj.resource_name = resource_or_path - obj - else - unless Google::Ads::GoogleAds::V1::Resources::FeedMapping === res - raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ - " or String representing resource name" - ) - end - end - - op = Google::Ads::GoogleAds::V1::Services::FeedMappingOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) - op["update"] = res - op - end - - # A convenience method for creating an FeedOperation instance with - # its "update" field prepopulated with an Feed instance, and - # its "update_mask" field populated as needed to send the updates to the API. - # - # @overload #feed(path, &blk) - # @param path [String] a resource path for the resource to update - # @yield [Google::Ads::GoogleAds::V1::Resources::Feed] a new instance of the resource for this update operation, on - # which fields can be set to update - # - # @overload #feed(resource, &blk) - # @param resource [Google::Ads::GoogleAds::V1::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::V1::Services::FeedOperation] the operation instance to update the resource - def self.feed(resource_or_path, &blk) - require "google/ads/google_ads/v1/services/feed_service_pb.rb" - res = case resource_or_path - when Google::Ads::GoogleAds::V1::Resources::Feed - resource_or_path - # got a resource path - when String - obj = Google::Ads::GoogleAds::V1::Resources::Feed.new - obj.resource_name = resource_or_path - obj - else - unless Google::Ads::GoogleAds::V1::Resources::Feed === res - raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ - " or String representing resource name" - ) - end - end - - op = Google::Ads::GoogleAds::V1::Services::FeedOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) - op["update"] = res - op - end - # A convenience method for creating an LabelOperation instance with # its "update" field prepopulated with an Label instance, and # its "update_mask" field populated as needed to send the updates to the API. # # @overload #label(path, &blk) @@ -2765,44 +2804,44 @@ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end - # A convenience method for creating an SharedCriterionOperation instance with - # its "update" field prepopulated with an SharedCriterion instance, and + # A convenience method for creating an RemarketingActionOperation instance with + # its "update" field prepopulated with an RemarketingAction instance, and # its "update_mask" field populated as needed to send the updates to the API. # - # @overload #shared_criterion(path, &blk) + # @overload #remarketing_action(path, &blk) # @param path [String] a resource path for the resource to update - # @yield [Google::Ads::GoogleAds::V1::Resources::SharedCriterion] a new instance of the resource for this update operation, on + # @yield [Google::Ads::GoogleAds::V1::Resources::RemarketingAction] a new instance of the resource for this update operation, on # which fields can be set to update # - # @overload #shared_criterion(resource, &blk) - # @param resource [Google::Ads::GoogleAds::V1::Resources::SharedCriterion] a resource instance to update + # @overload #remarketing_action(resource, &blk) + # @param resource [Google::Ads::GoogleAds::V1::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::V1::Services::SharedCriterionOperation] the operation instance to update the resource - def self.shared_criterion(resource_or_path, &blk) - require "google/ads/google_ads/v1/services/shared_criterion_service_pb.rb" + # @return [Google::Ads::GoogleAds::V1::Services::RemarketingActionOperation] the operation instance to update the resource + def self.remarketing_action(resource_or_path, &blk) + require "google/ads/google_ads/v1/services/remarketing_action_service_pb.rb" res = case resource_or_path - when Google::Ads::GoogleAds::V1::Resources::SharedCriterion + when Google::Ads::GoogleAds::V1::Resources::RemarketingAction resource_or_path # got a resource path when String - obj = Google::Ads::GoogleAds::V1::Resources::SharedCriterion.new + obj = Google::Ads::GoogleAds::V1::Resources::RemarketingAction.new obj.resource_name = resource_or_path obj else - unless Google::Ads::GoogleAds::V1::Resources::SharedCriterion === res + unless Google::Ads::GoogleAds::V1::Resources::RemarketingAction === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end - op = Google::Ads::GoogleAds::V1::Services::SharedCriterionOperation.new + op = Google::Ads::GoogleAds::V1::Services::RemarketingActionOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end @@ -2882,83 +2921,83 @@ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end - # A convenience method for creating an KeywordPlanKeywordOperation instance with - # its "update" field prepopulated with an KeywordPlanKeyword instance, and + # A convenience method for creating an KeywordPlanCampaignOperation instance with + # its "update" field prepopulated with an KeywordPlanCampaign instance, and # its "update_mask" field populated as needed to send the updates to the API. # - # @overload #keyword_plan_keyword(path, &blk) + # @overload #keyword_plan_campaign(path, &blk) # @param path [String] a resource path for the resource to update - # @yield [Google::Ads::GoogleAds::V1::Resources::KeywordPlanKeyword] a new instance of the resource for this update operation, on + # @yield [Google::Ads::GoogleAds::V1::Resources::KeywordPlanCampaign] a new instance of the resource for this update operation, on # which fields can be set to update # - # @overload #keyword_plan_keyword(resource, &blk) - # @param resource [Google::Ads::GoogleAds::V1::Resources::KeywordPlanKeyword] a resource instance to update + # @overload #keyword_plan_campaign(resource, &blk) + # @param resource [Google::Ads::GoogleAds::V1::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::V1::Services::KeywordPlanKeywordOperation] the operation instance to update the resource - def self.keyword_plan_keyword(resource_or_path, &blk) - require "google/ads/google_ads/v1/services/keyword_plan_keyword_service_pb.rb" + # @return [Google::Ads::GoogleAds::V1::Services::KeywordPlanCampaignOperation] the operation instance to update the resource + def self.keyword_plan_campaign(resource_or_path, &blk) + require "google/ads/google_ads/v1/services/keyword_plan_campaign_service_pb.rb" res = case resource_or_path - when Google::Ads::GoogleAds::V1::Resources::KeywordPlanKeyword + when Google::Ads::GoogleAds::V1::Resources::KeywordPlanCampaign resource_or_path # got a resource path when String - obj = Google::Ads::GoogleAds::V1::Resources::KeywordPlanKeyword.new + obj = Google::Ads::GoogleAds::V1::Resources::KeywordPlanCampaign.new obj.resource_name = resource_or_path obj else - unless Google::Ads::GoogleAds::V1::Resources::KeywordPlanKeyword === res + unless Google::Ads::GoogleAds::V1::Resources::KeywordPlanCampaign === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end - op = Google::Ads::GoogleAds::V1::Services::KeywordPlanKeywordOperation.new + op = Google::Ads::GoogleAds::V1::Services::KeywordPlanCampaignOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end - # A convenience method for creating an KeywordPlanNegativeKeywordOperation instance with - # its "update" field prepopulated with an KeywordPlanNegativeKeyword instance, and + # A convenience method for creating an BillingSetupOperation instance with + # its "update" field prepopulated with an BillingSetup instance, and # its "update_mask" field populated as needed to send the updates to the API. # - # @overload #keyword_plan_negative_keyword(path, &blk) + # @overload #billing_setup(path, &blk) # @param path [String] a resource path for the resource to update - # @yield [Google::Ads::GoogleAds::V1::Resources::KeywordPlanNegativeKeyword] a new instance of the resource for this update operation, on + # @yield [Google::Ads::GoogleAds::V1::Resources::BillingSetup] a new instance of the resource for this update operation, on # which fields can be set to update # - # @overload #keyword_plan_negative_keyword(resource, &blk) - # @param resource [Google::Ads::GoogleAds::V1::Resources::KeywordPlanNegativeKeyword] a resource instance to update + # @overload #billing_setup(resource, &blk) + # @param resource [Google::Ads::GoogleAds::V1::Resources::BillingSetup] 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::V1::Services::KeywordPlanNegativeKeywordOperation] the operation instance to update the resource - def self.keyword_plan_negative_keyword(resource_or_path, &blk) - require "google/ads/google_ads/v1/services/keyword_plan_negative_keyword_service_pb.rb" + # @return [Google::Ads::GoogleAds::V1::Services::BillingSetupOperation] the operation instance to update the resource + def self.billing_setup(resource_or_path, &blk) + require "google/ads/google_ads/v1/services/billing_setup_service_pb.rb" res = case resource_or_path - when Google::Ads::GoogleAds::V1::Resources::KeywordPlanNegativeKeyword + when Google::Ads::GoogleAds::V1::Resources::BillingSetup resource_or_path # got a resource path when String - obj = Google::Ads::GoogleAds::V1::Resources::KeywordPlanNegativeKeyword.new + obj = Google::Ads::GoogleAds::V1::Resources::BillingSetup.new obj.resource_name = resource_or_path obj else - unless Google::Ads::GoogleAds::V1::Resources::KeywordPlanNegativeKeyword === res + unless Google::Ads::GoogleAds::V1::Resources::BillingSetup === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end - op = Google::Ads::GoogleAds::V1::Services::KeywordPlanNegativeKeywordOperation.new + op = Google::Ads::GoogleAds::V1::Services::BillingSetupOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end @@ -2999,165 +3038,126 @@ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end - # A convenience method for creating an AccountBudgetProposalOperation instance with - # its "update" field prepopulated with an AccountBudgetProposal instance, and + # A convenience method for creating an KeywordPlanNegativeKeywordOperation instance with + # its "update" field prepopulated with an KeywordPlanNegativeKeyword instance, and # its "update_mask" field populated as needed to send the updates to the API. # - # @overload #account_budget_proposal(path, &blk) + # @overload #keyword_plan_negative_keyword(path, &blk) # @param path [String] a resource path for the resource to update - # @yield [Google::Ads::GoogleAds::V1::Resources::AccountBudgetProposal] a new instance of the resource for this update operation, on + # @yield [Google::Ads::GoogleAds::V1::Resources::KeywordPlanNegativeKeyword] a new instance of the resource for this update operation, on # which fields can be set to update # - # @overload #account_budget_proposal(resource, &blk) - # @param resource [Google::Ads::GoogleAds::V1::Resources::AccountBudgetProposal] a resource instance to update + # @overload #keyword_plan_negative_keyword(resource, &blk) + # @param resource [Google::Ads::GoogleAds::V1::Resources::KeywordPlanNegativeKeyword] 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::V1::Services::AccountBudgetProposalOperation] the operation instance to update the resource - def self.account_budget_proposal(resource_or_path, &blk) - require "google/ads/google_ads/v1/services/account_budget_proposal_service_pb.rb" + # @return [Google::Ads::GoogleAds::V1::Services::KeywordPlanNegativeKeywordOperation] the operation instance to update the resource + def self.keyword_plan_negative_keyword(resource_or_path, &blk) + require "google/ads/google_ads/v1/services/keyword_plan_negative_keyword_service_pb.rb" res = case resource_or_path - when Google::Ads::GoogleAds::V1::Resources::AccountBudgetProposal + when Google::Ads::GoogleAds::V1::Resources::KeywordPlanNegativeKeyword resource_or_path # got a resource path when String - obj = Google::Ads::GoogleAds::V1::Resources::AccountBudgetProposal.new + obj = Google::Ads::GoogleAds::V1::Resources::KeywordPlanNegativeKeyword.new obj.resource_name = resource_or_path obj else - unless Google::Ads::GoogleAds::V1::Resources::AccountBudgetProposal === res + unless Google::Ads::GoogleAds::V1::Resources::KeywordPlanNegativeKeyword === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end - op = Google::Ads::GoogleAds::V1::Services::AccountBudgetProposalOperation.new + op = Google::Ads::GoogleAds::V1::Services::KeywordPlanNegativeKeywordOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end - # A convenience method for creating an CustomerClientLinkOperation instance with - # its "update" field prepopulated with an CustomerClientLink instance, and + # A convenience method for creating an CustomInterestOperation instance with + # its "update" field prepopulated with an CustomInterest instance, and # its "update_mask" field populated as needed to send the updates to the API. # - # @overload #customer_client_link(path, &blk) + # @overload #custom_interest(path, &blk) # @param path [String] a resource path for the resource to update - # @yield [Google::Ads::GoogleAds::V1::Resources::CustomerClientLink] a new instance of the resource for this update operation, on + # @yield [Google::Ads::GoogleAds::V1::Resources::CustomInterest] a new instance of the resource for this update operation, on # which fields can be set to update # - # @overload #customer_client_link(resource, &blk) - # @param resource [Google::Ads::GoogleAds::V1::Resources::CustomerClientLink] a resource instance to update + # @overload #custom_interest(resource, &blk) + # @param resource [Google::Ads::GoogleAds::V1::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::V1::Services::CustomerClientLinkOperation] the operation instance to update the resource - def self.customer_client_link(resource_or_path, &blk) - require "google/ads/google_ads/v1/services/customer_client_link_service_pb.rb" + # @return [Google::Ads::GoogleAds::V1::Services::CustomInterestOperation] the operation instance to update the resource + def self.custom_interest(resource_or_path, &blk) + require "google/ads/google_ads/v1/services/custom_interest_service_pb.rb" res = case resource_or_path - when Google::Ads::GoogleAds::V1::Resources::CustomerClientLink + when Google::Ads::GoogleAds::V1::Resources::CustomInterest resource_or_path # got a resource path when String - obj = Google::Ads::GoogleAds::V1::Resources::CustomerClientLink.new + obj = Google::Ads::GoogleAds::V1::Resources::CustomInterest.new obj.resource_name = resource_or_path obj else - unless Google::Ads::GoogleAds::V1::Resources::CustomerClientLink === res + unless Google::Ads::GoogleAds::V1::Resources::CustomInterest === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end - op = Google::Ads::GoogleAds::V1::Services::CustomerClientLinkOperation.new + op = Google::Ads::GoogleAds::V1::Services::CustomInterestOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end - # A convenience method for creating an BillingSetupOperation instance with - # its "update" field prepopulated with an BillingSetup instance, and + # A convenience method for creating an CustomerClientLinkOperation instance with + # its "update" field prepopulated with an CustomerClientLink instance, and # its "update_mask" field populated as needed to send the updates to the API. # - # @overload #billing_setup(path, &blk) + # @overload #customer_client_link(path, &blk) # @param path [String] a resource path for the resource to update - # @yield [Google::Ads::GoogleAds::V1::Resources::BillingSetup] a new instance of the resource for this update operation, on + # @yield [Google::Ads::GoogleAds::V1::Resources::CustomerClientLink] a new instance of the resource for this update operation, on # which fields can be set to update # - # @overload #billing_setup(resource, &blk) - # @param resource [Google::Ads::GoogleAds::V1::Resources::BillingSetup] a resource instance to update + # @overload #customer_client_link(resource, &blk) + # @param resource [Google::Ads::GoogleAds::V1::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::V1::Services::BillingSetupOperation] the operation instance to update the resource - def self.billing_setup(resource_or_path, &blk) - require "google/ads/google_ads/v1/services/billing_setup_service_pb.rb" + # @return [Google::Ads::GoogleAds::V1::Services::CustomerClientLinkOperation] the operation instance to update the resource + def self.customer_client_link(resource_or_path, &blk) + require "google/ads/google_ads/v1/services/customer_client_link_service_pb.rb" res = case resource_or_path - when Google::Ads::GoogleAds::V1::Resources::BillingSetup + when Google::Ads::GoogleAds::V1::Resources::CustomerClientLink resource_or_path # got a resource path when String - obj = Google::Ads::GoogleAds::V1::Resources::BillingSetup.new + obj = Google::Ads::GoogleAds::V1::Resources::CustomerClientLink.new obj.resource_name = resource_or_path obj else - unless Google::Ads::GoogleAds::V1::Resources::BillingSetup === res + unless Google::Ads::GoogleAds::V1::Resources::CustomerClientLink === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end - op = Google::Ads::GoogleAds::V1::Services::BillingSetupOperation.new + op = Google::Ads::GoogleAds::V1::Services::CustomerClientLinkOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end - - # A convenience method for creating an KeywordPlanAdGroupOperation instance with - # its "update" field prepopulated with an KeywordPlanAdGroup instance, and - # its "update_mask" field populated as needed to send the updates to the API. - # - # @overload #keyword_plan_ad_group(path, &blk) - # @param path [String] a resource path for the resource to update - # @yield [Google::Ads::GoogleAds::V1::Resources::KeywordPlanAdGroup] a new instance of the resource for this update operation, on - # which fields can be set to update - # - # @overload #keyword_plan_ad_group(resource, &blk) - # @param resource [Google::Ads::GoogleAds::V1::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::V1::Services::KeywordPlanAdGroupOperation] the operation instance to update the resource - def self.keyword_plan_ad_group(resource_or_path, &blk) - require "google/ads/google_ads/v1/services/keyword_plan_ad_group_service_pb.rb" - res = case resource_or_path - when Google::Ads::GoogleAds::V1::Resources::KeywordPlanAdGroup - resource_or_path - # got a resource path - when String - obj = Google::Ads::GoogleAds::V1::Resources::KeywordPlanAdGroup.new - obj.resource_name = resource_or_path - obj - else - unless Google::Ads::GoogleAds::V1::Resources::KeywordPlanAdGroup === res - raise ArgumentError.new( - "Called #{__method__} with instance of wrong type:"\ - " #{res.class} want #{operation.update_class}"\ - " or String representing resource name" - ) - end - end - - op = Google::Ads::GoogleAds::V1::Services::KeywordPlanAdGroupOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) - op["update"] = res - op - end end module RemoveResource # A convenience method for creationg an FeedAttributeOperation instance with # its "remove" field preopulated with a resource path corresponding to the resource to be removed. @@ -3168,65 +3168,109 @@ op = Google::Ads::GoogleAds::V1::Resources::FeedAttributeOperation.new op["remove"] = path op end - # A convenience method for creationg an CustomInterestOperation instance with + # A convenience method for creationg an KeywordPlanKeywordOperation instance with # its "remove" field preopulated with a resource path corresponding to the resource to be removed. # # @param path [String] the resource name of the resource to delete. - def self.custom_interest(path) - require "google/ads/google_ads/v1/services/custom_interest_service_pb.rb" - op = Google::Ads::GoogleAds::V1::Services::CustomInterestOperation.new + def self.keyword_plan_keyword(path) + require "google/ads/google_ads/v1/services/keyword_plan_keyword_service_pb.rb" + op = Google::Ads::GoogleAds::V1::Services::KeywordPlanKeywordOperation.new op["remove"] = path op end - # A convenience method for creationg an RemarketingActionOperation instance with + # A convenience method for creationg an FeedMappingOperation instance with # its "remove" field preopulated with a resource path corresponding to the resource to be removed. # # @param path [String] the resource name of the resource to delete. - def self.remarketing_action(path) - require "google/ads/google_ads/v1/services/remarketing_action_service_pb.rb" - op = Google::Ads::GoogleAds::V1::Services::RemarketingActionOperation.new + def self.feed_mapping(path) + require "google/ads/google_ads/v1/services/feed_mapping_service_pb.rb" + op = Google::Ads::GoogleAds::V1::Services::FeedMappingOperation.new op["remove"] = path op end - # A convenience method for creationg an KeywordPlanCampaignOperation instance with + # A convenience method for creationg an FeedOperation instance with # its "remove" field preopulated with a resource path corresponding to the resource to be removed. # # @param path [String] the resource name of the resource to delete. - def self.keyword_plan_campaign(path) - require "google/ads/google_ads/v1/services/keyword_plan_campaign_service_pb.rb" - op = Google::Ads::GoogleAds::V1::Services::KeywordPlanCampaignOperation.new + def self.feed(path) + require "google/ads/google_ads/v1/services/feed_service_pb.rb" + op = Google::Ads::GoogleAds::V1::Services::FeedOperation.new op["remove"] = path op end - # A convenience method for creationg an AdGroupAdLabelOperation instance with + # A convenience method for creationg an AdGroupCriterionLabelOperation instance with # its "remove" field preopulated with a resource path corresponding to the resource to be removed. # # @param path [String] the resource name of the resource to delete. - def self.ad_group_ad_label(path) - require "google/ads/google_ads/v1/services/ad_group_ad_label_service_pb.rb" - op = Google::Ads::GoogleAds::V1::Services::AdGroupAdLabelOperation.new + def self.ad_group_criterion_label(path) + require "google/ads/google_ads/v1/services/ad_group_criterion_label_service_pb.rb" + op = Google::Ads::GoogleAds::V1::Services::AdGroupCriterionLabelOperation.new op["remove"] = path op end - # A convenience method for creationg an AdGroupAdOperation instance with + # A convenience method for creationg an ConversionActionOperation instance with # its "remove" field preopulated with a resource path corresponding to the resource to be removed. # # @param path [String] the resource name of the resource to delete. - def self.ad_group_ad(path) - require "google/ads/google_ads/v1/services/ad_group_ad_service_pb.rb" - op = Google::Ads::GoogleAds::V1::Services::AdGroupAdOperation.new + def self.conversion_action(path) + require "google/ads/google_ads/v1/services/conversion_action_service_pb.rb" + op = Google::Ads::GoogleAds::V1::Services::ConversionActionOperation.new op["remove"] = path op end + # A convenience method for creationg an BiddingStrategyOperation instance with + # its "remove" field preopulated with a resource path corresponding to the resource to be removed. + # + # @param path [String] the resource name of the resource to delete. + def self.bidding_strategy(path) + require "google/ads/google_ads/v1/services/bidding_strategy_service_pb.rb" + op = Google::Ads::GoogleAds::V1::Services::BiddingStrategyOperation.new + op["remove"] = path + op + end + + # A convenience method for creationg an AccountBudgetProposalOperation instance with + # its "remove" field preopulated with a resource path corresponding to the resource to be removed. + # + # @param path [String] the resource name of the resource to delete. + def self.account_budget_proposal(path) + require "google/ads/google_ads/v1/services/account_budget_proposal_service_pb.rb" + op = Google::Ads::GoogleAds::V1::Services::AccountBudgetProposalOperation.new + op["remove"] = path + op + end + + # A convenience method for creationg an FeedItemOperation instance with + # its "remove" field preopulated with a resource path corresponding to the resource to be removed. + # + # @param path [String] the resource name of the resource to delete. + def self.feed_item(path) + require "google/ads/google_ads/v1/services/feed_item_service_pb.rb" + op = Google::Ads::GoogleAds::V1::Services::FeedItemOperation.new + op["remove"] = path + op + end + + # A convenience method for creationg an CampaignBudgetOperation instance with + # its "remove" field preopulated with a resource path corresponding to the resource to be removed. + # + # @param path [String] the resource name of the resource to delete. + def self.campaign_budget(path) + require "google/ads/google_ads/v1/services/campaign_budget_service_pb.rb" + op = Google::Ads::GoogleAds::V1::Services::CampaignBudgetOperation.new + op["remove"] = path + op + end + # A convenience method for creationg an AdGroupBidModifierOperation instance with # its "remove" field preopulated with a resource path corresponding to the resource to be removed. # # @param path [String] the resource name of the resource to delete. def self.ad_group_bid_modifier(path) @@ -3234,21 +3278,76 @@ op = Google::Ads::GoogleAds::V1::Services::AdGroupBidModifierOperation.new op["remove"] = path op end - # A convenience method for creationg an AdGroupCriterionLabelOperation instance with + # A convenience method for creationg an CustomerOperation instance with # its "remove" field preopulated with a resource path corresponding to the resource to be removed. # # @param path [String] the resource name of the resource to delete. - def self.ad_group_criterion_label(path) - require "google/ads/google_ads/v1/services/ad_group_criterion_label_service_pb.rb" - op = Google::Ads::GoogleAds::V1::Services::AdGroupCriterionLabelOperation.new + def self.customer(path) + require "google/ads/google_ads/v1/services/customer_service_pb.rb" + op = Google::Ads::GoogleAds::V1::Services::CustomerOperation.new op["remove"] = path op end + # A convenience method for creationg an CampaignLabelOperation instance with + # its "remove" field preopulated with a resource path corresponding to the resource to be removed. + # + # @param path [String] the resource name of the resource to delete. + def self.campaign_label(path) + require "google/ads/google_ads/v1/services/campaign_label_service_pb.rb" + op = Google::Ads::GoogleAds::V1::Services::CampaignLabelOperation.new + op["remove"] = path + op + end + + # A convenience method for creationg an SharedCriterionOperation instance with + # its "remove" field preopulated with a resource path corresponding to the resource to be removed. + # + # @param path [String] the resource name of the resource to delete. + def self.shared_criterion(path) + require "google/ads/google_ads/v1/services/shared_criterion_service_pb.rb" + op = Google::Ads::GoogleAds::V1::Services::SharedCriterionOperation.new + op["remove"] = path + op + end + + # A convenience method for creationg an KeywordPlanAdGroupOperation instance with + # its "remove" field preopulated with a resource path corresponding to the resource to be removed. + # + # @param path [String] the resource name of the resource to delete. + def self.keyword_plan_ad_group(path) + require "google/ads/google_ads/v1/services/keyword_plan_ad_group_service_pb.rb" + op = Google::Ads::GoogleAds::V1::Services::KeywordPlanAdGroupOperation.new + op["remove"] = path + op + end + + # A convenience method for creationg an CampaignDraftOperation instance with + # its "remove" field preopulated with a resource path corresponding to the resource to be removed. + # + # @param path [String] the resource name of the resource to delete. + def self.campaign_draft(path) + require "google/ads/google_ads/v1/services/campaign_draft_service_pb.rb" + op = Google::Ads::GoogleAds::V1::Services::CampaignDraftOperation.new + op["remove"] = path + op + end + + # A convenience method for creationg an CampaignFeedOperation instance with + # its "remove" field preopulated with a resource path corresponding to the resource to be removed. + # + # @param path [String] the resource name of the resource to delete. + def self.campaign_feed(path) + require "google/ads/google_ads/v1/services/campaign_feed_service_pb.rb" + op = Google::Ads::GoogleAds::V1::Services::CampaignFeedOperation.new + op["remove"] = path + op + end + # A convenience method for creationg an AdGroupCriterionOperation instance with # its "remove" field preopulated with a resource path corresponding to the resource to be removed. # # @param path [String] the resource name of the resource to delete. def self.ad_group_criterion(path) @@ -3256,10 +3355,32 @@ op = Google::Ads::GoogleAds::V1::Services::AdGroupCriterionOperation.new op["remove"] = path op end + # A convenience method for creationg an AdGroupAdLabelOperation instance with + # its "remove" field preopulated with a resource path corresponding to the resource to be removed. + # + # @param path [String] the resource name of the resource to delete. + def self.ad_group_ad_label(path) + require "google/ads/google_ads/v1/services/ad_group_ad_label_service_pb.rb" + op = Google::Ads::GoogleAds::V1::Services::AdGroupAdLabelOperation.new + op["remove"] = path + op + end + + # A convenience method for creationg an AdGroupAdOperation instance with + # its "remove" field preopulated with a resource path corresponding to the resource to be removed. + # + # @param path [String] the resource name of the resource to delete. + def self.ad_group_ad(path) + require "google/ads/google_ads/v1/services/ad_group_ad_service_pb.rb" + op = Google::Ads::GoogleAds::V1::Services::AdGroupAdOperation.new + op["remove"] = path + op + end + # A convenience method for creationg an AdGroupExtensionSettingOperation instance with # its "remove" field preopulated with a resource path corresponding to the resource to be removed. # # @param path [String] the resource name of the resource to delete. def self.ad_group_extension_setting(path) @@ -3322,21 +3443,10 @@ op = Google::Ads::GoogleAds::V1::Services::AssetOperation.new op["remove"] = path op end - # A convenience method for creationg an BiddingStrategyOperation instance with - # its "remove" field preopulated with a resource path corresponding to the resource to be removed. - # - # @param path [String] the resource name of the resource to delete. - def self.bidding_strategy(path) - require "google/ads/google_ads/v1/services/bidding_strategy_service_pb.rb" - op = Google::Ads::GoogleAds::V1::Services::BiddingStrategyOperation.new - op["remove"] = path - op - end - # A convenience method for creationg an CampaignBidModifierOperation instance with # its "remove" field preopulated with a resource path corresponding to the resource to be removed. # # @param path [String] the resource name of the resource to delete. def self.campaign_bid_modifier(path) @@ -3344,21 +3454,10 @@ op = Google::Ads::GoogleAds::V1::Services::CampaignBidModifierOperation.new op["remove"] = path op end - # A convenience method for creationg an CampaignBudgetOperation instance with - # its "remove" field preopulated with a resource path corresponding to the resource to be removed. - # - # @param path [String] the resource name of the resource to delete. - def self.campaign_budget(path) - require "google/ads/google_ads/v1/services/campaign_budget_service_pb.rb" - op = Google::Ads::GoogleAds::V1::Services::CampaignBudgetOperation.new - op["remove"] = path - op - end - # A convenience method for creationg an CampaignCriterionOperation instance with # its "remove" field preopulated with a resource path corresponding to the resource to be removed. # # @param path [String] the resource name of the resource to delete. def self.campaign_criterion(path) @@ -3366,21 +3465,10 @@ op = Google::Ads::GoogleAds::V1::Services::CampaignCriterionOperation.new op["remove"] = path op end - # A convenience method for creationg an CampaignDraftOperation instance with - # its "remove" field preopulated with a resource path corresponding to the resource to be removed. - # - # @param path [String] the resource name of the resource to delete. - def self.campaign_draft(path) - require "google/ads/google_ads/v1/services/campaign_draft_service_pb.rb" - op = Google::Ads::GoogleAds::V1::Services::CampaignDraftOperation.new - op["remove"] = path - op - end - # A convenience method for creationg an CampaignExperimentOperation instance with # its "remove" field preopulated with a resource path corresponding to the resource to be removed. # # @param path [String] the resource name of the resource to delete. def self.campaign_experiment(path) @@ -3399,32 +3487,10 @@ op = Google::Ads::GoogleAds::V1::Services::CampaignExtensionSettingOperation.new op["remove"] = path op end - # A convenience method for creationg an CampaignFeedOperation instance with - # its "remove" field preopulated with a resource path corresponding to the resource to be removed. - # - # @param path [String] the resource name of the resource to delete. - def self.campaign_feed(path) - require "google/ads/google_ads/v1/services/campaign_feed_service_pb.rb" - op = Google::Ads::GoogleAds::V1::Services::CampaignFeedOperation.new - op["remove"] = path - op - end - - # A convenience method for creationg an CampaignLabelOperation instance with - # its "remove" field preopulated with a resource path corresponding to the resource to be removed. - # - # @param path [String] the resource name of the resource to delete. - def self.campaign_label(path) - require "google/ads/google_ads/v1/services/campaign_label_service_pb.rb" - op = Google::Ads::GoogleAds::V1::Services::CampaignLabelOperation.new - op["remove"] = path - op - end - # A convenience method for creationg an CampaignOperation instance with # its "remove" field preopulated with a resource path corresponding to the resource to be removed. # # @param path [String] the resource name of the resource to delete. def self.campaign(path) @@ -3443,21 +3509,10 @@ op = Google::Ads::GoogleAds::V1::Services::CampaignSharedSetOperation.new op["remove"] = path op end - # A convenience method for creationg an ConversionActionOperation instance with - # its "remove" field preopulated with a resource path corresponding to the resource to be removed. - # - # @param path [String] the resource name of the resource to delete. - def self.conversion_action(path) - require "google/ads/google_ads/v1/services/conversion_action_service_pb.rb" - op = Google::Ads::GoogleAds::V1::Services::ConversionActionOperation.new - op["remove"] = path - op - end - # A convenience method for creationg an CustomerExtensionSettingOperation instance with # its "remove" field preopulated with a resource path corresponding to the resource to be removed. # # @param path [String] the resource name of the resource to delete. def self.customer_extension_setting(path) @@ -3498,21 +3553,10 @@ op = Google::Ads::GoogleAds::V1::Services::CustomerNegativeCriterionOperation.new op["remove"] = path op end - # A convenience method for creationg an CustomerOperation instance with - # its "remove" field preopulated with a resource path corresponding to the resource to be removed. - # - # @param path [String] the resource name of the resource to delete. - def self.customer(path) - require "google/ads/google_ads/v1/services/customer_service_pb.rb" - op = Google::Ads::GoogleAds::V1::Services::CustomerOperation.new - op["remove"] = path - op - end - # A convenience method for creationg an ExtensionFeedItemOperation instance with # its "remove" field preopulated with a resource path corresponding to the resource to be removed. # # @param path [String] the resource name of the resource to delete. def self.extension_feed_item(path) @@ -3520,21 +3564,10 @@ op = Google::Ads::GoogleAds::V1::Services::ExtensionFeedItemOperation.new op["remove"] = path op end - # A convenience method for creationg an FeedItemOperation instance with - # its "remove" field preopulated with a resource path corresponding to the resource to be removed. - # - # @param path [String] the resource name of the resource to delete. - def self.feed_item(path) - require "google/ads/google_ads/v1/services/feed_item_service_pb.rb" - op = Google::Ads::GoogleAds::V1::Services::FeedItemOperation.new - op["remove"] = path - op - end - # A convenience method for creationg an FeedItemTargetOperation instance with # its "remove" field preopulated with a resource path corresponding to the resource to be removed. # # @param path [String] the resource name of the resource to delete. def self.feed_item_target(path) @@ -3542,32 +3575,10 @@ op = Google::Ads::GoogleAds::V1::Services::FeedItemTargetOperation.new op["remove"] = path op end - # A convenience method for creationg an FeedMappingOperation instance with - # its "remove" field preopulated with a resource path corresponding to the resource to be removed. - # - # @param path [String] the resource name of the resource to delete. - def self.feed_mapping(path) - require "google/ads/google_ads/v1/services/feed_mapping_service_pb.rb" - op = Google::Ads::GoogleAds::V1::Services::FeedMappingOperation.new - op["remove"] = path - op - end - - # A convenience method for creationg an FeedOperation instance with - # its "remove" field preopulated with a resource path corresponding to the resource to be removed. - # - # @param path [String] the resource name of the resource to delete. - def self.feed(path) - require "google/ads/google_ads/v1/services/feed_service_pb.rb" - op = Google::Ads::GoogleAds::V1::Services::FeedOperation.new - op["remove"] = path - op - end - # A convenience method for creationg an LabelOperation instance with # its "remove" field preopulated with a resource path corresponding to the resource to be removed. # # @param path [String] the resource name of the resource to delete. def self.label(path) @@ -3586,17 +3597,17 @@ op = Google::Ads::GoogleAds::V1::Services::MediaFileOperation.new op["remove"] = path op end - # A convenience method for creationg an SharedCriterionOperation instance with + # A convenience method for creationg an RemarketingActionOperation instance with # its "remove" field preopulated with a resource path corresponding to the resource to be removed. # # @param path [String] the resource name of the resource to delete. - def self.shared_criterion(path) - require "google/ads/google_ads/v1/services/shared_criterion_service_pb.rb" - op = Google::Ads::GoogleAds::V1::Services::SharedCriterionOperation.new + def self.remarketing_action(path) + require "google/ads/google_ads/v1/services/remarketing_action_service_pb.rb" + op = Google::Ads::GoogleAds::V1::Services::RemarketingActionOperation.new op["remove"] = path op end # A convenience method for creationg an SharedSetOperation instance with @@ -3630,21 +3641,10 @@ op = Google::Ads::GoogleAds::V1::Services::MutateOperation.new op["remove"] = path op end - # A convenience method for creationg an KeywordPlanKeywordOperation instance with - # its "remove" field preopulated with a resource path corresponding to the resource to be removed. - # - # @param path [String] the resource name of the resource to delete. - def self.keyword_plan_keyword(path) - require "google/ads/google_ads/v1/services/keyword_plan_keyword_service_pb.rb" - op = Google::Ads::GoogleAds::V1::Services::KeywordPlanKeywordOperation.new - op["remove"] = path - op - end - # A convenience method for creationg an ApplyRecommendationOperation instance with # its "remove" field preopulated with a resource path corresponding to the resource to be removed. # # @param path [String] the resource name of the resource to delete. def self.apply_recommendation(path) @@ -3663,28 +3663,28 @@ op = Google::Ads::GoogleAds::V1::Services::DismissRecommendationRequest::DismissRecommendationOperation.new op["remove"] = path op end - # A convenience method for creationg an KeywordPlanNegativeKeywordOperation instance with + # A convenience method for creationg an KeywordPlanCampaignOperation instance with # its "remove" field preopulated with a resource path corresponding to the resource to be removed. # # @param path [String] the resource name of the resource to delete. - def self.keyword_plan_negative_keyword(path) - require "google/ads/google_ads/v1/services/keyword_plan_negative_keyword_service_pb.rb" - op = Google::Ads::GoogleAds::V1::Services::KeywordPlanNegativeKeywordOperation.new + def self.keyword_plan_campaign(path) + require "google/ads/google_ads/v1/services/keyword_plan_campaign_service_pb.rb" + op = Google::Ads::GoogleAds::V1::Services::KeywordPlanCampaignOperation.new op["remove"] = path op end - # A convenience method for creationg an KeywordPlanOperation instance with + # A convenience method for creationg an BillingSetupOperation instance with # its "remove" field preopulated with a resource path corresponding to the resource to be removed. # # @param path [String] the resource name of the resource to delete. - def self.keyword_plan(path) - require "google/ads/google_ads/v1/services/keyword_plan_service_pb.rb" - op = Google::Ads::GoogleAds::V1::Services::KeywordPlanOperation.new + def self.billing_setup(path) + require "google/ads/google_ads/v1/services/billing_setup_service_pb.rb" + op = Google::Ads::GoogleAds::V1::Services::BillingSetupOperation.new op["remove"] = path op end # A convenience method for creationg an MerchantCenterLinkOperation instance with @@ -3696,60 +3696,60 @@ op = Google::Ads::GoogleAds::V1::Services::MerchantCenterLinkOperation.new op["remove"] = path op end - # A convenience method for creationg an CustomerManagerLinkOperation instance with + # A convenience method for creationg an KeywordPlanOperation instance with # its "remove" field preopulated with a resource path corresponding to the resource to be removed. # # @param path [String] the resource name of the resource to delete. - def self.customer_manager_link(path) - require "google/ads/google_ads/v1/services/customer_manager_link_service_pb.rb" - op = Google::Ads::GoogleAds::V1::Services::CustomerManagerLinkOperation.new + def self.keyword_plan(path) + require "google/ads/google_ads/v1/services/keyword_plan_service_pb.rb" + op = Google::Ads::GoogleAds::V1::Services::KeywordPlanOperation.new op["remove"] = path op end - # A convenience method for creationg an AccountBudgetProposalOperation instance with + # A convenience method for creationg an CustomerManagerLinkOperation instance with # its "remove" field preopulated with a resource path corresponding to the resource to be removed. # # @param path [String] the resource name of the resource to delete. - def self.account_budget_proposal(path) - require "google/ads/google_ads/v1/services/account_budget_proposal_service_pb.rb" - op = Google::Ads::GoogleAds::V1::Services::AccountBudgetProposalOperation.new + def self.customer_manager_link(path) + require "google/ads/google_ads/v1/services/customer_manager_link_service_pb.rb" + op = Google::Ads::GoogleAds::V1::Services::CustomerManagerLinkOperation.new op["remove"] = path op end - # A convenience method for creationg an CustomerClientLinkOperation instance with + # A convenience method for creationg an KeywordPlanNegativeKeywordOperation instance with # its "remove" field preopulated with a resource path corresponding to the resource to be removed. # # @param path [String] the resource name of the resource to delete. - def self.customer_client_link(path) - require "google/ads/google_ads/v1/services/customer_client_link_service_pb.rb" - op = Google::Ads::GoogleAds::V1::Services::CustomerClientLinkOperation.new + def self.keyword_plan_negative_keyword(path) + require "google/ads/google_ads/v1/services/keyword_plan_negative_keyword_service_pb.rb" + op = Google::Ads::GoogleAds::V1::Services::KeywordPlanNegativeKeywordOperation.new op["remove"] = path op end - # A convenience method for creationg an BillingSetupOperation instance with + # A convenience method for creationg an CustomInterestOperation instance with # its "remove" field preopulated with a resource path corresponding to the resource to be removed. # # @param path [String] the resource name of the resource to delete. - def self.billing_setup(path) - require "google/ads/google_ads/v1/services/billing_setup_service_pb.rb" - op = Google::Ads::GoogleAds::V1::Services::BillingSetupOperation.new + def self.custom_interest(path) + require "google/ads/google_ads/v1/services/custom_interest_service_pb.rb" + op = Google::Ads::GoogleAds::V1::Services::CustomInterestOperation.new op["remove"] = path op end - # A convenience method for creationg an KeywordPlanAdGroupOperation instance with + # A convenience method for creationg an CustomerClientLinkOperation instance with # its "remove" field preopulated with a resource path corresponding to the resource to be removed. # # @param path [String] the resource name of the resource to delete. - def self.keyword_plan_ad_group(path) - require "google/ads/google_ads/v1/services/keyword_plan_ad_group_service_pb.rb" - op = Google::Ads::GoogleAds::V1::Services::KeywordPlanAdGroupOperation.new + def self.customer_client_link(path) + require "google/ads/google_ads/v1/services/customer_client_link_service_pb.rb" + op = Google::Ads::GoogleAds::V1::Services::CustomerClientLinkOperation.new op["remove"] = path op end end end