lib/google/ads/google_ads/factories/v3/operations.rb in google-ads-googleads-6.0.0 vs lib/google/ads/google_ads/factories/v3/operations.rb in google-ads-googleads-7.0.0
- old
+ new
@@ -18,16 +18,16 @@
def self.target_restriction
require "google/ads/google_ads/v3/common/targeting_setting_pb.rb"
Google::Ads::GoogleAds::V3::Common::TargetRestrictionOperation.new
end
- # Create a new AdGroupCriterionLabelOperation
+ # Create a new CustomerClientLinkOperation
#
- # @return [Google::Ads::GoogleAds::V3::Services::AdGroupCriterionLabelOperation] the operation
- def self.ad_group_criterion_label
- require "google/ads/google_ads/v3/services/ad_group_criterion_label_service_pb.rb"
- Google::Ads::GoogleAds::V3::Services::AdGroupCriterionLabelOperation.new
+ # @return [Google::Ads::GoogleAds::V3::Services::CustomerClientLinkOperation] the operation
+ def self.customer_client_link
+ require "google/ads/google_ads/v3/services/customer_client_link_service_pb.rb"
+ Google::Ads::GoogleAds::V3::Services::CustomerClientLinkOperation.new
end
# Create a new CustomInterestOperation
#
# @return [Google::Ads::GoogleAds::V3::Services::CustomInterestOperation] the operation
@@ -66,34 +66,42 @@
def self.ad_group
require "google/ads/google_ads/v3/services/ad_group_service_pb.rb"
Google::Ads::GoogleAds::V3::Services::AdGroupOperation.new
end
- # Create a new ExtensionFeedItemOperation
- #
- # @return [Google::Ads::GoogleAds::V3::Services::ExtensionFeedItemOperation] the operation
- def self.extension_feed_item
- require "google/ads/google_ads/v3/services/extension_feed_item_service_pb.rb"
- Google::Ads::GoogleAds::V3::Services::ExtensionFeedItemOperation.new
- end
-
# Create a new CampaignBidModifierOperation
#
# @return [Google::Ads::GoogleAds::V3::Services::CampaignBidModifierOperation] the operation
def self.campaign_bid_modifier
require "google/ads/google_ads/v3/services/campaign_bid_modifier_service_pb.rb"
Google::Ads::GoogleAds::V3::Services::CampaignBidModifierOperation.new
end
+ # Create a new CustomerManagerLinkOperation
+ #
+ # @return [Google::Ads::GoogleAds::V3::Services::CustomerManagerLinkOperation] the operation
+ def self.customer_manager_link
+ require "google/ads/google_ads/v3/services/customer_manager_link_service_pb.rb"
+ Google::Ads::GoogleAds::V3::Services::CustomerManagerLinkOperation.new
+ end
+
# Create a new CampaignDraftOperation
#
# @return [Google::Ads::GoogleAds::V3::Services::CampaignDraftOperation] the operation
def self.campaign_draft
require "google/ads/google_ads/v3/services/campaign_draft_service_pb.rb"
Google::Ads::GoogleAds::V3::Services::CampaignDraftOperation.new
end
+ # Create a new UserListOperation
+ #
+ # @return [Google::Ads::GoogleAds::V3::Services::UserListOperation] the operation
+ def self.user_list
+ require "google/ads/google_ads/v3/services/user_list_service_pb.rb"
+ Google::Ads::GoogleAds::V3::Services::UserListOperation.new
+ end
+
# Create a new CustomerOperation
#
# @return [Google::Ads::GoogleAds::V3::Services::CustomerOperation] the operation
def self.customer
require "google/ads/google_ads/v3/services/customer_service_pb.rb"
@@ -106,26 +114,34 @@
def self.shared_set
require "google/ads/google_ads/v3/services/shared_set_service_pb.rb"
Google::Ads::GoogleAds::V3::Services::SharedSetOperation.new
end
- # Create a new CampaignFeedOperation
+ # Create a new AdGroupCriterionLabelOperation
#
- # @return [Google::Ads::GoogleAds::V3::Services::CampaignFeedOperation] the operation
- def self.campaign_feed
- require "google/ads/google_ads/v3/services/campaign_feed_service_pb.rb"
- Google::Ads::GoogleAds::V3::Services::CampaignFeedOperation.new
+ # @return [Google::Ads::GoogleAds::V3::Services::AdGroupCriterionLabelOperation] the operation
+ def self.ad_group_criterion_label
+ require "google/ads/google_ads/v3/services/ad_group_criterion_label_service_pb.rb"
+ Google::Ads::GoogleAds::V3::Services::AdGroupCriterionLabelOperation.new
end
# Create a new LabelOperation
#
# @return [Google::Ads::GoogleAds::V3::Services::LabelOperation] the operation
def self.label
require "google/ads/google_ads/v3/services/label_service_pb.rb"
Google::Ads::GoogleAds::V3::Services::LabelOperation.new
end
+ # Create a new AdOperation
+ #
+ # @return [Google::Ads::GoogleAds::V3::Services::AdOperation] the operation
+ def self.ad
+ require "google/ads/google_ads/v3/services/ad_service_pb.rb"
+ Google::Ads::GoogleAds::V3::Services::AdOperation.new
+ end
+
# Create a new AdGroupAdLabelOperation
#
# @return [Google::Ads::GoogleAds::V3::Services::AdGroupAdLabelOperation] the operation
def self.ad_group_ad_label
require "google/ads/google_ads/v3/services/ad_group_ad_label_service_pb.rb"
@@ -186,18 +202,10 @@
def self.ad_parameter
require "google/ads/google_ads/v3/services/ad_parameter_service_pb.rb"
Google::Ads::GoogleAds::V3::Services::AdParameterOperation.new
end
- # Create a new AdOperation
- #
- # @return [Google::Ads::GoogleAds::V3::Services::AdOperation] the operation
- def self.ad
- require "google/ads/google_ads/v3/services/ad_service_pb.rb"
- Google::Ads::GoogleAds::V3::Services::AdOperation.new
- end
-
# Create a new AssetOperation
#
# @return [Google::Ads::GoogleAds::V3::Services::AssetOperation] the operation
def self.asset
require "google/ads/google_ads/v3/services/asset_service_pb.rb"
@@ -242,10 +250,18 @@
def self.campaign_extension_setting
require "google/ads/google_ads/v3/services/campaign_extension_setting_service_pb.rb"
Google::Ads::GoogleAds::V3::Services::CampaignExtensionSettingOperation.new
end
+ # Create a new CampaignFeedOperation
+ #
+ # @return [Google::Ads::GoogleAds::V3::Services::CampaignFeedOperation] the operation
+ def self.campaign_feed
+ require "google/ads/google_ads/v3/services/campaign_feed_service_pb.rb"
+ Google::Ads::GoogleAds::V3::Services::CampaignFeedOperation.new
+ end
+
# Create a new CampaignLabelOperation
#
# @return [Google::Ads::GoogleAds::V3::Services::CampaignLabelOperation] the operation
def self.campaign_label
require "google/ads/google_ads/v3/services/campaign_label_service_pb.rb"
@@ -298,10 +314,18 @@
def self.customer_label
require "google/ads/google_ads/v3/services/customer_label_service_pb.rb"
Google::Ads::GoogleAds::V3::Services::CustomerLabelOperation.new
end
+ # Create a new ExtensionFeedItemOperation
+ #
+ # @return [Google::Ads::GoogleAds::V3::Services::ExtensionFeedItemOperation] the operation
+ def self.extension_feed_item
+ require "google/ads/google_ads/v3/services/extension_feed_item_service_pb.rb"
+ Google::Ads::GoogleAds::V3::Services::ExtensionFeedItemOperation.new
+ end
+
# Create a new FeedItemOperation
#
# @return [Google::Ads::GoogleAds::V3::Services::FeedItemOperation] the operation
def self.feed_item
require "google/ads/google_ads/v3/services/feed_item_service_pb.rb"
@@ -338,32 +362,24 @@
def self.remarketing_action
require "google/ads/google_ads/v3/services/remarketing_action_service_pb.rb"
Google::Ads::GoogleAds::V3::Services::RemarketingActionOperation.new
end
- # Create a new UserListOperation
- #
- # @return [Google::Ads::GoogleAds::V3::Services::UserListOperation] the operation
- def self.user_list
- require "google/ads/google_ads/v3/services/user_list_service_pb.rb"
- Google::Ads::GoogleAds::V3::Services::UserListOperation.new
- end
-
# Create a new MutateOperation
#
# @return [Google::Ads::GoogleAds::V3::Services::MutateOperation] the operation
def self.mutate
require "google/ads/google_ads/v3/services/google_ads_service_pb.rb"
Google::Ads::GoogleAds::V3::Services::MutateOperation.new
end
- # Create a new CustomerClientLinkOperation
+ # Create a new OfflineUserDataJobOperation
#
- # @return [Google::Ads::GoogleAds::V3::Services::CustomerClientLinkOperation] the operation
- def self.customer_client_link
- require "google/ads/google_ads/v3/services/customer_client_link_service_pb.rb"
- Google::Ads::GoogleAds::V3::Services::CustomerClientLinkOperation.new
+ # @return [Google::Ads::GoogleAds::V3::Services::OfflineUserDataJobOperation] the operation
+ def self.offline_user_data_job
+ require "google/ads/google_ads/v3/services/offline_user_data_job_service_pb.rb"
+ Google::Ads::GoogleAds::V3::Services::OfflineUserDataJobOperation.new
end
# Create a new UserDataOperation
#
# @return [Google::Ads::GoogleAds::V3::Services::UserDataOperation] the operation
@@ -386,18 +402,10 @@
def self.keyword_plan_negative_keyword
require "google/ads/google_ads/v3/services/keyword_plan_negative_keyword_service_pb.rb"
Google::Ads::GoogleAds::V3::Services::KeywordPlanNegativeKeywordOperation.new
end
- # Create a new KeywordPlanOperation
- #
- # @return [Google::Ads::GoogleAds::V3::Services::KeywordPlanOperation] the operation
- def self.keyword_plan
- require "google/ads/google_ads/v3/services/keyword_plan_service_pb.rb"
- Google::Ads::GoogleAds::V3::Services::KeywordPlanOperation.new
- end
-
# Create a new KeywordPlanKeywordOperation
#
# @return [Google::Ads::GoogleAds::V3::Services::KeywordPlanKeywordOperation] the operation
def self.keyword_plan_keyword
require "google/ads/google_ads/v3/services/keyword_plan_keyword_service_pb.rb"
@@ -410,10 +418,18 @@
def self.keyword_plan_campaign
require "google/ads/google_ads/v3/services/keyword_plan_campaign_service_pb.rb"
Google::Ads::GoogleAds::V3::Services::KeywordPlanCampaignOperation.new
end
+ # Create a new AccountBudgetProposalOperation
+ #
+ # @return [Google::Ads::GoogleAds::V3::Services::AccountBudgetProposalOperation] the operation
+ def self.account_budget_proposal
+ require "google/ads/google_ads/v3/services/account_budget_proposal_service_pb.rb"
+ Google::Ads::GoogleAds::V3::Services::AccountBudgetProposalOperation.new
+ end
+
# Create a new ApplyRecommendationOperation
#
# @return [Google::Ads::GoogleAds::V3::Services::ApplyRecommendationOperation] the operation
def self.apply_recommendation
require "google/ads/google_ads/v3/services/recommendation_service_pb.rb"
@@ -426,50 +442,34 @@
def self.dismiss_recommendation
require "google/ads/google_ads/v3/services/recommendation_service_pb.rb"
Google::Ads::GoogleAds::V3::Services::DismissRecommendationRequest::DismissRecommendationOperation.new
end
- # Create a new AccountBudgetProposalOperation
+ # Create a new MerchantCenterLinkOperation
#
- # @return [Google::Ads::GoogleAds::V3::Services::AccountBudgetProposalOperation] the operation
- def self.account_budget_proposal
- require "google/ads/google_ads/v3/services/account_budget_proposal_service_pb.rb"
- Google::Ads::GoogleAds::V3::Services::AccountBudgetProposalOperation.new
+ # @return [Google::Ads::GoogleAds::V3::Services::MerchantCenterLinkOperation] the operation
+ def self.merchant_center_link
+ require "google/ads/google_ads/v3/services/merchant_center_link_service_pb.rb"
+ Google::Ads::GoogleAds::V3::Services::MerchantCenterLinkOperation.new
end
- # Create a new CustomerManagerLinkOperation
- #
- # @return [Google::Ads::GoogleAds::V3::Services::CustomerManagerLinkOperation] the operation
- def self.customer_manager_link
- require "google/ads/google_ads/v3/services/customer_manager_link_service_pb.rb"
- Google::Ads::GoogleAds::V3::Services::CustomerManagerLinkOperation.new
- end
-
# Create a new BillingSetupOperation
#
# @return [Google::Ads::GoogleAds::V3::Services::BillingSetupOperation] the operation
def self.billing_setup
require "google/ads/google_ads/v3/services/billing_setup_service_pb.rb"
Google::Ads::GoogleAds::V3::Services::BillingSetupOperation.new
end
- # Create a new MerchantCenterLinkOperation
+ # Create a new KeywordPlanOperation
#
- # @return [Google::Ads::GoogleAds::V3::Services::MerchantCenterLinkOperation] the operation
- def self.merchant_center_link
- require "google/ads/google_ads/v3/services/merchant_center_link_service_pb.rb"
- Google::Ads::GoogleAds::V3::Services::MerchantCenterLinkOperation.new
+ # @return [Google::Ads::GoogleAds::V3::Services::KeywordPlanOperation] the operation
+ def self.keyword_plan
+ require "google/ads/google_ads/v3/services/keyword_plan_service_pb.rb"
+ Google::Ads::GoogleAds::V3::Services::KeywordPlanOperation.new
end
- # Create a new OfflineUserDataJobOperation
- #
- # @return [Google::Ads::GoogleAds::V3::Services::OfflineUserDataJobOperation] the operation
- def self.offline_user_data_job
- require "google/ads/google_ads/v3/services/offline_user_data_job_service_pb.rb"
- Google::Ads::GoogleAds::V3::Services::OfflineUserDataJobOperation.new
- end
-
# Get a reference module containing convenience methods for creating
# resources
#
# @return [Google::Ads::GoogleAds::Factories::V3::Operations::CreateResource]
def self.create_resource
@@ -491,30 +491,30 @@
def self.remove_resource
RemoveResource
end
module CreateResource
- # A convenience method for creating an AdGroupCriterionLabelOperation instance with
- # its "create" field prepopulated with an AdGroupCriterionLabel instance.
+ # A convenience method for creating an CustomerClientLinkOperation instance with
+ # its "create" field prepopulated with an CustomerClientLink instance.
#
- # @overload ad_group_criterion_label
- # creates an operation instance, yielding a newly fabricated AdGroupCriterionLabel
+ # @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 ad_group_criterion_label(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::V3::Resources::AdGroupCriterionLabel]
+ # @param res [Google::Ads::GoogleAds::V3::Resources::CustomerClientLink]
# a resource instance to be used for creation in this operation.
#
- # @return [Google::Ads::GoogleAds::V3::Services::AdGroupCriterionLabelOperation] instance that will create the resource
- def self.ad_group_criterion_label(res = nil, &blk)
- require "google/ads/google_ads/v3/services/ad_group_criterion_label_service_pb.rb"
- op = Google::Ads::GoogleAds::V3::Services::AdGroupCriterionLabelOperation.new
+ # @return [Google::Ads::GoogleAds::V3::Services::CustomerClientLinkOperation] instance that will create the resource
+ def self.customer_client_link(res = nil, &blk)
+ require "google/ads/google_ads/v3/services/customer_client_link_service_pb.rb"
+ op = Google::Ads::GoogleAds::V3::Services::CustomerClientLinkOperation.new
if !res.nil?
op["create"] = res
elsif !blk.nil?
- op["create"] = Factories::V3::Resources.ad_group_criterion_label(&blk)
+ op["create"] = Factories::V3::Resources.customer_client_link(&blk)
end
op
end
@@ -641,35 +641,10 @@
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::V3::Resources::ExtensionFeedItem]
- # a resource instance to be used for creation in this operation.
- #
- # @return [Google::Ads::GoogleAds::V3::Services::ExtensionFeedItemOperation] instance that will create the resource
- def self.extension_feed_item(res = nil, &blk)
- require "google/ads/google_ads/v3/services/extension_feed_item_service_pb.rb"
- op = Google::Ads::GoogleAds::V3::Services::ExtensionFeedItemOperation.new
- if !res.nil?
- op["create"] = res
- elsif !blk.nil?
- op["create"] = Factories::V3::Resources.extension_feed_item(&blk)
- end
-
- op
- end
-
# A convenience method for creating an CampaignBidModifierOperation instance with
# its "create" field prepopulated with an CampaignBidModifier instance.
#
# @overload campaign_bid_modifier
# creates an operation instance, yielding a newly fabricated CampaignBidModifier
@@ -716,10 +691,35 @@
end
op
end
+ # A convenience method for creating an UserListOperation instance with
+ # its "create" field prepopulated with an UserList instance.
+ #
+ # @overload user_list
+ # creates an operation instance, yielding a newly fabricated UserList
+ # which can be used for setting attributes on the newly created resource
+ # @overload user_list(res)
+ # creates an operation instance, with the resource to be created
+ # set to the passed value (res)
+ # @param res [Google::Ads::GoogleAds::V3::Resources::UserList]
+ # a resource instance to be used for creation in this operation.
+ #
+ # @return [Google::Ads::GoogleAds::V3::Services::UserListOperation] instance that will create the resource
+ def self.user_list(res = nil, &blk)
+ require "google/ads/google_ads/v3/services/user_list_service_pb.rb"
+ op = Google::Ads::GoogleAds::V3::Services::UserListOperation.new
+ if !res.nil?
+ op["create"] = res
+ elsif !blk.nil?
+ op["create"] = Factories::V3::Resources.user_list(&blk)
+ end
+
+ op
+ end
+
# A convenience method for creating an SharedSetOperation instance with
# its "create" field prepopulated with an SharedSet instance.
#
# @overload shared_set
# creates an operation instance, yielding a newly fabricated SharedSet
@@ -741,30 +741,30 @@
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 AdGroupCriterionLabelOperation instance with
+ # its "create" field prepopulated with an AdGroupCriterionLabel instance.
#
- # @overload campaign_feed
- # creates an operation instance, yielding a newly fabricated CampaignFeed
+ # @overload ad_group_criterion_label
+ # creates an operation instance, yielding a newly fabricated AdGroupCriterionLabel
# which can be used for setting attributes on the newly created resource
- # @overload campaign_feed(res)
+ # @overload ad_group_criterion_label(res)
# creates an operation instance, with the resource to be created
# set to the passed value (res)
- # @param res [Google::Ads::GoogleAds::V3::Resources::CampaignFeed]
+ # @param res [Google::Ads::GoogleAds::V3::Resources::AdGroupCriterionLabel]
# a resource instance to be used for creation in this operation.
#
- # @return [Google::Ads::GoogleAds::V3::Services::CampaignFeedOperation] instance that will create the resource
- def self.campaign_feed(res = nil, &blk)
- require "google/ads/google_ads/v3/services/campaign_feed_service_pb.rb"
- op = Google::Ads::GoogleAds::V3::Services::CampaignFeedOperation.new
+ # @return [Google::Ads::GoogleAds::V3::Services::AdGroupCriterionLabelOperation] instance that will create the resource
+ def self.ad_group_criterion_label(res = nil, &blk)
+ require "google/ads/google_ads/v3/services/ad_group_criterion_label_service_pb.rb"
+ op = Google::Ads::GoogleAds::V3::Services::AdGroupCriterionLabelOperation.new
if !res.nil?
op["create"] = res
elsif !blk.nil?
- op["create"] = Factories::V3::Resources.campaign_feed(&blk)
+ op["create"] = Factories::V3::Resources.ad_group_criterion_label(&blk)
end
op
end
@@ -1116,10 +1116,35 @@
end
op
end
+ # A convenience method for creating an CampaignFeedOperation instance with
+ # its "create" field prepopulated with an CampaignFeed instance.
+ #
+ # @overload campaign_feed
+ # creates an operation instance, yielding a newly fabricated CampaignFeed
+ # which can be used for setting attributes on the newly created resource
+ # @overload campaign_feed(res)
+ # creates an operation instance, with the resource to be created
+ # set to the passed value (res)
+ # @param res [Google::Ads::GoogleAds::V3::Resources::CampaignFeed]
+ # a resource instance to be used for creation in this operation.
+ #
+ # @return [Google::Ads::GoogleAds::V3::Services::CampaignFeedOperation] instance that will create the resource
+ def self.campaign_feed(res = nil, &blk)
+ require "google/ads/google_ads/v3/services/campaign_feed_service_pb.rb"
+ op = Google::Ads::GoogleAds::V3::Services::CampaignFeedOperation.new
+ if !res.nil?
+ op["create"] = res
+ elsif !blk.nil?
+ op["create"] = Factories::V3::Resources.campaign_feed(&blk)
+ end
+
+ op
+ end
+
# A convenience method for creating an CampaignLabelOperation instance with
# its "create" field prepopulated with an CampaignLabel instance.
#
# @overload campaign_label
# creates an operation instance, yielding a newly fabricated CampaignLabel
@@ -1291,10 +1316,35 @@
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::V3::Resources::ExtensionFeedItem]
+ # a resource instance to be used for creation in this operation.
+ #
+ # @return [Google::Ads::GoogleAds::V3::Services::ExtensionFeedItemOperation] instance that will create the resource
+ def self.extension_feed_item(res = nil, &blk)
+ require "google/ads/google_ads/v3/services/extension_feed_item_service_pb.rb"
+ op = Google::Ads::GoogleAds::V3::Services::ExtensionFeedItemOperation.new
+ if !res.nil?
+ op["create"] = res
+ elsif !blk.nil?
+ op["create"] = Factories::V3::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
@@ -1416,60 +1466,35 @@
end
op
end
- # A convenience method for creating an UserListOperation instance with
- # its "create" field prepopulated with an UserList instance.
+ # A convenience method for creating an OfflineUserDataJobOperation instance with
+ # its "create" field prepopulated with an UserData instance.
#
- # @overload user_list
- # creates an operation instance, yielding a newly fabricated UserList
+ # @overload offline_user_data_job
+ # creates an operation instance, yielding a newly fabricated UserData
# which can be used for setting attributes on the newly created resource
- # @overload user_list(res)
+ # @overload offline_user_data_job(res)
# creates an operation instance, with the resource to be created
# set to the passed value (res)
- # @param res [Google::Ads::GoogleAds::V3::Resources::UserList]
+ # @param res [Google::Ads::GoogleAds::V3::Common::UserData]
# a resource instance to be used for creation in this operation.
#
- # @return [Google::Ads::GoogleAds::V3::Services::UserListOperation] instance that will create the resource
- def self.user_list(res = nil, &blk)
- require "google/ads/google_ads/v3/services/user_list_service_pb.rb"
- op = Google::Ads::GoogleAds::V3::Services::UserListOperation.new
+ # @return [Google::Ads::GoogleAds::V3::Services::OfflineUserDataJobOperation] instance that will create the resource
+ def self.offline_user_data_job(res = nil, &blk)
+ require "google/ads/google_ads/v3/services/offline_user_data_job_service_pb.rb"
+ op = Google::Ads::GoogleAds::V3::Services::OfflineUserDataJobOperation.new
if !res.nil?
op["create"] = res
elsif !blk.nil?
- op["create"] = Factories::V3::Resources.user_list(&blk)
+ op["create"] = Factories::V3::Resources.user_data(&blk)
end
op
end
- # A convenience method for creating an CustomerClientLinkOperation instance with
- # its "create" field prepopulated with an CustomerClientLink instance.
- #
- # @overload customer_client_link
- # creates an operation instance, yielding a newly fabricated CustomerClientLink
- # which can be used for setting attributes on the newly created resource
- # @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::V3::Resources::CustomerClientLink]
- # a resource instance to be used for creation in this operation.
- #
- # @return [Google::Ads::GoogleAds::V3::Services::CustomerClientLinkOperation] instance that will create the resource
- def self.customer_client_link(res = nil, &blk)
- require "google/ads/google_ads/v3/services/customer_client_link_service_pb.rb"
- op = Google::Ads::GoogleAds::V3::Services::CustomerClientLinkOperation.new
- if !res.nil?
- op["create"] = res
- elsif !blk.nil?
- op["create"] = Factories::V3::Resources.customer_client_link(&blk)
- end
-
- op
- end
-
# A convenience method for creating an UserDataOperation instance with
# its "create" field prepopulated with an UserData instance.
#
# @overload user_data
# creates an operation instance, yielding a newly fabricated UserData
@@ -1541,35 +1566,10 @@
end
op
end
- # A convenience method for creating an KeywordPlanOperation instance with
- # its "create" field prepopulated with an KeywordPlan instance.
- #
- # @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 keyword_plan(res)
- # creates an operation instance, with the resource to be created
- # set to the passed value (res)
- # @param res [Google::Ads::GoogleAds::V3::Resources::KeywordPlan]
- # a resource instance to be used for creation in this operation.
- #
- # @return [Google::Ads::GoogleAds::V3::Services::KeywordPlanOperation] instance that will create the resource
- def self.keyword_plan(res = nil, &blk)
- require "google/ads/google_ads/v3/services/keyword_plan_service_pb.rb"
- op = Google::Ads::GoogleAds::V3::Services::KeywordPlanOperation.new
- if !res.nil?
- op["create"] = res
- elsif !blk.nil?
- op["create"] = Factories::V3::Resources.keyword_plan(&blk)
- end
-
- op
- end
-
# A convenience method for creating an KeywordPlanKeywordOperation instance with
# its "create" field prepopulated with an KeywordPlanKeyword instance.
#
# @overload keyword_plan_keyword
# creates an operation instance, yielding a newly fabricated KeywordPlanKeyword
@@ -1666,37 +1666,76 @@
end
op
end
- # A convenience method for creating an OfflineUserDataJobOperation instance with
- # its "create" field prepopulated with an UserData instance.
+ # A convenience method for creating an KeywordPlanOperation instance with
+ # its "create" field prepopulated with an KeywordPlan instance.
#
- # @overload offline_user_data_job
- # creates an operation instance, yielding a newly fabricated UserData
+ # @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 offline_user_data_job(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::V3::Common::UserData]
+ # @param res [Google::Ads::GoogleAds::V3::Resources::KeywordPlan]
# a resource instance to be used for creation in this operation.
#
- # @return [Google::Ads::GoogleAds::V3::Services::OfflineUserDataJobOperation] instance that will create the resource
- def self.offline_user_data_job(res = nil, &blk)
- require "google/ads/google_ads/v3/services/offline_user_data_job_service_pb.rb"
- op = Google::Ads::GoogleAds::V3::Services::OfflineUserDataJobOperation.new
+ # @return [Google::Ads::GoogleAds::V3::Services::KeywordPlanOperation] instance that will create the resource
+ def self.keyword_plan(res = nil, &blk)
+ require "google/ads/google_ads/v3/services/keyword_plan_service_pb.rb"
+ op = Google::Ads::GoogleAds::V3::Services::KeywordPlanOperation.new
if !res.nil?
op["create"] = res
elsif !blk.nil?
- op["create"] = Factories::V3::Resources.user_data(&blk)
+ op["create"] = Factories::V3::Resources.keyword_plan(&blk)
end
op
end
end
module UpdateResource
+ # 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 #customer_client_link(path, &blk)
+ # @param path [String] a resource path for the resource to update
+ # @yield [Google::Ads::GoogleAds::V3::Resources::CustomerClientLink] 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::V3::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::V3::Services::CustomerClientLinkOperation] the operation instance to update the resource
+ def self.customer_client_link(resource_or_path, &blk)
+ require "google/ads/google_ads/v3/services/customer_client_link_service_pb.rb"
+ res = case resource_or_path
+ when Google::Ads::GoogleAds::V3::Resources::CustomerClientLink
+ resource_or_path
+ # got a resource path
+ when String
+ obj = Google::Ads::GoogleAds::V3::Resources::CustomerClientLink.new
+ obj.resource_name = resource_or_path
+ obj
+ else
+ unless Google::Ads::GoogleAds::V3::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::V3::Services::CustomerClientLinkOperation.new
+ 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
# its "update_mask" field populated as needed to send the updates to the API.
#
# @overload #custom_interest(path, &blk)
@@ -1771,83 +1810,83 @@
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 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 #extension_feed_item(path, &blk)
+ # @overload #campaign_bid_modifier(path, &blk)
# @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V3::Resources::ExtensionFeedItem] a new instance of the resource for this update operation, on
+ # @yield [Google::Ads::GoogleAds::V3::Resources::CampaignBidModifier] 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::V3::Resources::ExtensionFeedItem] a resource instance to update
+ # @overload #campaign_bid_modifier(resource, &blk)
+ # @param resource [Google::Ads::GoogleAds::V3::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::V3::Services::ExtensionFeedItemOperation] the operation instance to update the resource
- def self.extension_feed_item(resource_or_path, &blk)
- require "google/ads/google_ads/v3/services/extension_feed_item_service_pb.rb"
+ # @return [Google::Ads::GoogleAds::V3::Services::CampaignBidModifierOperation] the operation instance to update the resource
+ def self.campaign_bid_modifier(resource_or_path, &blk)
+ require "google/ads/google_ads/v3/services/campaign_bid_modifier_service_pb.rb"
res = case resource_or_path
- when Google::Ads::GoogleAds::V3::Resources::ExtensionFeedItem
+ when Google::Ads::GoogleAds::V3::Resources::CampaignBidModifier
resource_or_path
# got a resource path
when String
- obj = Google::Ads::GoogleAds::V3::Resources::ExtensionFeedItem.new
+ obj = Google::Ads::GoogleAds::V3::Resources::CampaignBidModifier.new
obj.resource_name = resource_or_path
obj
else
- unless Google::Ads::GoogleAds::V3::Resources::ExtensionFeedItem === res
+ unless Google::Ads::GoogleAds::V3::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::V3::Services::ExtensionFeedItemOperation.new
+ op = Google::Ads::GoogleAds::V3::Services::CampaignBidModifierOperation.new
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
op["update"] = res
op
end
- # A convenience method for creating an CampaignBidModifierOperation instance with
- # its "update" field prepopulated with an CampaignBidModifier instance, and
+ # A convenience method for creating an 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 #campaign_bid_modifier(path, &blk)
+ # @overload #customer_manager_link(path, &blk)
# @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V3::Resources::CampaignBidModifier] a new instance of the resource for this update operation, on
+ # @yield [Google::Ads::GoogleAds::V3::Resources::CustomerManagerLink] 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::V3::Resources::CampaignBidModifier] a resource instance to update
+ # @overload #customer_manager_link(resource, &blk)
+ # @param resource [Google::Ads::GoogleAds::V3::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::V3::Services::CampaignBidModifierOperation] the operation instance to update the resource
- def self.campaign_bid_modifier(resource_or_path, &blk)
- require "google/ads/google_ads/v3/services/campaign_bid_modifier_service_pb.rb"
+ # @return [Google::Ads::GoogleAds::V3::Services::CustomerManagerLinkOperation] the operation instance to update the resource
+ def self.customer_manager_link(resource_or_path, &blk)
+ require "google/ads/google_ads/v3/services/customer_manager_link_service_pb.rb"
res = case resource_or_path
- when Google::Ads::GoogleAds::V3::Resources::CampaignBidModifier
+ when Google::Ads::GoogleAds::V3::Resources::CustomerManagerLink
resource_or_path
# got a resource path
when String
- obj = Google::Ads::GoogleAds::V3::Resources::CampaignBidModifier.new
+ obj = Google::Ads::GoogleAds::V3::Resources::CustomerManagerLink.new
obj.resource_name = resource_or_path
obj
else
- unless Google::Ads::GoogleAds::V3::Resources::CampaignBidModifier === res
+ unless Google::Ads::GoogleAds::V3::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::V3::Services::CampaignBidModifierOperation.new
+ op = Google::Ads::GoogleAds::V3::Services::CustomerManagerLinkOperation.new
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
op["update"] = res
op
end
@@ -1888,10 +1927,49 @@
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
+ # its "update_mask" field populated as needed to send the updates to the API.
+ #
+ # @overload #user_list(path, &blk)
+ # @param path [String] a resource path for the resource to update
+ # @yield [Google::Ads::GoogleAds::V3::Resources::UserList] 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::V3::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::V3::Services::UserListOperation] the operation instance to update the resource
+ def self.user_list(resource_or_path, &blk)
+ require "google/ads/google_ads/v3/services/user_list_service_pb.rb"
+ res = case resource_or_path
+ when Google::Ads::GoogleAds::V3::Resources::UserList
+ resource_or_path
+ # got a resource path
+ when String
+ obj = Google::Ads::GoogleAds::V3::Resources::UserList.new
+ obj.resource_name = resource_or_path
+ obj
+ else
+ unless Google::Ads::GoogleAds::V3::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::V3::Services::UserListOperation.new
+ 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
# its "update_mask" field populated as needed to send the updates to the API.
#
# @overload #customer(path, &blk)
@@ -1966,83 +2044,83 @@
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
op["update"] = res
op
end
- # A convenience method for creating an CampaignFeedOperation instance with
- # its "update" field prepopulated with an CampaignFeed instance, and
+ # A convenience method for creating an 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 #campaign_feed(path, &blk)
+ # @overload #label(path, &blk)
# @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V3::Resources::CampaignFeed] a new instance of the resource for this update operation, on
+ # @yield [Google::Ads::GoogleAds::V3::Resources::Label] a new instance of the resource for this update operation, on
# which fields can be set to update
#
- # @overload #campaign_feed(resource, &blk)
- # @param resource [Google::Ads::GoogleAds::V3::Resources::CampaignFeed] a resource instance to update
+ # @overload #label(resource, &blk)
+ # @param resource [Google::Ads::GoogleAds::V3::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::V3::Services::CampaignFeedOperation] the operation instance to update the resource
- def self.campaign_feed(resource_or_path, &blk)
- require "google/ads/google_ads/v3/services/campaign_feed_service_pb.rb"
+ # @return [Google::Ads::GoogleAds::V3::Services::LabelOperation] the operation instance to update the resource
+ def self.label(resource_or_path, &blk)
+ require "google/ads/google_ads/v3/services/label_service_pb.rb"
res = case resource_or_path
- when Google::Ads::GoogleAds::V3::Resources::CampaignFeed
+ when Google::Ads::GoogleAds::V3::Resources::Label
resource_or_path
# got a resource path
when String
- obj = Google::Ads::GoogleAds::V3::Resources::CampaignFeed.new
+ obj = Google::Ads::GoogleAds::V3::Resources::Label.new
obj.resource_name = resource_or_path
obj
else
- unless Google::Ads::GoogleAds::V3::Resources::CampaignFeed === res
+ unless Google::Ads::GoogleAds::V3::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::V3::Services::CampaignFeedOperation.new
+ op = Google::Ads::GoogleAds::V3::Services::LabelOperation.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 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 #label(path, &blk)
+ # @overload #ad(path, &blk)
# @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V3::Resources::Label] a new instance of the resource for this update operation, on
+ # @yield [Google::Ads::GoogleAds::V3::Resources::Ad] 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::V3::Resources::Label] a resource instance to update
+ # @overload #ad(resource, &blk)
+ # @param resource [Google::Ads::GoogleAds::V3::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::V3::Services::LabelOperation] the operation instance to update the resource
- def self.label(resource_or_path, &blk)
- require "google/ads/google_ads/v3/services/label_service_pb.rb"
+ # @return [Google::Ads::GoogleAds::V3::Services::AdOperation] the operation instance to update the resource
+ def self.ad(resource_or_path, &blk)
+ require "google/ads/google_ads/v3/services/ad_service_pb.rb"
res = case resource_or_path
- when Google::Ads::GoogleAds::V3::Resources::Label
+ when Google::Ads::GoogleAds::V3::Resources::Ad
resource_or_path
# got a resource path
when String
- obj = Google::Ads::GoogleAds::V3::Resources::Label.new
+ obj = Google::Ads::GoogleAds::V3::Resources::Ad.new
obj.resource_name = resource_or_path
obj
else
- unless Google::Ads::GoogleAds::V3::Resources::Label === res
+ unless Google::Ads::GoogleAds::V3::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::V3::Services::LabelOperation.new
+ op = Google::Ads::GoogleAds::V3::Services::AdOperation.new
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
op["update"] = res
op
end
@@ -2278,49 +2356,10 @@
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
- # its "update_mask" field populated as needed to send the updates to the API.
- #
- # @overload #ad(path, &blk)
- # @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V3::Resources::Ad] 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::V3::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::V3::Services::AdOperation] the operation instance to update the resource
- def self.ad(resource_or_path, &blk)
- require "google/ads/google_ads/v3/services/ad_service_pb.rb"
- res = case resource_or_path
- when Google::Ads::GoogleAds::V3::Resources::Ad
- resource_or_path
- # got a resource path
- when String
- obj = Google::Ads::GoogleAds::V3::Resources::Ad.new
- obj.resource_name = resource_or_path
- obj
- else
- unless Google::Ads::GoogleAds::V3::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::V3::Services::AdOperation.new
- op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
- op["update"] = res
- op
- end
-
# A convenience method for creating an BiddingStrategyOperation instance with
# its "update" field prepopulated with an BiddingStrategy instance, and
# its "update_mask" field populated as needed to send the updates to the API.
#
# @overload #bidding_strategy(path, &blk)
@@ -2512,10 +2551,49 @@
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
op["update"] = res
op
end
+ # A convenience method for creating an CampaignFeedOperation instance with
+ # its "update" field prepopulated with an CampaignFeed instance, and
+ # its "update_mask" field populated as needed to send the updates to the API.
+ #
+ # @overload #campaign_feed(path, &blk)
+ # @param path [String] a resource path for the resource to update
+ # @yield [Google::Ads::GoogleAds::V3::Resources::CampaignFeed] a new instance of the resource for this update operation, on
+ # which fields can be set to update
+ #
+ # @overload #campaign_feed(resource, &blk)
+ # @param resource [Google::Ads::GoogleAds::V3::Resources::CampaignFeed] a resource instance to update
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
+ # @return [Google::Ads::GoogleAds::V3::Services::CampaignFeedOperation] the operation instance to update the resource
+ def self.campaign_feed(resource_or_path, &blk)
+ require "google/ads/google_ads/v3/services/campaign_feed_service_pb.rb"
+ res = case resource_or_path
+ when Google::Ads::GoogleAds::V3::Resources::CampaignFeed
+ resource_or_path
+ # got a resource path
+ when String
+ obj = Google::Ads::GoogleAds::V3::Resources::CampaignFeed.new
+ obj.resource_name = resource_or_path
+ obj
+ else
+ unless Google::Ads::GoogleAds::V3::Resources::CampaignFeed === res
+ raise ArgumentError.new(
+ "Called #{__method__} with instance of wrong type:"\
+ " #{res.class} want #{operation.update_class}"\
+ " or String representing resource name"
+ )
+ end
+ end
+
+ op = Google::Ads::GoogleAds::V3::Services::CampaignFeedOperation.new
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
+ op["update"] = res
+ op
+ end
+
# A convenience method for creating an CampaignOperation instance with
# its "update" field prepopulated with an Campaign instance, and
# its "update_mask" field populated as needed to send the updates to the API.
#
# @overload #campaign(path, &blk)
@@ -2668,10 +2746,49 @@
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
+ # its "update_mask" field populated as needed to send the updates to the API.
+ #
+ # @overload #extension_feed_item(path, &blk)
+ # @param path [String] a resource path for the resource to update
+ # @yield [Google::Ads::GoogleAds::V3::Resources::ExtensionFeedItem] 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::V3::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::V3::Services::ExtensionFeedItemOperation] the operation instance to update the resource
+ def self.extension_feed_item(resource_or_path, &blk)
+ require "google/ads/google_ads/v3/services/extension_feed_item_service_pb.rb"
+ res = case resource_or_path
+ when Google::Ads::GoogleAds::V3::Resources::ExtensionFeedItem
+ resource_or_path
+ # got a resource path
+ when String
+ obj = Google::Ads::GoogleAds::V3::Resources::ExtensionFeedItem.new
+ obj.resource_name = resource_or_path
+ obj
+ else
+ unless Google::Ads::GoogleAds::V3::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::V3::Services::ExtensionFeedItemOperation.new
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
+ op["update"] = res
+ op
+ end
+
# A convenience method for creating an FeedItemOperation instance with
# its "update" field prepopulated with an FeedItem instance, and
# its "update_mask" field populated as needed to send the updates to the API.
#
# @overload #feed_item(path, &blk)
@@ -2785,88 +2902,10 @@
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
- # its "update_mask" field populated as needed to send the updates to the API.
- #
- # @overload #user_list(path, &blk)
- # @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V3::Resources::UserList] 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::V3::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::V3::Services::UserListOperation] the operation instance to update the resource
- def self.user_list(resource_or_path, &blk)
- require "google/ads/google_ads/v3/services/user_list_service_pb.rb"
- res = case resource_or_path
- when Google::Ads::GoogleAds::V3::Resources::UserList
- resource_or_path
- # got a resource path
- when String
- obj = Google::Ads::GoogleAds::V3::Resources::UserList.new
- obj.resource_name = resource_or_path
- obj
- else
- unless Google::Ads::GoogleAds::V3::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::V3::Services::UserListOperation.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
- # its "update_mask" field populated as needed to send the updates to the API.
- #
- # @overload #customer_client_link(path, &blk)
- # @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V3::Resources::CustomerClientLink] 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::V3::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::V3::Services::CustomerClientLinkOperation] the operation instance to update the resource
- def self.customer_client_link(resource_or_path, &blk)
- require "google/ads/google_ads/v3/services/customer_client_link_service_pb.rb"
- res = case resource_or_path
- when Google::Ads::GoogleAds::V3::Resources::CustomerClientLink
- resource_or_path
- # got a resource path
- when String
- obj = Google::Ads::GoogleAds::V3::Resources::CustomerClientLink.new
- obj.resource_name = resource_or_path
- obj
- else
- unless Google::Ads::GoogleAds::V3::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::V3::Services::CustomerClientLinkOperation.new
- op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
- op["update"] = res
- op
- end
-
# A convenience method for creating an KeywordPlanAdGroupOperation instance with
# its "update" field prepopulated with an KeywordPlanAdGroup instance, and
# its "update_mask" field populated as needed to send the updates to the API.
#
# @overload #keyword_plan_ad_group(path, &blk)
@@ -2941,49 +2980,10 @@
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
- # its "update_mask" field populated as needed to send the updates to the API.
- #
- # @overload #keyword_plan(path, &blk)
- # @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V3::Resources::KeywordPlan] 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::V3::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::V3::Services::KeywordPlanOperation] the operation instance to update the resource
- def self.keyword_plan(resource_or_path, &blk)
- require "google/ads/google_ads/v3/services/keyword_plan_service_pb.rb"
- res = case resource_or_path
- when Google::Ads::GoogleAds::V3::Resources::KeywordPlan
- resource_or_path
- # got a resource path
- when String
- obj = Google::Ads::GoogleAds::V3::Resources::KeywordPlan.new
- obj.resource_name = resource_or_path
- obj
- else
- unless Google::Ads::GoogleAds::V3::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::V3::Services::KeywordPlanOperation.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
# its "update_mask" field populated as needed to send the updates to the API.
#
# @overload #keyword_plan_keyword(path, &blk)
@@ -3058,83 +3058,83 @@
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
+ # 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 #customer_manager_link(path, &blk)
+ # @overload #merchant_center_link(path, &blk)
# @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V3::Resources::CustomerManagerLink] a new instance of the resource for this update operation, on
+ # @yield [Google::Ads::GoogleAds::V3::Resources::MerchantCenterLink] 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::V3::Resources::CustomerManagerLink] a resource instance to update
+ # @overload #merchant_center_link(resource, &blk)
+ # @param resource [Google::Ads::GoogleAds::V3::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::V3::Services::CustomerManagerLinkOperation] the operation instance to update the resource
- def self.customer_manager_link(resource_or_path, &blk)
- require "google/ads/google_ads/v3/services/customer_manager_link_service_pb.rb"
+ # @return [Google::Ads::GoogleAds::V3::Services::MerchantCenterLinkOperation] the operation instance to update the resource
+ def self.merchant_center_link(resource_or_path, &blk)
+ require "google/ads/google_ads/v3/services/merchant_center_link_service_pb.rb"
res = case resource_or_path
- when Google::Ads::GoogleAds::V3::Resources::CustomerManagerLink
+ when Google::Ads::GoogleAds::V3::Resources::MerchantCenterLink
resource_or_path
# got a resource path
when String
- obj = Google::Ads::GoogleAds::V3::Resources::CustomerManagerLink.new
+ obj = Google::Ads::GoogleAds::V3::Resources::MerchantCenterLink.new
obj.resource_name = resource_or_path
obj
else
- unless Google::Ads::GoogleAds::V3::Resources::CustomerManagerLink === res
+ unless Google::Ads::GoogleAds::V3::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::V3::Services::CustomerManagerLinkOperation.new
+ op = Google::Ads::GoogleAds::V3::Services::MerchantCenterLinkOperation.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 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 #merchant_center_link(path, &blk)
+ # @overload #keyword_plan(path, &blk)
# @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V3::Resources::MerchantCenterLink] a new instance of the resource for this update operation, on
+ # @yield [Google::Ads::GoogleAds::V3::Resources::KeywordPlan] 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::V3::Resources::MerchantCenterLink] a resource instance to update
+ # @overload #keyword_plan(resource, &blk)
+ # @param resource [Google::Ads::GoogleAds::V3::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::V3::Services::MerchantCenterLinkOperation] the operation instance to update the resource
- def self.merchant_center_link(resource_or_path, &blk)
- require "google/ads/google_ads/v3/services/merchant_center_link_service_pb.rb"
+ # @return [Google::Ads::GoogleAds::V3::Services::KeywordPlanOperation] the operation instance to update the resource
+ def self.keyword_plan(resource_or_path, &blk)
+ require "google/ads/google_ads/v3/services/keyword_plan_service_pb.rb"
res = case resource_or_path
- when Google::Ads::GoogleAds::V3::Resources::MerchantCenterLink
+ when Google::Ads::GoogleAds::V3::Resources::KeywordPlan
resource_or_path
# got a resource path
when String
- obj = Google::Ads::GoogleAds::V3::Resources::MerchantCenterLink.new
+ obj = Google::Ads::GoogleAds::V3::Resources::KeywordPlan.new
obj.resource_name = resource_or_path
obj
else
- unless Google::Ads::GoogleAds::V3::Resources::MerchantCenterLink === res
+ unless Google::Ads::GoogleAds::V3::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::V3::Services::MerchantCenterLinkOperation.new
+ op = Google::Ads::GoogleAds::V3::Services::KeywordPlanOperation.new
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
op["update"] = res
op
end
end
@@ -3160,17 +3160,17 @@
op = Google::Ads::GoogleAds::V3::Common::TargetRestrictionOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an AdGroupCriterionLabelOperation 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.ad_group_criterion_label(path)
- require "google/ads/google_ads/v3/services/ad_group_criterion_label_service_pb.rb"
- op = Google::Ads::GoogleAds::V3::Services::AdGroupCriterionLabelOperation.new
+ def self.customer_client_link(path)
+ require "google/ads/google_ads/v3/services/customer_client_link_service_pb.rb"
+ op = Google::Ads::GoogleAds::V3::Services::CustomerClientLinkOperation.new
op["remove"] = path
op
end
# A convenience method for creationg an CustomInterestOperation instance with
@@ -3226,28 +3226,28 @@
op = Google::Ads::GoogleAds::V3::Services::AdGroupOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an ExtensionFeedItemOperation 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.extension_feed_item(path)
- require "google/ads/google_ads/v3/services/extension_feed_item_service_pb.rb"
- op = Google::Ads::GoogleAds::V3::Services::ExtensionFeedItemOperation.new
+ def self.campaign_bid_modifier(path)
+ require "google/ads/google_ads/v3/services/campaign_bid_modifier_service_pb.rb"
+ op = Google::Ads::GoogleAds::V3::Services::CampaignBidModifierOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an CampaignBidModifierOperation instance with
+ # A convenience method for creationg an CustomerManagerLinkOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
- def self.campaign_bid_modifier(path)
- require "google/ads/google_ads/v3/services/campaign_bid_modifier_service_pb.rb"
- op = Google::Ads::GoogleAds::V3::Services::CampaignBidModifierOperation.new
+ def self.customer_manager_link(path)
+ require "google/ads/google_ads/v3/services/customer_manager_link_service_pb.rb"
+ op = Google::Ads::GoogleAds::V3::Services::CustomerManagerLinkOperation.new
op["remove"] = path
op
end
# A convenience method for creationg an CampaignDraftOperation instance with
@@ -3259,10 +3259,21 @@
op = Google::Ads::GoogleAds::V3::Services::CampaignDraftOperation.new
op["remove"] = path
op
end
+ # A convenience method for creationg an UserListOperation 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.user_list(path)
+ require "google/ads/google_ads/v3/services/user_list_service_pb.rb"
+ op = Google::Ads::GoogleAds::V3::Services::UserListOperation.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)
@@ -3281,17 +3292,17 @@
op = Google::Ads::GoogleAds::V3::Services::SharedSetOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an CampaignFeedOperation instance with
+ # A convenience method for creationg an AdGroupCriterionLabelOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
- def self.campaign_feed(path)
- require "google/ads/google_ads/v3/services/campaign_feed_service_pb.rb"
- op = Google::Ads::GoogleAds::V3::Services::CampaignFeedOperation.new
+ def self.ad_group_criterion_label(path)
+ require "google/ads/google_ads/v3/services/ad_group_criterion_label_service_pb.rb"
+ op = Google::Ads::GoogleAds::V3::Services::AdGroupCriterionLabelOperation.new
op["remove"] = path
op
end
# A convenience method for creationg an LabelOperation instance with
@@ -3303,10 +3314,21 @@
op = Google::Ads::GoogleAds::V3::Services::LabelOperation.new
op["remove"] = path
op
end
+ # 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.ad(path)
+ require "google/ads/google_ads/v3/services/ad_service_pb.rb"
+ op = Google::Ads::GoogleAds::V3::Services::AdOperation.new
+ op["remove"] = path
+ op
+ end
+
# A convenience method for creationg an AdGroupAdLabelOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.ad_group_ad_label(path)
@@ -3391,21 +3413,10 @@
op = Google::Ads::GoogleAds::V3::Services::AdParameterOperation.new
op["remove"] = path
op
end
- # 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.ad(path)
- require "google/ads/google_ads/v3/services/ad_service_pb.rb"
- op = Google::Ads::GoogleAds::V3::Services::AdOperation.new
- op["remove"] = path
- op
- end
-
# A convenience method for creationg an AssetOperation 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.asset(path)
@@ -3468,10 +3479,21 @@
op = Google::Ads::GoogleAds::V3::Services::CampaignExtensionSettingOperation.new
op["remove"] = path
op
end
+ # A convenience method for creationg an CampaignFeedOperation instance with
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
+ #
+ # @param path [String] the resource name of the resource to delete.
+ def self.campaign_feed(path)
+ require "google/ads/google_ads/v3/services/campaign_feed_service_pb.rb"
+ op = Google::Ads::GoogleAds::V3::Services::CampaignFeedOperation.new
+ op["remove"] = path
+ op
+ end
+
# A convenience method for creationg an CampaignLabelOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.campaign_label(path)
@@ -3545,10 +3567,21 @@
op = Google::Ads::GoogleAds::V3::Services::CustomerLabelOperation.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/v3/services/extension_feed_item_service_pb.rb"
+ op = Google::Ads::GoogleAds::V3::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)
@@ -3600,21 +3633,10 @@
op = Google::Ads::GoogleAds::V3::Services::RemarketingActionOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an UserListOperation 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.user_list(path)
- require "google/ads/google_ads/v3/services/user_list_service_pb.rb"
- op = Google::Ads::GoogleAds::V3::Services::UserListOperation.new
- op["remove"] = path
- op
- end
-
# A convenience method for creationg an MutateOperation 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.mutate(path)
@@ -3622,17 +3644,17 @@
op = Google::Ads::GoogleAds::V3::Services::MutateOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an CustomerClientLinkOperation instance with
+ # A convenience method for creationg an OfflineUserDataJobOperation 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/v3/services/customer_client_link_service_pb.rb"
- op = Google::Ads::GoogleAds::V3::Services::CustomerClientLinkOperation.new
+ def self.offline_user_data_job(path)
+ require "google/ads/google_ads/v3/services/offline_user_data_job_service_pb.rb"
+ op = Google::Ads::GoogleAds::V3::Services::OfflineUserDataJobOperation.new
op["remove"] = path
op
end
# A convenience method for creationg an UserDataOperation instance with
@@ -3666,21 +3688,10 @@
op = Google::Ads::GoogleAds::V3::Services::KeywordPlanNegativeKeywordOperation.new
op["remove"] = path
op
end
- # 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(path)
- require "google/ads/google_ads/v3/services/keyword_plan_service_pb.rb"
- op = Google::Ads::GoogleAds::V3::Services::KeywordPlanOperation.new
- op["remove"] = path
- op
- end
-
# A convenience method for creationg an KeywordPlanKeywordOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.keyword_plan_keyword(path)
@@ -3699,10 +3710,21 @@
op = Google::Ads::GoogleAds::V3::Services::KeywordPlanCampaignOperation.new
op["remove"] = path
op
end
+ # A convenience method for creationg an AccountBudgetProposalOperation instance with
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
+ #
+ # @param path [String] the resource name of the resource to delete.
+ def self.account_budget_proposal(path)
+ require "google/ads/google_ads/v3/services/account_budget_proposal_service_pb.rb"
+ op = Google::Ads::GoogleAds::V3::Services::AccountBudgetProposalOperation.new
+ op["remove"] = path
+ op
+ end
+
# A convenience method for creationg an ApplyRecommendationOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.apply_recommendation(path)
@@ -3721,32 +3743,21 @@
op = Google::Ads::GoogleAds::V3::Services::DismissRecommendationRequest::DismissRecommendationOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an AccountBudgetProposalOperation instance with
+ # 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.account_budget_proposal(path)
- require "google/ads/google_ads/v3/services/account_budget_proposal_service_pb.rb"
- op = Google::Ads::GoogleAds::V3::Services::AccountBudgetProposalOperation.new
+ def self.merchant_center_link(path)
+ require "google/ads/google_ads/v3/services/merchant_center_link_service_pb.rb"
+ op = Google::Ads::GoogleAds::V3::Services::MerchantCenterLinkOperation.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/v3/services/customer_manager_link_service_pb.rb"
- op = Google::Ads::GoogleAds::V3::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)
@@ -3754,27 +3765,16 @@
op = Google::Ads::GoogleAds::V3::Services::BillingSetupOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an MerchantCenterLinkOperation 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.merchant_center_link(path)
- require "google/ads/google_ads/v3/services/merchant_center_link_service_pb.rb"
- op = Google::Ads::GoogleAds::V3::Services::MerchantCenterLinkOperation.new
- op["remove"] = path
- op
- end
-
- # A convenience method for creationg an OfflineUserDataJobOperation 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.offline_user_data_job(path)
- require "google/ads/google_ads/v3/services/offline_user_data_job_service_pb.rb"
- op = Google::Ads::GoogleAds::V3::Services::OfflineUserDataJobOperation.new
+ def self.keyword_plan(path)
+ require "google/ads/google_ads/v3/services/keyword_plan_service_pb.rb"
+ op = Google::Ads::GoogleAds::V3::Services::KeywordPlanOperation.new
op["remove"] = path
op
end
end
end