lib/google/ads/google_ads/factories/v2/operations.rb in google-ads-googleads-5.0.0 vs lib/google/ads/google_ads/factories/v2/operations.rb in google-ads-googleads-5.1.0
- old
+ new
@@ -18,130 +18,130 @@
def self.ad_group_criterion_label
require "google/ads/google_ads/v2/services/ad_group_criterion_label_service_pb.rb"
Google::Ads::GoogleAds::V2::Services::AdGroupCriterionLabelOperation.new
end
- # Create a new CustomerManagerLinkOperation
+ # Create a new CustomInterestOperation
#
- # @return [Google::Ads::GoogleAds::V2::Services::CustomerManagerLinkOperation] the operation
- def self.customer_manager_link
- require "google/ads/google_ads/v2/services/customer_manager_link_service_pb.rb"
- Google::Ads::GoogleAds::V2::Services::CustomerManagerLinkOperation.new
+ # @return [Google::Ads::GoogleAds::V2::Services::CustomInterestOperation] the operation
+ def self.custom_interest
+ require "google/ads/google_ads/v2/services/custom_interest_service_pb.rb"
+ Google::Ads::GoogleAds::V2::Services::CustomInterestOperation.new
end
- # Create a new KeywordPlanCampaignOperation
+ # Create a new CustomerNegativeCriterionOperation
#
- # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanCampaignOperation] the operation
- def self.keyword_plan_campaign
- require "google/ads/google_ads/v2/services/keyword_plan_campaign_service_pb.rb"
- Google::Ads::GoogleAds::V2::Services::KeywordPlanCampaignOperation.new
+ # @return [Google::Ads::GoogleAds::V2::Services::CustomerNegativeCriterionOperation] the operation
+ def self.customer_negative_criterion
+ require "google/ads/google_ads/v2/services/customer_negative_criterion_service_pb.rb"
+ Google::Ads::GoogleAds::V2::Services::CustomerNegativeCriterionOperation.new
end
- # Create a new SharedSetOperation
+ # Create a new SharedCriterionOperation
#
- # @return [Google::Ads::GoogleAds::V2::Services::SharedSetOperation] the operation
- def self.shared_set
- require "google/ads/google_ads/v2/services/shared_set_service_pb.rb"
- Google::Ads::GoogleAds::V2::Services::SharedSetOperation.new
+ # @return [Google::Ads::GoogleAds::V2::Services::SharedCriterionOperation] the operation
+ def self.shared_criterion
+ require "google/ads/google_ads/v2/services/shared_criterion_service_pb.rb"
+ Google::Ads::GoogleAds::V2::Services::SharedCriterionOperation.new
end
- # Create a new FeedOperation
+ # Create a new FeedMappingOperation
#
- # @return [Google::Ads::GoogleAds::V2::Services::FeedOperation] the operation
- def self.feed
- require "google/ads/google_ads/v2/services/feed_service_pb.rb"
- Google::Ads::GoogleAds::V2::Services::FeedOperation.new
+ # @return [Google::Ads::GoogleAds::V2::Services::FeedMappingOperation] the operation
+ def self.feed_mapping
+ require "google/ads/google_ads/v2/services/feed_mapping_service_pb.rb"
+ Google::Ads::GoogleAds::V2::Services::FeedMappingOperation.new
end
- # Create a new AdGroupAdLabelOperation
+ # Create a new AdGroupOperation
#
- # @return [Google::Ads::GoogleAds::V2::Services::AdGroupAdLabelOperation] the operation
- def self.ad_group_ad_label
- require "google/ads/google_ads/v2/services/ad_group_ad_label_service_pb.rb"
- Google::Ads::GoogleAds::V2::Services::AdGroupAdLabelOperation.new
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupOperation] the operation
+ def self.ad_group
+ require "google/ads/google_ads/v2/services/ad_group_service_pb.rb"
+ Google::Ads::GoogleAds::V2::Services::AdGroupOperation.new
end
- # Create a new CustomerClientLinkOperation
+ # Create a new ExtensionFeedItemOperation
#
- # @return [Google::Ads::GoogleAds::V2::Services::CustomerClientLinkOperation] the operation
- def self.customer_client_link
- require "google/ads/google_ads/v2/services/customer_client_link_service_pb.rb"
- Google::Ads::GoogleAds::V2::Services::CustomerClientLinkOperation.new
+ # @return [Google::Ads::GoogleAds::V2::Services::ExtensionFeedItemOperation] the operation
+ def self.extension_feed_item
+ require "google/ads/google_ads/v2/services/extension_feed_item_service_pb.rb"
+ Google::Ads::GoogleAds::V2::Services::ExtensionFeedItemOperation.new
end
- # Create a new CampaignSharedSetOperation
+ # Create a new CampaignBidModifierOperation
#
- # @return [Google::Ads::GoogleAds::V2::Services::CampaignSharedSetOperation] the operation
- def self.campaign_shared_set
- require "google/ads/google_ads/v2/services/campaign_shared_set_service_pb.rb"
- Google::Ads::GoogleAds::V2::Services::CampaignSharedSetOperation.new
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignBidModifierOperation] the operation
+ def self.campaign_bid_modifier
+ require "google/ads/google_ads/v2/services/campaign_bid_modifier_service_pb.rb"
+ Google::Ads::GoogleAds::V2::Services::CampaignBidModifierOperation.new
end
- # Create a new MerchantCenterLinkOperation
+ # Create a new CampaignDraftOperation
#
- # @return [Google::Ads::GoogleAds::V2::Services::MerchantCenterLinkOperation] the operation
- def self.merchant_center_link
- require "google/ads/google_ads/v2/services/merchant_center_link_service_pb.rb"
- Google::Ads::GoogleAds::V2::Services::MerchantCenterLinkOperation.new
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignDraftOperation] the operation
+ def self.campaign_draft
+ require "google/ads/google_ads/v2/services/campaign_draft_service_pb.rb"
+ Google::Ads::GoogleAds::V2::Services::CampaignDraftOperation.new
end
- # Create a new AdGroupBidModifierOperation
+ # Create a new CustomerOperation
#
- # @return [Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation] the operation
- def self.ad_group_bid_modifier
- require "google/ads/google_ads/v2/services/ad_group_bid_modifier_service_pb.rb"
- Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation.new
+ # @return [Google::Ads::GoogleAds::V2::Services::CustomerOperation] the operation
+ def self.customer
+ require "google/ads/google_ads/v2/services/customer_service_pb.rb"
+ Google::Ads::GoogleAds::V2::Services::CustomerOperation.new
end
+ # Create a new SharedSetOperation
+ #
+ # @return [Google::Ads::GoogleAds::V2::Services::SharedSetOperation] the operation
+ def self.shared_set
+ require "google/ads/google_ads/v2/services/shared_set_service_pb.rb"
+ Google::Ads::GoogleAds::V2::Services::SharedSetOperation.new
+ end
+
# Create a new CampaignFeedOperation
#
# @return [Google::Ads::GoogleAds::V2::Services::CampaignFeedOperation] the operation
def self.campaign_feed
require "google/ads/google_ads/v2/services/campaign_feed_service_pb.rb"
Google::Ads::GoogleAds::V2::Services::CampaignFeedOperation.new
end
- # Create a new SharedCriterionOperation
+ # Create a new LabelOperation
#
- # @return [Google::Ads::GoogleAds::V2::Services::SharedCriterionOperation] the operation
- def self.shared_criterion
- require "google/ads/google_ads/v2/services/shared_criterion_service_pb.rb"
- Google::Ads::GoogleAds::V2::Services::SharedCriterionOperation.new
+ # @return [Google::Ads::GoogleAds::V2::Services::LabelOperation] the operation
+ def self.label
+ require "google/ads/google_ads/v2/services/label_service_pb.rb"
+ Google::Ads::GoogleAds::V2::Services::LabelOperation.new
end
- # Create a new RemarketingActionOperation
+ # Create a new AdGroupAdLabelOperation
#
- # @return [Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation] the operation
- def self.remarketing_action
- require "google/ads/google_ads/v2/services/remarketing_action_service_pb.rb"
- Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation.new
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupAdLabelOperation] the operation
+ def self.ad_group_ad_label
+ require "google/ads/google_ads/v2/services/ad_group_ad_label_service_pb.rb"
+ Google::Ads::GoogleAds::V2::Services::AdGroupAdLabelOperation.new
end
- # Create a new AdGroupLabelOperation
- #
- # @return [Google::Ads::GoogleAds::V2::Services::AdGroupLabelOperation] the operation
- def self.ad_group_label
- require "google/ads/google_ads/v2/services/ad_group_label_service_pb.rb"
- Google::Ads::GoogleAds::V2::Services::AdGroupLabelOperation.new
- end
-
- # Create a new CustomerLabelOperation
- #
- # @return [Google::Ads::GoogleAds::V2::Services::CustomerLabelOperation] the operation
- def self.customer_label
- require "google/ads/google_ads/v2/services/customer_label_service_pb.rb"
- Google::Ads::GoogleAds::V2::Services::CustomerLabelOperation.new
- end
-
# Create a new AdGroupAdOperation
#
# @return [Google::Ads::GoogleAds::V2::Services::AdGroupAdOperation] the operation
def self.ad_group_ad
require "google/ads/google_ads/v2/services/ad_group_ad_service_pb.rb"
Google::Ads::GoogleAds::V2::Services::AdGroupAdOperation.new
end
+ # Create a new AdGroupBidModifierOperation
+ #
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation] the operation
+ def self.ad_group_bid_modifier
+ require "google/ads/google_ads/v2/services/ad_group_bid_modifier_service_pb.rb"
+ Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation.new
+ end
+
# Create a new AdGroupCriterionOperation
#
# @return [Google::Ads::GoogleAds::V2::Services::AdGroupCriterionOperation] the operation
def self.ad_group_criterion
require "google/ads/google_ads/v2/services/ad_group_criterion_service_pb.rb"
@@ -162,16 +162,16 @@
def self.ad_group_feed
require "google/ads/google_ads/v2/services/ad_group_feed_service_pb.rb"
Google::Ads::GoogleAds::V2::Services::AdGroupFeedOperation.new
end
- # Create a new AdGroupOperation
+ # Create a new AdGroupLabelOperation
#
- # @return [Google::Ads::GoogleAds::V2::Services::AdGroupOperation] the operation
- def self.ad_group
- require "google/ads/google_ads/v2/services/ad_group_service_pb.rb"
- Google::Ads::GoogleAds::V2::Services::AdGroupOperation.new
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupLabelOperation] the operation
+ def self.ad_group_label
+ require "google/ads/google_ads/v2/services/ad_group_label_service_pb.rb"
+ Google::Ads::GoogleAds::V2::Services::AdGroupLabelOperation.new
end
# Create a new AdParameterOperation
#
# @return [Google::Ads::GoogleAds::V2::Services::AdParameterOperation] the operation
@@ -194,18 +194,10 @@
def self.bidding_strategy
require "google/ads/google_ads/v2/services/bidding_strategy_service_pb.rb"
Google::Ads::GoogleAds::V2::Services::BiddingStrategyOperation.new
end
- # Create a new CampaignBidModifierOperation
- #
- # @return [Google::Ads::GoogleAds::V2::Services::CampaignBidModifierOperation] the operation
- def self.campaign_bid_modifier
- require "google/ads/google_ads/v2/services/campaign_bid_modifier_service_pb.rb"
- Google::Ads::GoogleAds::V2::Services::CampaignBidModifierOperation.new
- end
-
# Create a new CampaignBudgetOperation
#
# @return [Google::Ads::GoogleAds::V2::Services::CampaignBudgetOperation] the operation
def self.campaign_budget
require "google/ads/google_ads/v2/services/campaign_budget_service_pb.rb"
@@ -218,18 +210,10 @@
def self.campaign_criterion
require "google/ads/google_ads/v2/services/campaign_criterion_service_pb.rb"
Google::Ads::GoogleAds::V2::Services::CampaignCriterionOperation.new
end
- # Create a new CampaignDraftOperation
- #
- # @return [Google::Ads::GoogleAds::V2::Services::CampaignDraftOperation] the operation
- def self.campaign_draft
- require "google/ads/google_ads/v2/services/campaign_draft_service_pb.rb"
- Google::Ads::GoogleAds::V2::Services::CampaignDraftOperation.new
- end
-
# Create a new CampaignExperimentOperation
#
# @return [Google::Ads::GoogleAds::V2::Services::CampaignExperimentOperation] the operation
def self.campaign_experiment
require "google/ads/google_ads/v2/services/campaign_experiment_service_pb.rb"
@@ -258,10 +242,18 @@
def self.campaign
require "google/ads/google_ads/v2/services/campaign_service_pb.rb"
Google::Ads::GoogleAds::V2::Services::CampaignOperation.new
end
+ # Create a new CampaignSharedSetOperation
+ #
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignSharedSetOperation] the operation
+ def self.campaign_shared_set
+ require "google/ads/google_ads/v2/services/campaign_shared_set_service_pb.rb"
+ Google::Ads::GoogleAds::V2::Services::CampaignSharedSetOperation.new
+ end
+
# Create a new ConversionActionOperation
#
# @return [Google::Ads::GoogleAds::V2::Services::ConversionActionOperation] the operation
def self.conversion_action
require "google/ads/google_ads/v2/services/conversion_action_service_pb.rb"
@@ -282,34 +274,18 @@
def self.customer_feed
require "google/ads/google_ads/v2/services/customer_feed_service_pb.rb"
Google::Ads::GoogleAds::V2::Services::CustomerFeedOperation.new
end
- # Create a new CustomerNegativeCriterionOperation
+ # Create a new CustomerLabelOperation
#
- # @return [Google::Ads::GoogleAds::V2::Services::CustomerNegativeCriterionOperation] the operation
- def self.customer_negative_criterion
- require "google/ads/google_ads/v2/services/customer_negative_criterion_service_pb.rb"
- Google::Ads::GoogleAds::V2::Services::CustomerNegativeCriterionOperation.new
+ # @return [Google::Ads::GoogleAds::V2::Services::CustomerLabelOperation] the operation
+ def self.customer_label
+ require "google/ads/google_ads/v2/services/customer_label_service_pb.rb"
+ Google::Ads::GoogleAds::V2::Services::CustomerLabelOperation.new
end
- # Create a new CustomerOperation
- #
- # @return [Google::Ads::GoogleAds::V2::Services::CustomerOperation] the operation
- def self.customer
- require "google/ads/google_ads/v2/services/customer_service_pb.rb"
- Google::Ads::GoogleAds::V2::Services::CustomerOperation.new
- end
-
- # Create a new ExtensionFeedItemOperation
- #
- # @return [Google::Ads::GoogleAds::V2::Services::ExtensionFeedItemOperation] the operation
- def self.extension_feed_item
- require "google/ads/google_ads/v2/services/extension_feed_item_service_pb.rb"
- Google::Ads::GoogleAds::V2::Services::ExtensionFeedItemOperation.new
- end
-
# Create a new FeedItemOperation
#
# @return [Google::Ads::GoogleAds::V2::Services::FeedItemOperation] the operation
def self.feed_item
require "google/ads/google_ads/v2/services/feed_item_service_pb.rb"
@@ -322,34 +298,34 @@
def self.feed_item_target
require "google/ads/google_ads/v2/services/feed_item_target_service_pb.rb"
Google::Ads::GoogleAds::V2::Services::FeedItemTargetOperation.new
end
- # Create a new FeedMappingOperation
+ # Create a new FeedOperation
#
- # @return [Google::Ads::GoogleAds::V2::Services::FeedMappingOperation] the operation
- def self.feed_mapping
- require "google/ads/google_ads/v2/services/feed_mapping_service_pb.rb"
- Google::Ads::GoogleAds::V2::Services::FeedMappingOperation.new
+ # @return [Google::Ads::GoogleAds::V2::Services::FeedOperation] the operation
+ def self.feed
+ require "google/ads/google_ads/v2/services/feed_service_pb.rb"
+ Google::Ads::GoogleAds::V2::Services::FeedOperation.new
end
- # Create a new LabelOperation
- #
- # @return [Google::Ads::GoogleAds::V2::Services::LabelOperation] the operation
- def self.label
- require "google/ads/google_ads/v2/services/label_service_pb.rb"
- Google::Ads::GoogleAds::V2::Services::LabelOperation.new
- end
-
# Create a new MediaFileOperation
#
# @return [Google::Ads::GoogleAds::V2::Services::MediaFileOperation] the operation
def self.media_file
require "google/ads/google_ads/v2/services/media_file_service_pb.rb"
Google::Ads::GoogleAds::V2::Services::MediaFileOperation.new
end
+ # Create a new RemarketingActionOperation
+ #
+ # @return [Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation] the operation
+ def self.remarketing_action
+ require "google/ads/google_ads/v2/services/remarketing_action_service_pb.rb"
+ Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation.new
+ end
+
# Create a new UserListOperation
#
# @return [Google::Ads::GoogleAds::V2::Services::UserListOperation] the operation
def self.user_list
require "google/ads/google_ads/v2/services/user_list_service_pb.rb"
@@ -362,66 +338,66 @@
def self.mutate
require "google/ads/google_ads/v2/services/google_ads_service_pb.rb"
Google::Ads::GoogleAds::V2::Services::MutateOperation.new
end
- # Create a new KeywordPlanKeywordOperation
+ # Create a new CustomerClientLinkOperation
#
- # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation] the operation
- def self.keyword_plan_keyword
- require "google/ads/google_ads/v2/services/keyword_plan_keyword_service_pb.rb"
- Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation.new
+ # @return [Google::Ads::GoogleAds::V2::Services::CustomerClientLinkOperation] the operation
+ def self.customer_client_link
+ require "google/ads/google_ads/v2/services/customer_client_link_service_pb.rb"
+ Google::Ads::GoogleAds::V2::Services::CustomerClientLinkOperation.new
end
+ # Create a new AdOperation
+ #
+ # @return [Google::Ads::GoogleAds::V2::Services::AdOperation] the operation
+ def self.ad
+ require "google/ads/google_ads/v2/services/ad_service_pb.rb"
+ Google::Ads::GoogleAds::V2::Services::AdOperation.new
+ end
+
# Create a new KeywordPlanAdGroupOperation
#
# @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanAdGroupOperation] the operation
def self.keyword_plan_ad_group
require "google/ads/google_ads/v2/services/keyword_plan_ad_group_service_pb.rb"
Google::Ads::GoogleAds::V2::Services::KeywordPlanAdGroupOperation.new
end
- # Create a new BillingSetupOperation
- #
- # @return [Google::Ads::GoogleAds::V2::Services::BillingSetupOperation] the operation
- def self.billing_setup
- require "google/ads/google_ads/v2/services/billing_setup_service_pb.rb"
- Google::Ads::GoogleAds::V2::Services::BillingSetupOperation.new
- end
-
- # Create a new CustomInterestOperation
- #
- # @return [Google::Ads::GoogleAds::V2::Services::CustomInterestOperation] the operation
- def self.custom_interest
- require "google/ads/google_ads/v2/services/custom_interest_service_pb.rb"
- Google::Ads::GoogleAds::V2::Services::CustomInterestOperation.new
- end
-
# Create a new KeywordPlanNegativeKeywordOperation
#
# @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation] the operation
def self.keyword_plan_negative_keyword
require "google/ads/google_ads/v2/services/keyword_plan_negative_keyword_service_pb.rb"
Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation.new
end
- # Create a new AdOperation
- #
- # @return [Google::Ads::GoogleAds::V2::Services::AdOperation] the operation
- def self.ad
- require "google/ads/google_ads/v2/services/ad_service_pb.rb"
- Google::Ads::GoogleAds::V2::Services::AdOperation.new
- end
-
# Create a new KeywordPlanOperation
#
# @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanOperation] the operation
def self.keyword_plan
require "google/ads/google_ads/v2/services/keyword_plan_service_pb.rb"
Google::Ads::GoogleAds::V2::Services::KeywordPlanOperation.new
end
+ # Create a new KeywordPlanKeywordOperation
+ #
+ # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation] the operation
+ def self.keyword_plan_keyword
+ require "google/ads/google_ads/v2/services/keyword_plan_keyword_service_pb.rb"
+ Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation.new
+ end
+
+ # Create a new KeywordPlanCampaignOperation
+ #
+ # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanCampaignOperation] the operation
+ def self.keyword_plan_campaign
+ require "google/ads/google_ads/v2/services/keyword_plan_campaign_service_pb.rb"
+ Google::Ads::GoogleAds::V2::Services::KeywordPlanCampaignOperation.new
+ end
+
# Create a new ApplyRecommendationOperation
#
# @return [Google::Ads::GoogleAds::V2::Services::ApplyRecommendationOperation] the operation
def self.apply_recommendation
require "google/ads/google_ads/v2/services/recommendation_service_pb.rb"
@@ -442,10 +418,34 @@
def self.account_budget_proposal
require "google/ads/google_ads/v2/services/account_budget_proposal_service_pb.rb"
Google::Ads::GoogleAds::V2::Services::AccountBudgetProposalOperation.new
end
+ # Create a new CustomerManagerLinkOperation
+ #
+ # @return [Google::Ads::GoogleAds::V2::Services::CustomerManagerLinkOperation] the operation
+ def self.customer_manager_link
+ require "google/ads/google_ads/v2/services/customer_manager_link_service_pb.rb"
+ Google::Ads::GoogleAds::V2::Services::CustomerManagerLinkOperation.new
+ end
+
+ # Create a new BillingSetupOperation
+ #
+ # @return [Google::Ads::GoogleAds::V2::Services::BillingSetupOperation] the operation
+ def self.billing_setup
+ require "google/ads/google_ads/v2/services/billing_setup_service_pb.rb"
+ Google::Ads::GoogleAds::V2::Services::BillingSetupOperation.new
+ end
+
+ # Create a new MerchantCenterLinkOperation
+ #
+ # @return [Google::Ads::GoogleAds::V2::Services::MerchantCenterLinkOperation] the operation
+ def self.merchant_center_link
+ require "google/ads/google_ads/v2/services/merchant_center_link_service_pb.rb"
+ Google::Ads::GoogleAds::V2::Services::MerchantCenterLinkOperation.new
+ end
+
# Get a reference module containing convenience methods for creating
# resources
#
# @return [Google::Ads::GoogleAds::Factories::V2::Operations::CreateResource]
def self.create_resource
@@ -492,305 +492,305 @@
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 CustomInterestOperation instance with
+ # its "create" field prepopulated with an CustomInterest instance.
#
- # @overload keyword_plan_campaign
- # creates an operation instance, yielding a newly fabricated KeywordPlanCampaign
+ # @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 keyword_plan_campaign(res)
+ # @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::V2::Resources::KeywordPlanCampaign]
+ # @param res [Google::Ads::GoogleAds::V2::Resources::CustomInterest]
# a resource instance to be used for creation in this operation.
#
- # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanCampaignOperation] instance that will create the resource
- def self.keyword_plan_campaign(res = nil, &blk)
- require "google/ads/google_ads/v2/services/keyword_plan_campaign_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::KeywordPlanCampaignOperation.new
+ # @return [Google::Ads::GoogleAds::V2::Services::CustomInterestOperation] instance that will create the resource
+ def self.custom_interest(res = nil, &blk)
+ require "google/ads/google_ads/v2/services/custom_interest_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::CustomInterestOperation.new
if !res.nil?
op["create"] = res
elsif !blk.nil?
- op["create"] = Factories::V2::Resources.keyword_plan_campaign(&blk)
+ op["create"] = Factories::V2::Resources.custom_interest(&blk)
end
op
end
- # A convenience method for creating an SharedSetOperation instance with
- # its "create" field prepopulated with an SharedSet instance.
+ # A convenience method for creating an CustomerNegativeCriterionOperation instance with
+ # its "create" field prepopulated with an CustomerNegativeCriterion instance.
#
- # @overload shared_set
- # creates an operation instance, yielding a newly fabricated SharedSet
+ # @overload customer_negative_criterion
+ # creates an operation instance, yielding a newly fabricated CustomerNegativeCriterion
# which can be used for setting attributes on the newly created resource
- # @overload shared_set(res)
+ # @overload customer_negative_criterion(res)
# creates an operation instance, with the resource to be created
# set to the passed value (res)
- # @param res [Google::Ads::GoogleAds::V2::Resources::SharedSet]
+ # @param res [Google::Ads::GoogleAds::V2::Resources::CustomerNegativeCriterion]
# a resource instance to be used for creation in this operation.
#
- # @return [Google::Ads::GoogleAds::V2::Services::SharedSetOperation] instance that will create the resource
- def self.shared_set(res = nil, &blk)
- require "google/ads/google_ads/v2/services/shared_set_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::SharedSetOperation.new
+ # @return [Google::Ads::GoogleAds::V2::Services::CustomerNegativeCriterionOperation] instance that will create the resource
+ def self.customer_negative_criterion(res = nil, &blk)
+ require "google/ads/google_ads/v2/services/customer_negative_criterion_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::CustomerNegativeCriterionOperation.new
if !res.nil?
op["create"] = res
elsif !blk.nil?
- op["create"] = Factories::V2::Resources.shared_set(&blk)
+ op["create"] = Factories::V2::Resources.customer_negative_criterion(&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 SharedCriterionOperation instance with
+ # its "create" field prepopulated with an SharedCriterion instance.
#
- # @overload feed
- # creates an operation instance, yielding a newly fabricated Feed
+ # @overload shared_criterion
+ # creates an operation instance, yielding a newly fabricated SharedCriterion
# which can be used for setting attributes on the newly created resource
- # @overload feed(res)
+ # @overload shared_criterion(res)
# creates an operation instance, with the resource to be created
# set to the passed value (res)
- # @param res [Google::Ads::GoogleAds::V2::Resources::Feed]
+ # @param res [Google::Ads::GoogleAds::V2::Resources::SharedCriterion]
# a resource instance to be used for creation in this operation.
#
- # @return [Google::Ads::GoogleAds::V2::Services::FeedOperation] instance that will create the resource
- def self.feed(res = nil, &blk)
- require "google/ads/google_ads/v2/services/feed_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::FeedOperation.new
+ # @return [Google::Ads::GoogleAds::V2::Services::SharedCriterionOperation] instance that will create the resource
+ def self.shared_criterion(res = nil, &blk)
+ require "google/ads/google_ads/v2/services/shared_criterion_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::SharedCriterionOperation.new
if !res.nil?
op["create"] = res
elsif !blk.nil?
- op["create"] = Factories::V2::Resources.feed(&blk)
+ op["create"] = Factories::V2::Resources.shared_criterion(&blk)
end
op
end
- # A convenience method for creating an AdGroupAdLabelOperation instance with
- # its "create" field prepopulated with an AdGroupAdLabel instance.
+ # A convenience method for creating an FeedMappingOperation instance with
+ # its "create" field prepopulated with an FeedMapping instance.
#
- # @overload ad_group_ad_label
- # creates an operation instance, yielding a newly fabricated AdGroupAdLabel
+ # @overload feed_mapping
+ # creates an operation instance, yielding a newly fabricated FeedMapping
# which can be used for setting attributes on the newly created resource
- # @overload ad_group_ad_label(res)
+ # @overload feed_mapping(res)
# creates an operation instance, with the resource to be created
# set to the passed value (res)
- # @param res [Google::Ads::GoogleAds::V2::Resources::AdGroupAdLabel]
+ # @param res [Google::Ads::GoogleAds::V2::Resources::FeedMapping]
# a resource instance to be used for creation in this operation.
#
- # @return [Google::Ads::GoogleAds::V2::Services::AdGroupAdLabelOperation] instance that will create the resource
- def self.ad_group_ad_label(res = nil, &blk)
- require "google/ads/google_ads/v2/services/ad_group_ad_label_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::AdGroupAdLabelOperation.new
+ # @return [Google::Ads::GoogleAds::V2::Services::FeedMappingOperation] instance that will create the resource
+ def self.feed_mapping(res = nil, &blk)
+ require "google/ads/google_ads/v2/services/feed_mapping_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::FeedMappingOperation.new
if !res.nil?
op["create"] = res
elsif !blk.nil?
- op["create"] = Factories::V2::Resources.ad_group_ad_label(&blk)
+ op["create"] = Factories::V2::Resources.feed_mapping(&blk)
end
op
end
- # A convenience method for creating an CustomerClientLinkOperation instance with
- # its "create" field prepopulated with an CustomerClientLink instance.
+ # A convenience method for creating an AdGroupOperation instance with
+ # its "create" field prepopulated with an AdGroup instance.
#
- # @overload customer_client_link
- # creates an operation instance, yielding a newly fabricated CustomerClientLink
+ # @overload ad_group
+ # creates an operation instance, yielding a newly fabricated AdGroup
# which can be used for setting attributes on the newly created resource
- # @overload customer_client_link(res)
+ # @overload ad_group(res)
# creates an operation instance, with the resource to be created
# set to the passed value (res)
- # @param res [Google::Ads::GoogleAds::V2::Resources::CustomerClientLink]
+ # @param res [Google::Ads::GoogleAds::V2::Resources::AdGroup]
# a resource instance to be used for creation in this operation.
#
- # @return [Google::Ads::GoogleAds::V2::Services::CustomerClientLinkOperation] instance that will create the resource
- def self.customer_client_link(res = nil, &blk)
- require "google/ads/google_ads/v2/services/customer_client_link_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::CustomerClientLinkOperation.new
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupOperation] instance that will create the resource
+ def self.ad_group(res = nil, &blk)
+ require "google/ads/google_ads/v2/services/ad_group_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupOperation.new
if !res.nil?
op["create"] = res
elsif !blk.nil?
- op["create"] = Factories::V2::Resources.customer_client_link(&blk)
+ op["create"] = Factories::V2::Resources.ad_group(&blk)
end
op
end
- # A convenience method for creating an CampaignSharedSetOperation instance with
- # its "create" field prepopulated with an CampaignSharedSet instance.
+ # A convenience method for creating an ExtensionFeedItemOperation instance with
+ # its "create" field prepopulated with an ExtensionFeedItem instance.
#
- # @overload campaign_shared_set
- # creates an operation instance, yielding a newly fabricated CampaignSharedSet
+ # @overload extension_feed_item
+ # creates an operation instance, yielding a newly fabricated ExtensionFeedItem
# which can be used for setting attributes on the newly created resource
- # @overload campaign_shared_set(res)
+ # @overload extension_feed_item(res)
# creates an operation instance, with the resource to be created
# set to the passed value (res)
- # @param res [Google::Ads::GoogleAds::V2::Resources::CampaignSharedSet]
+ # @param res [Google::Ads::GoogleAds::V2::Resources::ExtensionFeedItem]
# a resource instance to be used for creation in this operation.
#
- # @return [Google::Ads::GoogleAds::V2::Services::CampaignSharedSetOperation] instance that will create the resource
- def self.campaign_shared_set(res = nil, &blk)
- require "google/ads/google_ads/v2/services/campaign_shared_set_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::CampaignSharedSetOperation.new
+ # @return [Google::Ads::GoogleAds::V2::Services::ExtensionFeedItemOperation] instance that will create the resource
+ def self.extension_feed_item(res = nil, &blk)
+ require "google/ads/google_ads/v2/services/extension_feed_item_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::ExtensionFeedItemOperation.new
if !res.nil?
op["create"] = res
elsif !blk.nil?
- op["create"] = Factories::V2::Resources.campaign_shared_set(&blk)
+ op["create"] = Factories::V2::Resources.extension_feed_item(&blk)
end
op
end
- # A convenience method for creating an AdGroupBidModifierOperation instance with
- # its "create" field prepopulated with an AdGroupBidModifier instance.
+ # A convenience method for creating an CampaignBidModifierOperation instance with
+ # its "create" field prepopulated with an CampaignBidModifier instance.
#
- # @overload ad_group_bid_modifier
- # creates an operation instance, yielding a newly fabricated AdGroupBidModifier
+ # @overload campaign_bid_modifier
+ # creates an operation instance, yielding a newly fabricated CampaignBidModifier
# which can be used for setting attributes on the newly created resource
- # @overload ad_group_bid_modifier(res)
+ # @overload campaign_bid_modifier(res)
# creates an operation instance, with the resource to be created
# set to the passed value (res)
- # @param res [Google::Ads::GoogleAds::V2::Resources::AdGroupBidModifier]
+ # @param res [Google::Ads::GoogleAds::V2::Resources::CampaignBidModifier]
# a resource instance to be used for creation in this operation.
#
- # @return [Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation] instance that will create the resource
- def self.ad_group_bid_modifier(res = nil, &blk)
- require "google/ads/google_ads/v2/services/ad_group_bid_modifier_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation.new
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignBidModifierOperation] instance that will create the resource
+ def self.campaign_bid_modifier(res = nil, &blk)
+ require "google/ads/google_ads/v2/services/campaign_bid_modifier_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::CampaignBidModifierOperation.new
if !res.nil?
op["create"] = res
elsif !blk.nil?
- op["create"] = Factories::V2::Resources.ad_group_bid_modifier(&blk)
+ op["create"] = Factories::V2::Resources.campaign_bid_modifier(&blk)
end
op
end
- # A convenience method for creating an CampaignFeedOperation instance with
- # its "create" field prepopulated with an CampaignFeed instance.
+ # A convenience method for creating an CampaignDraftOperation instance with
+ # its "create" field prepopulated with an CampaignDraft instance.
#
- # @overload campaign_feed
- # creates an operation instance, yielding a newly fabricated CampaignFeed
+ # @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_feed(res)
+ # @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::V2::Resources::CampaignFeed]
+ # @param res [Google::Ads::GoogleAds::V2::Resources::CampaignDraft]
# a resource instance to be used for creation in this operation.
#
- # @return [Google::Ads::GoogleAds::V2::Services::CampaignFeedOperation] instance that will create the resource
- def self.campaign_feed(res = nil, &blk)
- require "google/ads/google_ads/v2/services/campaign_feed_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::CampaignFeedOperation.new
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignDraftOperation] instance that will create the resource
+ def self.campaign_draft(res = nil, &blk)
+ require "google/ads/google_ads/v2/services/campaign_draft_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::CampaignDraftOperation.new
if !res.nil?
op["create"] = res
elsif !blk.nil?
- op["create"] = Factories::V2::Resources.campaign_feed(&blk)
+ op["create"] = Factories::V2::Resources.campaign_draft(&blk)
end
op
end
- # A convenience method for creating an SharedCriterionOperation instance with
- # its "create" field prepopulated with an SharedCriterion instance.
+ # A convenience method for creating an SharedSetOperation instance with
+ # its "create" field prepopulated with an SharedSet instance.
#
- # @overload shared_criterion
- # creates an operation instance, yielding a newly fabricated SharedCriterion
+ # @overload shared_set
+ # creates an operation instance, yielding a newly fabricated SharedSet
# which can be used for setting attributes on the newly created resource
- # @overload shared_criterion(res)
+ # @overload shared_set(res)
# creates an operation instance, with the resource to be created
# set to the passed value (res)
- # @param res [Google::Ads::GoogleAds::V2::Resources::SharedCriterion]
+ # @param res [Google::Ads::GoogleAds::V2::Resources::SharedSet]
# a resource instance to be used for creation in this operation.
#
- # @return [Google::Ads::GoogleAds::V2::Services::SharedCriterionOperation] instance that will create the resource
- def self.shared_criterion(res = nil, &blk)
- require "google/ads/google_ads/v2/services/shared_criterion_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::SharedCriterionOperation.new
+ # @return [Google::Ads::GoogleAds::V2::Services::SharedSetOperation] instance that will create the resource
+ def self.shared_set(res = nil, &blk)
+ require "google/ads/google_ads/v2/services/shared_set_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::SharedSetOperation.new
if !res.nil?
op["create"] = res
elsif !blk.nil?
- op["create"] = Factories::V2::Resources.shared_criterion(&blk)
+ op["create"] = Factories::V2::Resources.shared_set(&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 CampaignFeedOperation instance with
+ # its "create" field prepopulated with an CampaignFeed instance.
#
- # @overload remarketing_action
- # creates an operation instance, yielding a newly fabricated RemarketingAction
+ # @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 remarketing_action(res)
+ # @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::V2::Resources::RemarketingAction]
+ # @param res [Google::Ads::GoogleAds::V2::Resources::CampaignFeed]
# a resource instance to be used for creation in this operation.
#
- # @return [Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation] instance that will create the resource
- def self.remarketing_action(res = nil, &blk)
- require "google/ads/google_ads/v2/services/remarketing_action_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation.new
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignFeedOperation] instance that will create the resource
+ def self.campaign_feed(res = nil, &blk)
+ require "google/ads/google_ads/v2/services/campaign_feed_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::CampaignFeedOperation.new
if !res.nil?
op["create"] = res
elsif !blk.nil?
- op["create"] = Factories::V2::Resources.remarketing_action(&blk)
+ op["create"] = Factories::V2::Resources.campaign_feed(&blk)
end
op
end
- # A convenience method for creating an AdGroupLabelOperation instance with
- # its "create" field prepopulated with an AdGroupLabel instance.
+ # A convenience method for creating an LabelOperation instance with
+ # its "create" field prepopulated with an Label instance.
#
- # @overload ad_group_label
- # creates an operation instance, yielding a newly fabricated AdGroupLabel
+ # @overload label
+ # creates an operation instance, yielding a newly fabricated Label
# which can be used for setting attributes on the newly created resource
- # @overload ad_group_label(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::V2::Resources::AdGroupLabel]
+ # @param res [Google::Ads::GoogleAds::V2::Resources::Label]
# a resource instance to be used for creation in this operation.
#
- # @return [Google::Ads::GoogleAds::V2::Services::AdGroupLabelOperation] instance that will create the resource
- def self.ad_group_label(res = nil, &blk)
- require "google/ads/google_ads/v2/services/ad_group_label_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::AdGroupLabelOperation.new
+ # @return [Google::Ads::GoogleAds::V2::Services::LabelOperation] instance that will create the resource
+ def self.label(res = nil, &blk)
+ require "google/ads/google_ads/v2/services/label_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::LabelOperation.new
if !res.nil?
op["create"] = res
elsif !blk.nil?
- op["create"] = Factories::V2::Resources.ad_group_label(&blk)
+ op["create"] = Factories::V2::Resources.label(&blk)
end
op
end
- # A convenience method for creating an CustomerLabelOperation instance with
- # its "create" field prepopulated with an CustomerLabel instance.
+ # A convenience method for creating an AdGroupAdLabelOperation instance with
+ # its "create" field prepopulated with an AdGroupAdLabel instance.
#
- # @overload customer_label
- # creates an operation instance, yielding a newly fabricated CustomerLabel
+ # @overload ad_group_ad_label
+ # creates an operation instance, yielding a newly fabricated AdGroupAdLabel
# which can be used for setting attributes on the newly created resource
- # @overload customer_label(res)
+ # @overload ad_group_ad_label(res)
# creates an operation instance, with the resource to be created
# set to the passed value (res)
- # @param res [Google::Ads::GoogleAds::V2::Resources::CustomerLabel]
+ # @param res [Google::Ads::GoogleAds::V2::Resources::AdGroupAdLabel]
# a resource instance to be used for creation in this operation.
#
- # @return [Google::Ads::GoogleAds::V2::Services::CustomerLabelOperation] instance that will create the resource
- def self.customer_label(res = nil, &blk)
- require "google/ads/google_ads/v2/services/customer_label_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::CustomerLabelOperation.new
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupAdLabelOperation] instance that will create the resource
+ def self.ad_group_ad_label(res = nil, &blk)
+ require "google/ads/google_ads/v2/services/ad_group_ad_label_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupAdLabelOperation.new
if !res.nil?
op["create"] = res
elsif !blk.nil?
- op["create"] = Factories::V2::Resources.customer_label(&blk)
+ op["create"] = Factories::V2::Resources.ad_group_ad_label(&blk)
end
op
end
@@ -817,10 +817,35 @@
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
+ # which can be used for setting attributes on the newly created resource
+ # @overload ad_group_bid_modifier(res)
+ # creates an operation instance, with the resource to be created
+ # set to the passed value (res)
+ # @param res [Google::Ads::GoogleAds::V2::Resources::AdGroupBidModifier]
+ # a resource instance to be used for creation in this operation.
+ #
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation] instance that will create the resource
+ def self.ad_group_bid_modifier(res = nil, &blk)
+ require "google/ads/google_ads/v2/services/ad_group_bid_modifier_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation.new
+ if !res.nil?
+ op["create"] = res
+ elsif !blk.nil?
+ op["create"] = Factories::V2::Resources.ad_group_bid_modifier(&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
@@ -892,30 +917,30 @@
end
op
end
- # A convenience method for creating an AdGroupOperation instance with
- # its "create" field prepopulated with an AdGroup instance.
+ # A convenience method for creating an AdGroupLabelOperation instance with
+ # its "create" field prepopulated with an AdGroupLabel instance.
#
- # @overload ad_group
- # creates an operation instance, yielding a newly fabricated AdGroup
+ # @overload ad_group_label
+ # creates an operation instance, yielding a newly fabricated AdGroupLabel
# which can be used for setting attributes on the newly created resource
- # @overload ad_group(res)
+ # @overload ad_group_label(res)
# creates an operation instance, with the resource to be created
# set to the passed value (res)
- # @param res [Google::Ads::GoogleAds::V2::Resources::AdGroup]
+ # @param res [Google::Ads::GoogleAds::V2::Resources::AdGroupLabel]
# a resource instance to be used for creation in this operation.
#
- # @return [Google::Ads::GoogleAds::V2::Services::AdGroupOperation] instance that will create the resource
- def self.ad_group(res = nil, &blk)
- require "google/ads/google_ads/v2/services/ad_group_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::AdGroupOperation.new
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupLabelOperation] instance that will create the resource
+ def self.ad_group_label(res = nil, &blk)
+ require "google/ads/google_ads/v2/services/ad_group_label_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupLabelOperation.new
if !res.nil?
op["create"] = res
elsif !blk.nil?
- op["create"] = Factories::V2::Resources.ad_group(&blk)
+ op["create"] = Factories::V2::Resources.ad_group_label(&blk)
end
op
end
@@ -992,35 +1017,10 @@
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
- # which can be used for setting attributes on the newly created resource
- # @overload campaign_bid_modifier(res)
- # creates an operation instance, with the resource to be created
- # set to the passed value (res)
- # @param res [Google::Ads::GoogleAds::V2::Resources::CampaignBidModifier]
- # a resource instance to be used for creation in this operation.
- #
- # @return [Google::Ads::GoogleAds::V2::Services::CampaignBidModifierOperation] instance that will create the resource
- def self.campaign_bid_modifier(res = nil, &blk)
- require "google/ads/google_ads/v2/services/campaign_bid_modifier_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::CampaignBidModifierOperation.new
- if !res.nil?
- op["create"] = res
- elsif !blk.nil?
- op["create"] = Factories::V2::Resources.campaign_bid_modifier(&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
@@ -1067,35 +1067,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::V2::Resources::CampaignDraft]
- # a resource instance to be used for creation in this operation.
- #
- # @return [Google::Ads::GoogleAds::V2::Services::CampaignDraftOperation] instance that will create the resource
- def self.campaign_draft(res = nil, &blk)
- require "google/ads/google_ads/v2/services/campaign_draft_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::CampaignDraftOperation.new
- if !res.nil?
- op["create"] = res
- elsif !blk.nil?
- op["create"] = Factories::V2::Resources.campaign_draft(&blk)
- end
-
- op
- end
-
# A convenience method for creating an CampaignExtensionSettingOperation instance with
# its "create" field prepopulated with an CampaignExtensionSetting instance.
#
# @overload campaign_extension_setting
# creates an operation instance, yielding a newly fabricated CampaignExtensionSetting
@@ -1167,10 +1142,35 @@
end
op
end
+ # A convenience method for creating an CampaignSharedSetOperation instance with
+ # its "create" field prepopulated with an CampaignSharedSet instance.
+ #
+ # @overload campaign_shared_set
+ # creates an operation instance, yielding a newly fabricated CampaignSharedSet
+ # which can be used for setting attributes on the newly created resource
+ # @overload campaign_shared_set(res)
+ # creates an operation instance, with the resource to be created
+ # set to the passed value (res)
+ # @param res [Google::Ads::GoogleAds::V2::Resources::CampaignSharedSet]
+ # a resource instance to be used for creation in this operation.
+ #
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignSharedSetOperation] instance that will create the resource
+ def self.campaign_shared_set(res = nil, &blk)
+ require "google/ads/google_ads/v2/services/campaign_shared_set_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::CampaignSharedSetOperation.new
+ if !res.nil?
+ op["create"] = res
+ elsif !blk.nil?
+ op["create"] = Factories::V2::Resources.campaign_shared_set(&blk)
+ 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
@@ -1242,60 +1242,35 @@
end
op
end
- # A convenience method for creating an CustomerNegativeCriterionOperation instance with
- # its "create" field prepopulated with an CustomerNegativeCriterion instance.
+ # A convenience method for creating an CustomerLabelOperation instance with
+ # its "create" field prepopulated with an CustomerLabel instance.
#
- # @overload customer_negative_criterion
- # creates an operation instance, yielding a newly fabricated CustomerNegativeCriterion
+ # @overload customer_label
+ # creates an operation instance, yielding a newly fabricated CustomerLabel
# which can be used for setting attributes on the newly created resource
- # @overload customer_negative_criterion(res)
+ # @overload customer_label(res)
# creates an operation instance, with the resource to be created
# set to the passed value (res)
- # @param res [Google::Ads::GoogleAds::V2::Resources::CustomerNegativeCriterion]
+ # @param res [Google::Ads::GoogleAds::V2::Resources::CustomerLabel]
# a resource instance to be used for creation in this operation.
#
- # @return [Google::Ads::GoogleAds::V2::Services::CustomerNegativeCriterionOperation] instance that will create the resource
- def self.customer_negative_criterion(res = nil, &blk)
- require "google/ads/google_ads/v2/services/customer_negative_criterion_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::CustomerNegativeCriterionOperation.new
+ # @return [Google::Ads::GoogleAds::V2::Services::CustomerLabelOperation] instance that will create the resource
+ def self.customer_label(res = nil, &blk)
+ require "google/ads/google_ads/v2/services/customer_label_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::CustomerLabelOperation.new
if !res.nil?
op["create"] = res
elsif !blk.nil?
- op["create"] = Factories::V2::Resources.customer_negative_criterion(&blk)
+ op["create"] = Factories::V2::Resources.customer_label(&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
- # which can be used for setting attributes on the newly created resource
- # @overload extension_feed_item(res)
- # creates an operation instance, with the resource to be created
- # set to the passed value (res)
- # @param res [Google::Ads::GoogleAds::V2::Resources::ExtensionFeedItem]
- # a resource instance to be used for creation in this operation.
- #
- # @return [Google::Ads::GoogleAds::V2::Services::ExtensionFeedItemOperation] instance that will create the resource
- def self.extension_feed_item(res = nil, &blk)
- require "google/ads/google_ads/v2/services/extension_feed_item_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::ExtensionFeedItemOperation.new
- if !res.nil?
- op["create"] = res
- elsif !blk.nil?
- op["create"] = Factories::V2::Resources.extension_feed_item(&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
@@ -1342,80 +1317,80 @@
end
op
end
- # A convenience method for creating an FeedMappingOperation instance with
- # its "create" field prepopulated with an FeedMapping instance.
+ # A convenience method for creating an FeedOperation instance with
+ # its "create" field prepopulated with an Feed instance.
#
- # @overload feed_mapping
- # creates an operation instance, yielding a newly fabricated FeedMapping
+ # @overload feed
+ # creates an operation instance, yielding a newly fabricated Feed
# which can be used for setting attributes on the newly created resource
- # @overload feed_mapping(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::V2::Resources::FeedMapping]
+ # @param res [Google::Ads::GoogleAds::V2::Resources::Feed]
# a resource instance to be used for creation in this operation.
#
- # @return [Google::Ads::GoogleAds::V2::Services::FeedMappingOperation] instance that will create the resource
- def self.feed_mapping(res = nil, &blk)
- require "google/ads/google_ads/v2/services/feed_mapping_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::FeedMappingOperation.new
+ # @return [Google::Ads::GoogleAds::V2::Services::FeedOperation] instance that will create the resource
+ def self.feed(res = nil, &blk)
+ require "google/ads/google_ads/v2/services/feed_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::FeedOperation.new
if !res.nil?
op["create"] = res
elsif !blk.nil?
- op["create"] = Factories::V2::Resources.feed_mapping(&blk)
+ op["create"] = Factories::V2::Resources.feed(&blk)
end
op
end
- # A convenience method for creating an LabelOperation instance with
- # its "create" field prepopulated with an Label instance.
+ # A convenience method for creating an MediaFileOperation instance with
+ # its "create" field prepopulated with an MediaFile instance.
#
- # @overload label
- # creates an operation instance, yielding a newly fabricated Label
+ # @overload media_file
+ # creates an operation instance, yielding a newly fabricated MediaFile
# which can be used for setting attributes on the newly created resource
- # @overload label(res)
+ # @overload media_file(res)
# creates an operation instance, with the resource to be created
# set to the passed value (res)
- # @param res [Google::Ads::GoogleAds::V2::Resources::Label]
+ # @param res [Google::Ads::GoogleAds::V2::Resources::MediaFile]
# a resource instance to be used for creation in this operation.
#
- # @return [Google::Ads::GoogleAds::V2::Services::LabelOperation] instance that will create the resource
- def self.label(res = nil, &blk)
- require "google/ads/google_ads/v2/services/label_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::LabelOperation.new
+ # @return [Google::Ads::GoogleAds::V2::Services::MediaFileOperation] instance that will create the resource
+ def self.media_file(res = nil, &blk)
+ require "google/ads/google_ads/v2/services/media_file_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::MediaFileOperation.new
if !res.nil?
op["create"] = res
elsif !blk.nil?
- op["create"] = Factories::V2::Resources.label(&blk)
+ op["create"] = Factories::V2::Resources.media_file(&blk)
end
op
end
- # A convenience method for creating an MediaFileOperation instance with
- # its "create" field prepopulated with an MediaFile instance.
+ # A convenience method for creating an RemarketingActionOperation instance with
+ # its "create" field prepopulated with an RemarketingAction instance.
#
- # @overload media_file
- # creates an operation instance, yielding a newly fabricated MediaFile
+ # @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 media_file(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::V2::Resources::MediaFile]
+ # @param res [Google::Ads::GoogleAds::V2::Resources::RemarketingAction]
# a resource instance to be used for creation in this operation.
#
- # @return [Google::Ads::GoogleAds::V2::Services::MediaFileOperation] instance that will create the resource
- def self.media_file(res = nil, &blk)
- require "google/ads/google_ads/v2/services/media_file_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::MediaFileOperation.new
+ # @return [Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation] instance that will create the resource
+ def self.remarketing_action(res = nil, &blk)
+ require "google/ads/google_ads/v2/services/remarketing_action_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation.new
if !res.nil?
op["create"] = res
elsif !blk.nil?
- op["create"] = Factories::V2::Resources.media_file(&blk)
+ op["create"] = Factories::V2::Resources.remarketing_action(&blk)
end
op
end
@@ -1442,30 +1417,30 @@
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 CustomerClientLinkOperation instance with
+ # its "create" field prepopulated with an CustomerClientLink instance.
#
- # @overload keyword_plan_keyword
- # creates an operation instance, yielding a newly fabricated KeywordPlanKeyword
+ # @overload customer_client_link
+ # creates an operation instance, yielding a newly fabricated CustomerClientLink
# which can be used for setting attributes on the newly created resource
- # @overload keyword_plan_keyword(res)
+ # @overload customer_client_link(res)
# creates an operation instance, with the resource to be created
# set to the passed value (res)
- # @param res [Google::Ads::GoogleAds::V2::Resources::KeywordPlanKeyword]
+ # @param res [Google::Ads::GoogleAds::V2::Resources::CustomerClientLink]
# a resource instance to be used for creation in this operation.
#
- # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation] instance that will create the resource
- def self.keyword_plan_keyword(res = nil, &blk)
- require "google/ads/google_ads/v2/services/keyword_plan_keyword_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation.new
+ # @return [Google::Ads::GoogleAds::V2::Services::CustomerClientLinkOperation] instance that will create the resource
+ def self.customer_client_link(res = nil, &blk)
+ require "google/ads/google_ads/v2/services/customer_client_link_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::CustomerClientLinkOperation.new
if !res.nil?
op["create"] = res
elsif !blk.nil?
- op["create"] = Factories::V2::Resources.keyword_plan_keyword(&blk)
+ op["create"] = Factories::V2::Resources.customer_client_link(&blk)
end
op
end
@@ -1492,105 +1467,105 @@
end
op
end
- # A convenience method for creating an BillingSetupOperation instance with
- # its "create" field prepopulated with an BillingSetup instance.
+ # A convenience method for creating an KeywordPlanNegativeKeywordOperation instance with
+ # its "create" field prepopulated with an KeywordPlanNegativeKeyword instance.
#
- # @overload billing_setup
- # creates an operation instance, yielding a newly fabricated BillingSetup
+ # @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 billing_setup(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::V2::Resources::BillingSetup]
+ # @param res [Google::Ads::GoogleAds::V2::Resources::KeywordPlanNegativeKeyword]
# a resource instance to be used for creation in this operation.
#
- # @return [Google::Ads::GoogleAds::V2::Services::BillingSetupOperation] instance that will create the resource
- def self.billing_setup(res = nil, &blk)
- require "google/ads/google_ads/v2/services/billing_setup_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::BillingSetupOperation.new
+ # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation] instance that will create the resource
+ def self.keyword_plan_negative_keyword(res = nil, &blk)
+ require "google/ads/google_ads/v2/services/keyword_plan_negative_keyword_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation.new
if !res.nil?
op["create"] = res
elsif !blk.nil?
- op["create"] = Factories::V2::Resources.billing_setup(&blk)
+ op["create"] = Factories::V2::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.
+ # A convenience method for creating an KeywordPlanOperation instance with
+ # its "create" field prepopulated with an KeywordPlan instance.
#
- # @overload custom_interest
- # creates an operation instance, yielding a newly fabricated CustomInterest
+ # @overload keyword_plan
+ # creates an operation instance, yielding a newly fabricated KeywordPlan
# which can be used for setting attributes on the newly created resource
- # @overload custom_interest(res)
+ # @overload keyword_plan(res)
# creates an operation instance, with the resource to be created
# set to the passed value (res)
- # @param res [Google::Ads::GoogleAds::V2::Resources::CustomInterest]
+ # @param res [Google::Ads::GoogleAds::V2::Resources::KeywordPlan]
# a resource instance to be used for creation in this operation.
#
- # @return [Google::Ads::GoogleAds::V2::Services::CustomInterestOperation] instance that will create the resource
- def self.custom_interest(res = nil, &blk)
- require "google/ads/google_ads/v2/services/custom_interest_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::CustomInterestOperation.new
+ # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanOperation] instance that will create the resource
+ def self.keyword_plan(res = nil, &blk)
+ require "google/ads/google_ads/v2/services/keyword_plan_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::KeywordPlanOperation.new
if !res.nil?
op["create"] = res
elsif !blk.nil?
- op["create"] = Factories::V2::Resources.custom_interest(&blk)
+ op["create"] = Factories::V2::Resources.keyword_plan(&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 KeywordPlanKeywordOperation instance with
+ # its "create" field prepopulated with an KeywordPlanKeyword instance.
#
- # @overload keyword_plan_negative_keyword
- # creates an operation instance, yielding a newly fabricated KeywordPlanNegativeKeyword
+ # @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 keyword_plan_negative_keyword(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::V2::Resources::KeywordPlanNegativeKeyword]
+ # @param res [Google::Ads::GoogleAds::V2::Resources::KeywordPlanKeyword]
# a resource instance to be used for creation in this operation.
#
- # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation] instance that will create the resource
- def self.keyword_plan_negative_keyword(res = nil, &blk)
- require "google/ads/google_ads/v2/services/keyword_plan_negative_keyword_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation.new
+ # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation] instance that will create the resource
+ def self.keyword_plan_keyword(res = nil, &blk)
+ require "google/ads/google_ads/v2/services/keyword_plan_keyword_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation.new
if !res.nil?
op["create"] = res
elsif !blk.nil?
- op["create"] = Factories::V2::Resources.keyword_plan_negative_keyword(&blk)
+ op["create"] = Factories::V2::Resources.keyword_plan_keyword(&blk)
end
op
end
- # A convenience method for creating an KeywordPlanOperation instance with
- # its "create" field prepopulated with an KeywordPlan instance.
+ # A convenience method for creating an KeywordPlanCampaignOperation instance with
+ # its "create" field prepopulated with an KeywordPlanCampaign instance.
#
- # @overload keyword_plan
- # creates an operation instance, yielding a newly fabricated KeywordPlan
+ # @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(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::V2::Resources::KeywordPlan]
+ # @param res [Google::Ads::GoogleAds::V2::Resources::KeywordPlanCampaign]
# a resource instance to be used for creation in this operation.
#
- # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanOperation] instance that will create the resource
- def self.keyword_plan(res = nil, &blk)
- require "google/ads/google_ads/v2/services/keyword_plan_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::KeywordPlanOperation.new
+ # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanCampaignOperation] instance that will create the resource
+ def self.keyword_plan_campaign(res = nil, &blk)
+ require "google/ads/google_ads/v2/services/keyword_plan_campaign_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::KeywordPlanCampaignOperation.new
if !res.nil?
op["create"] = res
elsif !blk.nil?
- op["create"] = Factories::V2::Resources.keyword_plan(&blk)
+ op["create"] = Factories::V2::Resources.keyword_plan_campaign(&blk)
end
op
end
@@ -1616,281 +1591,306 @@
op["create"] = Factories::V2::Resources.account_budget_proposal(&blk)
end
op
end
+
+ # A convenience method for creating an BillingSetupOperation instance with
+ # its "create" field prepopulated with an BillingSetup instance.
+ #
+ # @overload billing_setup
+ # creates an operation instance, yielding a newly fabricated BillingSetup
+ # which can be used for setting attributes on the newly created resource
+ # @overload billing_setup(res)
+ # creates an operation instance, with the resource to be created
+ # set to the passed value (res)
+ # @param res [Google::Ads::GoogleAds::V2::Resources::BillingSetup]
+ # a resource instance to be used for creation in this operation.
+ #
+ # @return [Google::Ads::GoogleAds::V2::Services::BillingSetupOperation] instance that will create the resource
+ def self.billing_setup(res = nil, &blk)
+ require "google/ads/google_ads/v2/services/billing_setup_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::BillingSetupOperation.new
+ if !res.nil?
+ op["create"] = res
+ elsif !blk.nil?
+ op["create"] = Factories::V2::Resources.billing_setup(&blk)
+ end
+
+ op
+ end
end
module UpdateResource
- # A convenience method for creating an CustomerManagerLinkOperation instance with
- # its "update" field prepopulated with an CustomerManagerLink 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_manager_link(path, &blk)
+ # @overload #custom_interest(path, &blk)
# @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V2::Resources::CustomerManagerLink] a new instance of the resource for this update operation, on
+ # @yield [Google::Ads::GoogleAds::V2::Resources::CustomInterest] a new instance of the resource for this update operation, on
# which fields can be set to update
#
- # @overload #customer_manager_link(resource, &blk)
- # @param resource [Google::Ads::GoogleAds::V2::Resources::CustomerManagerLink] a resource instance to update
+ # @overload #custom_interest(resource, &blk)
+ # @param resource [Google::Ads::GoogleAds::V2::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::V2::Services::CustomerManagerLinkOperation] the operation instance to update the resource
- def self.customer_manager_link(resource_or_path, &blk)
- require "google/ads/google_ads/v2/services/customer_manager_link_service_pb.rb"
+ # @return [Google::Ads::GoogleAds::V2::Services::CustomInterestOperation] the operation instance to update the resource
+ def self.custom_interest(resource_or_path, &blk)
+ require "google/ads/google_ads/v2/services/custom_interest_service_pb.rb"
res = case resource_or_path
- when Google::Ads::GoogleAds::V2::Resources::CustomerManagerLink
+ when Google::Ads::GoogleAds::V2::Resources::CustomInterest
resource_or_path
# got a resource path
when String
- obj = Google::Ads::GoogleAds::V2::Resources::CustomerManagerLink.new
+ obj = Google::Ads::GoogleAds::V2::Resources::CustomInterest.new
obj.resource_name = resource_or_path
obj
else
- unless Google::Ads::GoogleAds::V2::Resources::CustomerManagerLink === res
+ unless Google::Ads::GoogleAds::V2::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::V2::Services::CustomerManagerLinkOperation.new
+ op = Google::Ads::GoogleAds::V2::Services::CustomInterestOperation.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 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 #keyword_plan_campaign(path, &blk)
+ # @overload #ad_group(path, &blk)
# @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V2::Resources::KeywordPlanCampaign] a new instance of the resource for this update operation, on
+ # @yield [Google::Ads::GoogleAds::V2::Resources::AdGroup] 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::V2::Resources::KeywordPlanCampaign] a resource instance to update
+ # @overload #ad_group(resource, &blk)
+ # @param resource [Google::Ads::GoogleAds::V2::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::V2::Services::KeywordPlanCampaignOperation] the operation instance to update the resource
- def self.keyword_plan_campaign(resource_or_path, &blk)
- require "google/ads/google_ads/v2/services/keyword_plan_campaign_service_pb.rb"
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupOperation] the operation instance to update the resource
+ def self.ad_group(resource_or_path, &blk)
+ require "google/ads/google_ads/v2/services/ad_group_service_pb.rb"
res = case resource_or_path
- when Google::Ads::GoogleAds::V2::Resources::KeywordPlanCampaign
+ when Google::Ads::GoogleAds::V2::Resources::AdGroup
resource_or_path
# got a resource path
when String
- obj = Google::Ads::GoogleAds::V2::Resources::KeywordPlanCampaign.new
+ obj = Google::Ads::GoogleAds::V2::Resources::AdGroup.new
obj.resource_name = resource_or_path
obj
else
- unless Google::Ads::GoogleAds::V2::Resources::KeywordPlanCampaign === res
+ unless Google::Ads::GoogleAds::V2::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::V2::Services::KeywordPlanCampaignOperation.new
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupOperation.new
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
op["update"] = res
op
end
- # A convenience method for creating an SharedSetOperation instance with
- # its "update" field prepopulated with an SharedSet instance, and
+ # A convenience method for creating an ExtensionFeedItemOperation instance with
+ # its "update" field prepopulated with an ExtensionFeedItem instance, and
# its "update_mask" field populated as needed to send the updates to the API.
#
- # @overload #shared_set(path, &blk)
+ # @overload #extension_feed_item(path, &blk)
# @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V2::Resources::SharedSet] a new instance of the resource for this update operation, on
+ # @yield [Google::Ads::GoogleAds::V2::Resources::ExtensionFeedItem] a new instance of the resource for this update operation, on
# which fields can be set to update
#
- # @overload #shared_set(resource, &blk)
- # @param resource [Google::Ads::GoogleAds::V2::Resources::SharedSet] a resource instance to update
+ # @overload #extension_feed_item(resource, &blk)
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::ExtensionFeedItem] a resource instance to update
# @yield the passed block is called and updates against `resource` are recordered in the update mask
- # @return [Google::Ads::GoogleAds::V2::Services::SharedSetOperation] the operation instance to update the resource
- def self.shared_set(resource_or_path, &blk)
- require "google/ads/google_ads/v2/services/shared_set_service_pb.rb"
+ # @return [Google::Ads::GoogleAds::V2::Services::ExtensionFeedItemOperation] the operation instance to update the resource
+ def self.extension_feed_item(resource_or_path, &blk)
+ require "google/ads/google_ads/v2/services/extension_feed_item_service_pb.rb"
res = case resource_or_path
- when Google::Ads::GoogleAds::V2::Resources::SharedSet
+ when Google::Ads::GoogleAds::V2::Resources::ExtensionFeedItem
resource_or_path
# got a resource path
when String
- obj = Google::Ads::GoogleAds::V2::Resources::SharedSet.new
+ obj = Google::Ads::GoogleAds::V2::Resources::ExtensionFeedItem.new
obj.resource_name = resource_or_path
obj
else
- unless Google::Ads::GoogleAds::V2::Resources::SharedSet === res
+ unless Google::Ads::GoogleAds::V2::Resources::ExtensionFeedItem === 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::V2::Services::SharedSetOperation.new
+ op = Google::Ads::GoogleAds::V2::Services::ExtensionFeedItemOperation.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
+ # 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 #feed(path, &blk)
+ # @overload #campaign_bid_modifier(path, &blk)
# @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V2::Resources::Feed] a new instance of the resource for this update operation, on
+ # @yield [Google::Ads::GoogleAds::V2::Resources::CampaignBidModifier] 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::V2::Resources::Feed] a resource instance to update
+ # @overload #campaign_bid_modifier(resource, &blk)
+ # @param resource [Google::Ads::GoogleAds::V2::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::V2::Services::FeedOperation] the operation instance to update the resource
- def self.feed(resource_or_path, &blk)
- require "google/ads/google_ads/v2/services/feed_service_pb.rb"
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignBidModifierOperation] the operation instance to update the resource
+ def self.campaign_bid_modifier(resource_or_path, &blk)
+ require "google/ads/google_ads/v2/services/campaign_bid_modifier_service_pb.rb"
res = case resource_or_path
- when Google::Ads::GoogleAds::V2::Resources::Feed
+ when Google::Ads::GoogleAds::V2::Resources::CampaignBidModifier
resource_or_path
# got a resource path
when String
- obj = Google::Ads::GoogleAds::V2::Resources::Feed.new
+ obj = Google::Ads::GoogleAds::V2::Resources::CampaignBidModifier.new
obj.resource_name = resource_or_path
obj
else
- unless Google::Ads::GoogleAds::V2::Resources::Feed === res
+ unless Google::Ads::GoogleAds::V2::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::V2::Services::FeedOperation.new
+ op = Google::Ads::GoogleAds::V2::Services::CampaignBidModifierOperation.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 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 #customer_client_link(path, &blk)
+ # @overload #campaign_draft(path, &blk)
# @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V2::Resources::CustomerClientLink] a new instance of the resource for this update operation, on
+ # @yield [Google::Ads::GoogleAds::V2::Resources::CampaignDraft] 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::V2::Resources::CustomerClientLink] a resource instance to update
+ # @overload #campaign_draft(resource, &blk)
+ # @param resource [Google::Ads::GoogleAds::V2::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::V2::Services::CustomerClientLinkOperation] the operation instance to update the resource
- def self.customer_client_link(resource_or_path, &blk)
- require "google/ads/google_ads/v2/services/customer_client_link_service_pb.rb"
+ # @return [Google::Ads::GoogleAds::V2::Services::CampaignDraftOperation] the operation instance to update the resource
+ def self.campaign_draft(resource_or_path, &blk)
+ require "google/ads/google_ads/v2/services/campaign_draft_service_pb.rb"
res = case resource_or_path
- when Google::Ads::GoogleAds::V2::Resources::CustomerClientLink
+ when Google::Ads::GoogleAds::V2::Resources::CampaignDraft
resource_or_path
# got a resource path
when String
- obj = Google::Ads::GoogleAds::V2::Resources::CustomerClientLink.new
+ obj = Google::Ads::GoogleAds::V2::Resources::CampaignDraft.new
obj.resource_name = resource_or_path
obj
else
- unless Google::Ads::GoogleAds::V2::Resources::CustomerClientLink === res
+ unless Google::Ads::GoogleAds::V2::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::V2::Services::CustomerClientLinkOperation.new
+ op = Google::Ads::GoogleAds::V2::Services::CampaignDraftOperation.new
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
op["update"] = res
op
end
- # A convenience method for creating an MerchantCenterLinkOperation instance with
- # its "update" field prepopulated with an MerchantCenterLink instance, and
+ # A convenience method for creating an CustomerOperation instance with
+ # its "update" field prepopulated with an Customer instance, and
# its "update_mask" field populated as needed to send the updates to the API.
#
- # @overload #merchant_center_link(path, &blk)
+ # @overload #customer(path, &blk)
# @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V2::Resources::MerchantCenterLink] a new instance of the resource for this update operation, on
+ # @yield [Google::Ads::GoogleAds::V2::Resources::Customer] a new instance of the resource for this update operation, on
# which fields can be set to update
#
- # @overload #merchant_center_link(resource, &blk)
- # @param resource [Google::Ads::GoogleAds::V2::Resources::MerchantCenterLink] a resource instance to update
+ # @overload #customer(resource, &blk)
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::Customer] a resource instance to update
# @yield the passed block is called and updates against `resource` are recordered in the update mask
- # @return [Google::Ads::GoogleAds::V2::Services::MerchantCenterLinkOperation] the operation instance to update the resource
- def self.merchant_center_link(resource_or_path, &blk)
- require "google/ads/google_ads/v2/services/merchant_center_link_service_pb.rb"
+ # @return [Google::Ads::GoogleAds::V2::Services::CustomerOperation] the operation instance to update the resource
+ def self.customer(resource_or_path, &blk)
+ require "google/ads/google_ads/v2/services/customer_service_pb.rb"
res = case resource_or_path
- when Google::Ads::GoogleAds::V2::Resources::MerchantCenterLink
+ when Google::Ads::GoogleAds::V2::Resources::Customer
resource_or_path
# got a resource path
when String
- obj = Google::Ads::GoogleAds::V2::Resources::MerchantCenterLink.new
+ obj = Google::Ads::GoogleAds::V2::Resources::Customer.new
obj.resource_name = resource_or_path
obj
else
- unless Google::Ads::GoogleAds::V2::Resources::MerchantCenterLink === res
+ unless Google::Ads::GoogleAds::V2::Resources::Customer === 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::V2::Services::MerchantCenterLinkOperation.new
+ op = Google::Ads::GoogleAds::V2::Services::CustomerOperation.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
+ # A convenience method for creating an SharedSetOperation instance with
+ # its "update" field prepopulated with an SharedSet instance, and
# its "update_mask" field populated as needed to send the updates to the API.
#
- # @overload #ad_group_bid_modifier(path, &blk)
+ # @overload #shared_set(path, &blk)
# @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V2::Resources::AdGroupBidModifier] a new instance of the resource for this update operation, on
+ # @yield [Google::Ads::GoogleAds::V2::Resources::SharedSet] a new instance of the resource for this update operation, on
# which fields can be set to update
#
- # @overload #ad_group_bid_modifier(resource, &blk)
- # @param resource [Google::Ads::GoogleAds::V2::Resources::AdGroupBidModifier] a resource instance to update
+ # @overload #shared_set(resource, &blk)
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::SharedSet] a resource instance to update
# @yield the passed block is called and updates against `resource` are recordered in the update mask
- # @return [Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation] the operation instance to update the resource
- def self.ad_group_bid_modifier(resource_or_path, &blk)
- require "google/ads/google_ads/v2/services/ad_group_bid_modifier_service_pb.rb"
+ # @return [Google::Ads::GoogleAds::V2::Services::SharedSetOperation] the operation instance to update the resource
+ def self.shared_set(resource_or_path, &blk)
+ require "google/ads/google_ads/v2/services/shared_set_service_pb.rb"
res = case resource_or_path
- when Google::Ads::GoogleAds::V2::Resources::AdGroupBidModifier
+ when Google::Ads::GoogleAds::V2::Resources::SharedSet
resource_or_path
# got a resource path
when String
- obj = Google::Ads::GoogleAds::V2::Resources::AdGroupBidModifier.new
+ obj = Google::Ads::GoogleAds::V2::Resources::SharedSet.new
obj.resource_name = resource_or_path
obj
else
- unless Google::Ads::GoogleAds::V2::Resources::AdGroupBidModifier === res
+ unless Google::Ads::GoogleAds::V2::Resources::SharedSet === 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::V2::Services::AdGroupBidModifierOperation.new
+ op = Google::Ads::GoogleAds::V2::Services::SharedSetOperation.new
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
op["update"] = res
op
end
@@ -1931,44 +1931,44 @@
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 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 #remarketing_action(path, &blk)
+ # @overload #label(path, &blk)
# @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V2::Resources::RemarketingAction] a new instance of the resource for this update operation, on
+ # @yield [Google::Ads::GoogleAds::V2::Resources::Label] 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::V2::Resources::RemarketingAction] a resource instance to update
+ # @overload #label(resource, &blk)
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::Label] a resource instance to update
# @yield the passed block is called and updates against `resource` are recordered in the update mask
- # @return [Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation] the operation instance to update the resource
- def self.remarketing_action(resource_or_path, &blk)
- require "google/ads/google_ads/v2/services/remarketing_action_service_pb.rb"
+ # @return [Google::Ads::GoogleAds::V2::Services::LabelOperation] the operation instance to update the resource
+ def self.label(resource_or_path, &blk)
+ require "google/ads/google_ads/v2/services/label_service_pb.rb"
res = case resource_or_path
- when Google::Ads::GoogleAds::V2::Resources::RemarketingAction
+ when Google::Ads::GoogleAds::V2::Resources::Label
resource_or_path
# got a resource path
when String
- obj = Google::Ads::GoogleAds::V2::Resources::RemarketingAction.new
+ obj = Google::Ads::GoogleAds::V2::Resources::Label.new
obj.resource_name = resource_or_path
obj
else
- unless Google::Ads::GoogleAds::V2::Resources::RemarketingAction === res
+ unless Google::Ads::GoogleAds::V2::Resources::Label === 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::V2::Services::RemarketingActionOperation.new
+ op = Google::Ads::GoogleAds::V2::Services::LabelOperation.new
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
op["update"] = res
op
end
@@ -2009,10 +2009,49 @@
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)
+ # @param path [String] a resource path for the resource to update
+ # @yield [Google::Ads::GoogleAds::V2::Resources::AdGroupBidModifier] a new instance of the resource for this update operation, on
+ # which fields can be set to update
+ #
+ # @overload #ad_group_bid_modifier(resource, &blk)
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::AdGroupBidModifier] a resource instance to update
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
+ # @return [Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation] the operation instance to update the resource
+ def self.ad_group_bid_modifier(resource_or_path, &blk)
+ require "google/ads/google_ads/v2/services/ad_group_bid_modifier_service_pb.rb"
+ res = case resource_or_path
+ when Google::Ads::GoogleAds::V2::Resources::AdGroupBidModifier
+ resource_or_path
+ # got a resource path
+ when String
+ obj = Google::Ads::GoogleAds::V2::Resources::AdGroupBidModifier.new
+ obj.resource_name = resource_or_path
+ obj
+ else
+ unless Google::Ads::GoogleAds::V2::Resources::AdGroupBidModifier === 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::V2::Services::AdGroupBidModifierOperation.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
# its "update_mask" field populated as needed to send the updates to the API.
#
# @overload #ad_group_criterion(path, &blk)
@@ -2126,49 +2165,10 @@
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
- # its "update_mask" field populated as needed to send the updates to the API.
- #
- # @overload #ad_group(path, &blk)
- # @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V2::Resources::AdGroup] 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::V2::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::V2::Services::AdGroupOperation] the operation instance to update the resource
- def self.ad_group(resource_or_path, &blk)
- require "google/ads/google_ads/v2/services/ad_group_service_pb.rb"
- res = case resource_or_path
- when Google::Ads::GoogleAds::V2::Resources::AdGroup
- resource_or_path
- # got a resource path
- when String
- obj = Google::Ads::GoogleAds::V2::Resources::AdGroup.new
- obj.resource_name = resource_or_path
- obj
- else
- unless Google::Ads::GoogleAds::V2::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::V2::Services::AdGroupOperation.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
# its "update_mask" field populated as needed to send the updates to the API.
#
# @overload #ad_parameter(path, &blk)
@@ -2243,49 +2243,10 @@
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
- # its "update_mask" field populated as needed to send the updates to the API.
- #
- # @overload #campaign_bid_modifier(path, &blk)
- # @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V2::Resources::CampaignBidModifier] 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::V2::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::V2::Services::CampaignBidModifierOperation] the operation instance to update the resource
- def self.campaign_bid_modifier(resource_or_path, &blk)
- require "google/ads/google_ads/v2/services/campaign_bid_modifier_service_pb.rb"
- res = case resource_or_path
- when Google::Ads::GoogleAds::V2::Resources::CampaignBidModifier
- resource_or_path
- # got a resource path
- when String
- obj = Google::Ads::GoogleAds::V2::Resources::CampaignBidModifier.new
- obj.resource_name = resource_or_path
- obj
- else
- unless Google::Ads::GoogleAds::V2::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::V2::Services::CampaignBidModifierOperation.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)
@@ -2360,49 +2321,10 @@
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
- # its "update_mask" field populated as needed to send the updates to the API.
- #
- # @overload #campaign_draft(path, &blk)
- # @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V2::Resources::CampaignDraft] 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::V2::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::V2::Services::CampaignDraftOperation] the operation instance to update the resource
- def self.campaign_draft(resource_or_path, &blk)
- require "google/ads/google_ads/v2/services/campaign_draft_service_pb.rb"
- res = case resource_or_path
- when Google::Ads::GoogleAds::V2::Resources::CampaignDraft
- resource_or_path
- # got a resource path
- when String
- obj = Google::Ads::GoogleAds::V2::Resources::CampaignDraft.new
- obj.resource_name = resource_or_path
- obj
- else
- unless Google::Ads::GoogleAds::V2::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::V2::Services::CampaignDraftOperation.new
- op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
- op["update"] = res
- op
- end
-
# A convenience method for creating an CampaignExperimentOperation instance with
# its "update" field prepopulated with an CampaignExperiment instance, and
# its "update_mask" field populated as needed to send the updates to the API.
#
# @overload #campaign_experiment(path, &blk)
@@ -2633,239 +2555,239 @@
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
op["update"] = res
op
end
- # A convenience method for creating an CustomerOperation instance with
- # its "update" field prepopulated with an Customer instance, and
+ # 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 #customer(path, &blk)
+ # @overload #feed_item(path, &blk)
# @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V2::Resources::Customer] a new instance of the resource for this update operation, on
+ # @yield [Google::Ads::GoogleAds::V2::Resources::FeedItem] a new instance of the resource for this update operation, on
# which fields can be set to update
#
- # @overload #customer(resource, &blk)
- # @param resource [Google::Ads::GoogleAds::V2::Resources::Customer] a resource instance to update
+ # @overload #feed_item(resource, &blk)
+ # @param resource [Google::Ads::GoogleAds::V2::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::V2::Services::CustomerOperation] the operation instance to update the resource
- def self.customer(resource_or_path, &blk)
- require "google/ads/google_ads/v2/services/customer_service_pb.rb"
+ # @return [Google::Ads::GoogleAds::V2::Services::FeedItemOperation] the operation instance to update the resource
+ def self.feed_item(resource_or_path, &blk)
+ require "google/ads/google_ads/v2/services/feed_item_service_pb.rb"
res = case resource_or_path
- when Google::Ads::GoogleAds::V2::Resources::Customer
+ when Google::Ads::GoogleAds::V2::Resources::FeedItem
resource_or_path
# got a resource path
when String
- obj = Google::Ads::GoogleAds::V2::Resources::Customer.new
+ obj = Google::Ads::GoogleAds::V2::Resources::FeedItem.new
obj.resource_name = resource_or_path
obj
else
- unless Google::Ads::GoogleAds::V2::Resources::Customer === res
+ unless Google::Ads::GoogleAds::V2::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::V2::Services::CustomerOperation.new
+ op = Google::Ads::GoogleAds::V2::Services::FeedItemOperation.new
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
op["update"] = res
op
end
- # A convenience method for creating an ExtensionFeedItemOperation instance with
- # its "update" field prepopulated with an ExtensionFeedItem 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 #extension_feed_item(path, &blk)
+ # @overload #feed(path, &blk)
# @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V2::Resources::ExtensionFeedItem] a new instance of the resource for this update operation, on
+ # @yield [Google::Ads::GoogleAds::V2::Resources::Feed] a new instance of the resource for this update operation, on
# which fields can be set to update
#
- # @overload #extension_feed_item(resource, &blk)
- # @param resource [Google::Ads::GoogleAds::V2::Resources::ExtensionFeedItem] a resource instance to update
+ # @overload #feed(resource, &blk)
+ # @param resource [Google::Ads::GoogleAds::V2::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::V2::Services::ExtensionFeedItemOperation] the operation instance to update the resource
- def self.extension_feed_item(resource_or_path, &blk)
- require "google/ads/google_ads/v2/services/extension_feed_item_service_pb.rb"
+ # @return [Google::Ads::GoogleAds::V2::Services::FeedOperation] the operation instance to update the resource
+ def self.feed(resource_or_path, &blk)
+ require "google/ads/google_ads/v2/services/feed_service_pb.rb"
res = case resource_or_path
- when Google::Ads::GoogleAds::V2::Resources::ExtensionFeedItem
+ when Google::Ads::GoogleAds::V2::Resources::Feed
resource_or_path
# got a resource path
when String
- obj = Google::Ads::GoogleAds::V2::Resources::ExtensionFeedItem.new
+ obj = Google::Ads::GoogleAds::V2::Resources::Feed.new
obj.resource_name = resource_or_path
obj
else
- unless Google::Ads::GoogleAds::V2::Resources::ExtensionFeedItem === res
+ unless Google::Ads::GoogleAds::V2::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::V2::Services::ExtensionFeedItemOperation.new
+ op = Google::Ads::GoogleAds::V2::Services::FeedOperation.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
+ # 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 #feed_item(path, &blk)
+ # @overload #remarketing_action(path, &blk)
# @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V2::Resources::FeedItem] a new instance of the resource for this update operation, on
+ # @yield [Google::Ads::GoogleAds::V2::Resources::RemarketingAction] 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::V2::Resources::FeedItem] a resource instance to update
+ # @overload #remarketing_action(resource, &blk)
+ # @param resource [Google::Ads::GoogleAds::V2::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::V2::Services::FeedItemOperation] the operation instance to update the resource
- def self.feed_item(resource_or_path, &blk)
- require "google/ads/google_ads/v2/services/feed_item_service_pb.rb"
+ # @return [Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation] the operation instance to update the resource
+ def self.remarketing_action(resource_or_path, &blk)
+ require "google/ads/google_ads/v2/services/remarketing_action_service_pb.rb"
res = case resource_or_path
- when Google::Ads::GoogleAds::V2::Resources::FeedItem
+ when Google::Ads::GoogleAds::V2::Resources::RemarketingAction
resource_or_path
# got a resource path
when String
- obj = Google::Ads::GoogleAds::V2::Resources::FeedItem.new
+ obj = Google::Ads::GoogleAds::V2::Resources::RemarketingAction.new
obj.resource_name = resource_or_path
obj
else
- unless Google::Ads::GoogleAds::V2::Resources::FeedItem === res
+ unless Google::Ads::GoogleAds::V2::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::V2::Services::FeedItemOperation.new
+ op = Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation.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
+ # A convenience method for creating an UserListOperation instance with
+ # its "update" field prepopulated with an UserList instance, and
# its "update_mask" field populated as needed to send the updates to the API.
#
- # @overload #label(path, &blk)
+ # @overload #user_list(path, &blk)
# @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V2::Resources::Label] a new instance of the resource for this update operation, on
+ # @yield [Google::Ads::GoogleAds::V2::Resources::UserList] a new instance of the resource for this update operation, on
# which fields can be set to update
#
- # @overload #label(resource, &blk)
- # @param resource [Google::Ads::GoogleAds::V2::Resources::Label] a resource instance to update
+ # @overload #user_list(resource, &blk)
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::UserList] a resource instance to update
# @yield the passed block is called and updates against `resource` are recordered in the update mask
- # @return [Google::Ads::GoogleAds::V2::Services::LabelOperation] the operation instance to update the resource
- def self.label(resource_or_path, &blk)
- require "google/ads/google_ads/v2/services/label_service_pb.rb"
+ # @return [Google::Ads::GoogleAds::V2::Services::UserListOperation] the operation instance to update the resource
+ def self.user_list(resource_or_path, &blk)
+ require "google/ads/google_ads/v2/services/user_list_service_pb.rb"
res = case resource_or_path
- when Google::Ads::GoogleAds::V2::Resources::Label
+ when Google::Ads::GoogleAds::V2::Resources::UserList
resource_or_path
# got a resource path
when String
- obj = Google::Ads::GoogleAds::V2::Resources::Label.new
+ obj = Google::Ads::GoogleAds::V2::Resources::UserList.new
obj.resource_name = resource_or_path
obj
else
- unless Google::Ads::GoogleAds::V2::Resources::Label === res
+ unless Google::Ads::GoogleAds::V2::Resources::UserList === 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::V2::Services::LabelOperation.new
+ op = Google::Ads::GoogleAds::V2::Services::UserListOperation.new
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
op["update"] = res
op
end
- # A convenience method for creating an UserListOperation instance with
- # its "update" field prepopulated with an UserList 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 #user_list(path, &blk)
+ # @overload #customer_client_link(path, &blk)
# @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V2::Resources::UserList] a new instance of the resource for this update operation, on
+ # @yield [Google::Ads::GoogleAds::V2::Resources::CustomerClientLink] a new instance of the resource for this update operation, on
# which fields can be set to update
#
- # @overload #user_list(resource, &blk)
- # @param resource [Google::Ads::GoogleAds::V2::Resources::UserList] a resource instance to update
+ # @overload #customer_client_link(resource, &blk)
+ # @param resource [Google::Ads::GoogleAds::V2::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::V2::Services::UserListOperation] the operation instance to update the resource
- def self.user_list(resource_or_path, &blk)
- require "google/ads/google_ads/v2/services/user_list_service_pb.rb"
+ # @return [Google::Ads::GoogleAds::V2::Services::CustomerClientLinkOperation] the operation instance to update the resource
+ def self.customer_client_link(resource_or_path, &blk)
+ require "google/ads/google_ads/v2/services/customer_client_link_service_pb.rb"
res = case resource_or_path
- when Google::Ads::GoogleAds::V2::Resources::UserList
+ when Google::Ads::GoogleAds::V2::Resources::CustomerClientLink
resource_or_path
# got a resource path
when String
- obj = Google::Ads::GoogleAds::V2::Resources::UserList.new
+ obj = Google::Ads::GoogleAds::V2::Resources::CustomerClientLink.new
obj.resource_name = resource_or_path
obj
else
- unless Google::Ads::GoogleAds::V2::Resources::UserList === res
+ unless Google::Ads::GoogleAds::V2::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::V2::Services::UserListOperation.new
+ op = Google::Ads::GoogleAds::V2::Services::CustomerClientLinkOperation.new
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 AdOperation instance with
+ # its "update" field prepopulated with an Ad instance, and
# its "update_mask" field populated as needed to send the updates to the API.
#
- # @overload #keyword_plan_keyword(path, &blk)
+ # @overload #ad(path, &blk)
# @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V2::Resources::KeywordPlanKeyword] a new instance of the resource for this update operation, on
+ # @yield [Google::Ads::GoogleAds::V2::Resources::Ad] 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::V2::Resources::KeywordPlanKeyword] a resource instance to update
+ # @overload #ad(resource, &blk)
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::Ad] a resource instance to update
# @yield the passed block is called and updates against `resource` are recordered in the update mask
- # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation] the operation instance to update the resource
- def self.keyword_plan_keyword(resource_or_path, &blk)
- require "google/ads/google_ads/v2/services/keyword_plan_keyword_service_pb.rb"
+ # @return [Google::Ads::GoogleAds::V2::Services::AdOperation] the operation instance to update the resource
+ def self.ad(resource_or_path, &blk)
+ require "google/ads/google_ads/v2/services/ad_service_pb.rb"
res = case resource_or_path
- when Google::Ads::GoogleAds::V2::Resources::KeywordPlanKeyword
+ when Google::Ads::GoogleAds::V2::Resources::Ad
resource_or_path
# got a resource path
when String
- obj = Google::Ads::GoogleAds::V2::Resources::KeywordPlanKeyword.new
+ obj = Google::Ads::GoogleAds::V2::Resources::Ad.new
obj.resource_name = resource_or_path
obj
else
- unless Google::Ads::GoogleAds::V2::Resources::KeywordPlanKeyword === res
+ unless Google::Ads::GoogleAds::V2::Resources::Ad === 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::V2::Services::KeywordPlanKeywordOperation.new
+ op = Google::Ads::GoogleAds::V2::Services::AdOperation.new
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
op["update"] = res
op
end
@@ -2906,165 +2828,243 @@
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
op["update"] = res
op
end
- # A convenience method for creating an CustomInterestOperation instance with
- # its "update" field prepopulated with an CustomInterest 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 #custom_interest(path, &blk)
+ # @overload #keyword_plan_negative_keyword(path, &blk)
# @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V2::Resources::CustomInterest] a new instance of the resource for this update operation, on
+ # @yield [Google::Ads::GoogleAds::V2::Resources::KeywordPlanNegativeKeyword] 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::V2::Resources::CustomInterest] a resource instance to update
+ # @overload #keyword_plan_negative_keyword(resource, &blk)
+ # @param resource [Google::Ads::GoogleAds::V2::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::V2::Services::CustomInterestOperation] the operation instance to update the resource
- def self.custom_interest(resource_or_path, &blk)
- require "google/ads/google_ads/v2/services/custom_interest_service_pb.rb"
+ # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation] the operation instance to update the resource
+ def self.keyword_plan_negative_keyword(resource_or_path, &blk)
+ require "google/ads/google_ads/v2/services/keyword_plan_negative_keyword_service_pb.rb"
res = case resource_or_path
- when Google::Ads::GoogleAds::V2::Resources::CustomInterest
+ when Google::Ads::GoogleAds::V2::Resources::KeywordPlanNegativeKeyword
resource_or_path
# got a resource path
when String
- obj = Google::Ads::GoogleAds::V2::Resources::CustomInterest.new
+ obj = Google::Ads::GoogleAds::V2::Resources::KeywordPlanNegativeKeyword.new
obj.resource_name = resource_or_path
obj
else
- unless Google::Ads::GoogleAds::V2::Resources::CustomInterest === res
+ unless Google::Ads::GoogleAds::V2::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::V2::Services::CustomInterestOperation.new
+ op = Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation.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 KeywordPlanOperation instance with
+ # its "update" field prepopulated with an KeywordPlan instance, and
# its "update_mask" field populated as needed to send the updates to the API.
#
- # @overload #keyword_plan_negative_keyword(path, &blk)
+ # @overload #keyword_plan(path, &blk)
# @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V2::Resources::KeywordPlanNegativeKeyword] a new instance of the resource for this update operation, on
+ # @yield [Google::Ads::GoogleAds::V2::Resources::KeywordPlan] 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::V2::Resources::KeywordPlanNegativeKeyword] a resource instance to update
+ # @overload #keyword_plan(resource, &blk)
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::KeywordPlan] a resource instance to update
# @yield the passed block is called and updates against `resource` are recordered in the update mask
- # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation] the operation instance to update the resource
- def self.keyword_plan_negative_keyword(resource_or_path, &blk)
- require "google/ads/google_ads/v2/services/keyword_plan_negative_keyword_service_pb.rb"
+ # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanOperation] the operation instance to update the resource
+ def self.keyword_plan(resource_or_path, &blk)
+ require "google/ads/google_ads/v2/services/keyword_plan_service_pb.rb"
res = case resource_or_path
- when Google::Ads::GoogleAds::V2::Resources::KeywordPlanNegativeKeyword
+ when Google::Ads::GoogleAds::V2::Resources::KeywordPlan
resource_or_path
# got a resource path
when String
- obj = Google::Ads::GoogleAds::V2::Resources::KeywordPlanNegativeKeyword.new
+ obj = Google::Ads::GoogleAds::V2::Resources::KeywordPlan.new
obj.resource_name = resource_or_path
obj
else
- unless Google::Ads::GoogleAds::V2::Resources::KeywordPlanNegativeKeyword === res
+ unless Google::Ads::GoogleAds::V2::Resources::KeywordPlan === 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::V2::Services::KeywordPlanNegativeKeywordOperation.new
+ op = Google::Ads::GoogleAds::V2::Services::KeywordPlanOperation.new
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
op["update"] = res
op
end
- # A convenience method for creating an AdOperation instance with
- # its "update" field prepopulated with an Ad instance, and
+ # 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 #ad(path, &blk)
+ # @overload #keyword_plan_keyword(path, &blk)
# @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V2::Resources::Ad] a new instance of the resource for this update operation, on
+ # @yield [Google::Ads::GoogleAds::V2::Resources::KeywordPlanKeyword] a new instance of the resource for this update operation, on
# which fields can be set to update
#
- # @overload #ad(resource, &blk)
- # @param resource [Google::Ads::GoogleAds::V2::Resources::Ad] a resource instance to update
+ # @overload #keyword_plan_keyword(resource, &blk)
+ # @param resource [Google::Ads::GoogleAds::V2::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::V2::Services::AdOperation] the operation instance to update the resource
- def self.ad(resource_or_path, &blk)
- require "google/ads/google_ads/v2/services/ad_service_pb.rb"
+ # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation] the operation instance to update the resource
+ def self.keyword_plan_keyword(resource_or_path, &blk)
+ require "google/ads/google_ads/v2/services/keyword_plan_keyword_service_pb.rb"
res = case resource_or_path
- when Google::Ads::GoogleAds::V2::Resources::Ad
+ when Google::Ads::GoogleAds::V2::Resources::KeywordPlanKeyword
resource_or_path
# got a resource path
when String
- obj = Google::Ads::GoogleAds::V2::Resources::Ad.new
+ obj = Google::Ads::GoogleAds::V2::Resources::KeywordPlanKeyword.new
obj.resource_name = resource_or_path
obj
else
- unless Google::Ads::GoogleAds::V2::Resources::Ad === res
+ unless Google::Ads::GoogleAds::V2::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::V2::Services::AdOperation.new
+ op = Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation.new
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
op["update"] = res
op
end
- # A convenience method for creating an KeywordPlanOperation instance with
- # its "update" field prepopulated with an KeywordPlan 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(path, &blk)
+ # @overload #keyword_plan_campaign(path, &blk)
# @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V2::Resources::KeywordPlan] a new instance of the resource for this update operation, on
+ # @yield [Google::Ads::GoogleAds::V2::Resources::KeywordPlanCampaign] a new instance of the resource for this update operation, on
# which fields can be set to update
#
- # @overload #keyword_plan(resource, &blk)
- # @param resource [Google::Ads::GoogleAds::V2::Resources::KeywordPlan] a resource instance to update
+ # @overload #keyword_plan_campaign(resource, &blk)
+ # @param resource [Google::Ads::GoogleAds::V2::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::V2::Services::KeywordPlanOperation] the operation instance to update the resource
- def self.keyword_plan(resource_or_path, &blk)
- require "google/ads/google_ads/v2/services/keyword_plan_service_pb.rb"
+ # @return [Google::Ads::GoogleAds::V2::Services::KeywordPlanCampaignOperation] the operation instance to update the resource
+ def self.keyword_plan_campaign(resource_or_path, &blk)
+ require "google/ads/google_ads/v2/services/keyword_plan_campaign_service_pb.rb"
res = case resource_or_path
- when Google::Ads::GoogleAds::V2::Resources::KeywordPlan
+ when Google::Ads::GoogleAds::V2::Resources::KeywordPlanCampaign
resource_or_path
# got a resource path
when String
- obj = Google::Ads::GoogleAds::V2::Resources::KeywordPlan.new
+ obj = Google::Ads::GoogleAds::V2::Resources::KeywordPlanCampaign.new
obj.resource_name = resource_or_path
obj
else
- unless Google::Ads::GoogleAds::V2::Resources::KeywordPlan === res
+ unless Google::Ads::GoogleAds::V2::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::V2::Services::KeywordPlanOperation.new
+ op = Google::Ads::GoogleAds::V2::Services::KeywordPlanCampaignOperation.new
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
op["update"] = res
op
end
+
+ # A convenience method for creating an CustomerManagerLinkOperation instance with
+ # its "update" field prepopulated with an CustomerManagerLink instance, and
+ # its "update_mask" field populated as needed to send the updates to the API.
+ #
+ # @overload #customer_manager_link(path, &blk)
+ # @param path [String] a resource path for the resource to update
+ # @yield [Google::Ads::GoogleAds::V2::Resources::CustomerManagerLink] a new instance of the resource for this update operation, on
+ # which fields can be set to update
+ #
+ # @overload #customer_manager_link(resource, &blk)
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::CustomerManagerLink] a resource instance to update
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
+ # @return [Google::Ads::GoogleAds::V2::Services::CustomerManagerLinkOperation] the operation instance to update the resource
+ def self.customer_manager_link(resource_or_path, &blk)
+ require "google/ads/google_ads/v2/services/customer_manager_link_service_pb.rb"
+ res = case resource_or_path
+ when Google::Ads::GoogleAds::V2::Resources::CustomerManagerLink
+ resource_or_path
+ # got a resource path
+ when String
+ obj = Google::Ads::GoogleAds::V2::Resources::CustomerManagerLink.new
+ obj.resource_name = resource_or_path
+ obj
+ else
+ unless Google::Ads::GoogleAds::V2::Resources::CustomerManagerLink === 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::V2::Services::CustomerManagerLinkOperation.new
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
+ op["update"] = res
+ op
+ end
+
+ # A convenience method for creating an MerchantCenterLinkOperation instance with
+ # its "update" field prepopulated with an MerchantCenterLink instance, and
+ # its "update_mask" field populated as needed to send the updates to the API.
+ #
+ # @overload #merchant_center_link(path, &blk)
+ # @param path [String] a resource path for the resource to update
+ # @yield [Google::Ads::GoogleAds::V2::Resources::MerchantCenterLink] a new instance of the resource for this update operation, on
+ # which fields can be set to update
+ #
+ # @overload #merchant_center_link(resource, &blk)
+ # @param resource [Google::Ads::GoogleAds::V2::Resources::MerchantCenterLink] 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::V2::Services::MerchantCenterLinkOperation] the operation instance to update the resource
+ def self.merchant_center_link(resource_or_path, &blk)
+ require "google/ads/google_ads/v2/services/merchant_center_link_service_pb.rb"
+ res = case resource_or_path
+ when Google::Ads::GoogleAds::V2::Resources::MerchantCenterLink
+ resource_or_path
+ # got a resource path
+ when String
+ obj = Google::Ads::GoogleAds::V2::Resources::MerchantCenterLink.new
+ obj.resource_name = resource_or_path
+ obj
+ else
+ unless Google::Ads::GoogleAds::V2::Resources::MerchantCenterLink === 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::V2::Services::MerchantCenterLinkOperation.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.
@@ -3086,171 +3086,171 @@
op = Google::Ads::GoogleAds::V2::Services::AdGroupCriterionLabelOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an CustomerManagerLinkOperation 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.customer_manager_link(path)
- require "google/ads/google_ads/v2/services/customer_manager_link_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::CustomerManagerLinkOperation.new
+ def self.custom_interest(path)
+ require "google/ads/google_ads/v2/services/custom_interest_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::CustomInterestOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an KeywordPlanCampaignOperation instance with
+ # A convenience method for creationg an CustomerNegativeCriterionOperation 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/v2/services/keyword_plan_campaign_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::KeywordPlanCampaignOperation.new
+ def self.customer_negative_criterion(path)
+ require "google/ads/google_ads/v2/services/customer_negative_criterion_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::CustomerNegativeCriterionOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an SharedSetOperation instance with
+ # 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_set(path)
- require "google/ads/google_ads/v2/services/shared_set_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::SharedSetOperation.new
+ def self.shared_criterion(path)
+ require "google/ads/google_ads/v2/services/shared_criterion_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::SharedCriterionOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an FeedOperation 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.feed(path)
- require "google/ads/google_ads/v2/services/feed_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::FeedOperation.new
+ def self.feed_mapping(path)
+ require "google/ads/google_ads/v2/services/feed_mapping_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::FeedMappingOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an AdGroupAdLabelOperation instance with
+ # A convenience method for creationg an AdGroupOperation 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/v2/services/ad_group_ad_label_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::AdGroupAdLabelOperation.new
+ def self.ad_group(path)
+ require "google/ads/google_ads/v2/services/ad_group_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an CustomerClientLinkOperation instance with
+ # 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.customer_client_link(path)
- require "google/ads/google_ads/v2/services/customer_client_link_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::CustomerClientLinkOperation.new
+ def self.extension_feed_item(path)
+ require "google/ads/google_ads/v2/services/extension_feed_item_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::ExtensionFeedItemOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an CampaignSharedSetOperation instance with
+ # 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_shared_set(path)
- require "google/ads/google_ads/v2/services/campaign_shared_set_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::CampaignSharedSetOperation.new
+ def self.campaign_bid_modifier(path)
+ require "google/ads/google_ads/v2/services/campaign_bid_modifier_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::CampaignBidModifierOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an MerchantCenterLinkOperation instance with
+ # 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.merchant_center_link(path)
- require "google/ads/google_ads/v2/services/merchant_center_link_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::MerchantCenterLinkOperation.new
+ def self.campaign_draft(path)
+ require "google/ads/google_ads/v2/services/campaign_draft_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::CampaignDraftOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an AdGroupBidModifierOperation 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_bid_modifier(path)
- require "google/ads/google_ads/v2/services/ad_group_bid_modifier_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation.new
+ def self.customer(path)
+ require "google/ads/google_ads/v2/services/customer_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::CustomerOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an CampaignFeedOperation instance with
+ # A convenience method for creationg an SharedSetOperation 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/v2/services/campaign_feed_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::CampaignFeedOperation.new
+ def self.shared_set(path)
+ require "google/ads/google_ads/v2/services/shared_set_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::SharedSetOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an SharedCriterionOperation instance with
+ # 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.shared_criterion(path)
- require "google/ads/google_ads/v2/services/shared_criterion_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::SharedCriterionOperation.new
+ def self.campaign_feed(path)
+ require "google/ads/google_ads/v2/services/campaign_feed_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::CampaignFeedOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an RemarketingActionOperation instance with
+ # 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.remarketing_action(path)
- require "google/ads/google_ads/v2/services/remarketing_action_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation.new
+ def self.label(path)
+ require "google/ads/google_ads/v2/services/label_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::LabelOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an AdGroupLabelOperation instance with
+ # 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_label(path)
- require "google/ads/google_ads/v2/services/ad_group_label_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::AdGroupLabelOperation.new
+ def self.ad_group_ad_label(path)
+ require "google/ads/google_ads/v2/services/ad_group_ad_label_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupAdLabelOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an CustomerLabelOperation instance with
+ # 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.customer_label(path)
- require "google/ads/google_ads/v2/services/customer_label_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::CustomerLabelOperation.new
+ def self.ad_group_ad(path)
+ require "google/ads/google_ads/v2/services/ad_group_ad_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupAdOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an AdGroupAdOperation instance with
+ # 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_ad(path)
- require "google/ads/google_ads/v2/services/ad_group_ad_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::AdGroupAdOperation.new
+ def self.ad_group_bid_modifier(path)
+ require "google/ads/google_ads/v2/services/ad_group_bid_modifier_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupBidModifierOperation.new
op["remove"] = path
op
end
# A convenience method for creationg an AdGroupCriterionOperation instance with
@@ -3284,17 +3284,17 @@
op = Google::Ads::GoogleAds::V2::Services::AdGroupFeedOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an AdGroupOperation instance with
+ # A convenience method for creationg an AdGroupLabelOperation 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(path)
- require "google/ads/google_ads/v2/services/ad_group_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::AdGroupOperation.new
+ def self.ad_group_label(path)
+ require "google/ads/google_ads/v2/services/ad_group_label_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::AdGroupLabelOperation.new
op["remove"] = path
op
end
# A convenience method for creationg an AdParameterOperation instance with
@@ -3328,21 +3328,10 @@
op = Google::Ads::GoogleAds::V2::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)
- require "google/ads/google_ads/v2/services/campaign_bid_modifier_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::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)
@@ -3361,21 +3350,10 @@
op = Google::Ads::GoogleAds::V2::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/v2/services/campaign_draft_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::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)
@@ -3416,10 +3394,21 @@
op = Google::Ads::GoogleAds::V2::Services::CampaignOperation.new
op["remove"] = path
op
end
+ # A convenience method for creationg an CampaignSharedSetOperation 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_shared_set(path)
+ require "google/ads/google_ads/v2/services/campaign_shared_set_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::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)
@@ -3449,43 +3438,21 @@
op = Google::Ads::GoogleAds::V2::Services::CustomerFeedOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an CustomerNegativeCriterionOperation instance with
+ # A convenience method for creationg an CustomerLabelOperation 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_negative_criterion(path)
- require "google/ads/google_ads/v2/services/customer_negative_criterion_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::CustomerNegativeCriterionOperation.new
+ def self.customer_label(path)
+ require "google/ads/google_ads/v2/services/customer_label_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::CustomerLabelOperation.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/v2/services/customer_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::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)
- require "google/ads/google_ads/v2/services/extension_feed_item_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::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)
@@ -3504,39 +3471,39 @@
op = Google::Ads::GoogleAds::V2::Services::FeedItemTargetOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an FeedMappingOperation 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.feed_mapping(path)
- require "google/ads/google_ads/v2/services/feed_mapping_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::FeedMappingOperation.new
+ def self.feed(path)
+ require "google/ads/google_ads/v2/services/feed_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::FeedOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an LabelOperation instance with
+ # A convenience method for creationg an MediaFileOperation 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)
- require "google/ads/google_ads/v2/services/label_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::LabelOperation.new
+ def self.media_file(path)
+ require "google/ads/google_ads/v2/services/media_file_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::MediaFileOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an MediaFileOperation 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.media_file(path)
- require "google/ads/google_ads/v2/services/media_file_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::MediaFileOperation.new
+ def self.remarketing_action(path)
+ require "google/ads/google_ads/v2/services/remarketing_action_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::RemarketingActionOperation.new
op["remove"] = path
op
end
# A convenience method for creationg an UserListOperation instance with
@@ -3559,83 +3526,83 @@
op = Google::Ads::GoogleAds::V2::Services::MutateOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an KeywordPlanKeywordOperation 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_keyword(path)
- require "google/ads/google_ads/v2/services/keyword_plan_keyword_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation.new
+ def self.customer_client_link(path)
+ require "google/ads/google_ads/v2/services/customer_client_link_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::CustomerClientLinkOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an KeywordPlanAdGroupOperation instance with
+ # A convenience method for creationg an AdOperation 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/v2/services/keyword_plan_ad_group_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::KeywordPlanAdGroupOperation.new
+ def self.ad(path)
+ require "google/ads/google_ads/v2/services/ad_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::AdOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an BillingSetupOperation instance with
+ # 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.billing_setup(path)
- require "google/ads/google_ads/v2/services/billing_setup_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::BillingSetupOperation.new
+ def self.keyword_plan_ad_group(path)
+ require "google/ads/google_ads/v2/services/keyword_plan_ad_group_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::KeywordPlanAdGroupOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an CustomInterestOperation 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.custom_interest(path)
- require "google/ads/google_ads/v2/services/custom_interest_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::CustomInterestOperation.new
+ def self.keyword_plan_negative_keyword(path)
+ require "google/ads/google_ads/v2/services/keyword_plan_negative_keyword_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an KeywordPlanNegativeKeywordOperation 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.keyword_plan_negative_keyword(path)
- require "google/ads/google_ads/v2/services/keyword_plan_negative_keyword_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::KeywordPlanNegativeKeywordOperation.new
+ def self.keyword_plan(path)
+ require "google/ads/google_ads/v2/services/keyword_plan_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::KeywordPlanOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an AdOperation 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.ad(path)
- require "google/ads/google_ads/v2/services/ad_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::AdOperation.new
+ def self.keyword_plan_keyword(path)
+ require "google/ads/google_ads/v2/services/keyword_plan_keyword_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::KeywordPlanKeywordOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an KeywordPlanOperation 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(path)
- require "google/ads/google_ads/v2/services/keyword_plan_service_pb.rb"
- op = Google::Ads::GoogleAds::V2::Services::KeywordPlanOperation.new
+ def self.keyword_plan_campaign(path)
+ require "google/ads/google_ads/v2/services/keyword_plan_campaign_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::KeywordPlanCampaignOperation.new
op["remove"] = path
op
end
# A convenience method for creationg an ApplyRecommendationOperation instance with
@@ -3665,9 +3632,42 @@
#
# @param path [String] the resource name of the resource to delete.
def self.account_budget_proposal(path)
require "google/ads/google_ads/v2/services/account_budget_proposal_service_pb.rb"
op = Google::Ads::GoogleAds::V2::Services::AccountBudgetProposalOperation.new
+ op["remove"] = path
+ op
+ end
+
+ # 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.customer_manager_link(path)
+ require "google/ads/google_ads/v2/services/customer_manager_link_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::CustomerManagerLinkOperation.new
+ op["remove"] = path
+ op
+ end
+
+ # 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.billing_setup(path)
+ require "google/ads/google_ads/v2/services/billing_setup_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::BillingSetupOperation.new
+ op["remove"] = path
+ op
+ end
+
+ # A convenience method for creationg an MerchantCenterLinkOperation 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.merchant_center_link(path)
+ require "google/ads/google_ads/v2/services/merchant_center_link_service_pb.rb"
+ op = Google::Ads::GoogleAds::V2::Services::MerchantCenterLinkOperation.new
op["remove"] = path
op
end
end
end