lib/google/ads/google_ads/factories/v6/operations.rb in google-ads-googleads-9.0.0 vs lib/google/ads/google_ads/factories/v6/operations.rb in google-ads-googleads-10.0.0
- old
+ new
@@ -2,10 +2,24 @@
module Ads
module GoogleAds
module Factories
module V6
module Operations
+ # Create a new FeedAttributeOperation
+ #
+ # @return [Google::Ads::GoogleAds::V6::Resources::FeedAttributeOperation] the operation
+ def self.feed_attribute
+ require "google/ads/google_ads/v6/resources/feed_pb"
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Resources::FeedAttributeOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Resources::FeedAttributeOperation.new
+ end
+ end
+
# Create a new TargetRestrictionOperation
#
# @return [Google::Ads::GoogleAds::V6::Common::TargetRestrictionOperation] the operation
def self.target_restriction
require "google/ads/google_ads/v6/common/targeting_setting_pb"
@@ -16,24 +30,94 @@
else
Google::Ads::GoogleAds::V6::Common::TargetRestrictionOperation.new
end
end
- # Create a new FeedAttributeOperation
+ # Create a new CustomerClientLinkOperation
#
- # @return [Google::Ads::GoogleAds::V6::Resources::FeedAttributeOperation] the operation
- def self.feed_attribute
- require "google/ads/google_ads/v6/resources/feed_pb"
+ # @return [Google::Ads::GoogleAds::V6::Services::CustomerClientLinkOperation] the operation
+ def self.customer_client_link
+ require "google/ads/google_ads/v6/services/customer_client_link_service_pb"
if block_given?
- op = Google::Ads::GoogleAds::V6::Resources::FeedAttributeOperation.new
+ op = Google::Ads::GoogleAds::V6::Services::CustomerClientLinkOperation.new
yield op
op
else
- Google::Ads::GoogleAds::V6::Resources::FeedAttributeOperation.new
+ Google::Ads::GoogleAds::V6::Services::CustomerClientLinkOperation.new
end
end
+ # Create a new CustomInterestOperation
+ #
+ # @return [Google::Ads::GoogleAds::V6::Services::CustomInterestOperation] the operation
+ def self.custom_interest
+ require "google/ads/google_ads/v6/services/custom_interest_service_pb"
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::CustomInterestOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::CustomInterestOperation.new
+ end
+ end
+
+ # Create a new CustomerNegativeCriterionOperation
+ #
+ # @return [Google::Ads::GoogleAds::V6::Services::CustomerNegativeCriterionOperation] the operation
+ def self.customer_negative_criterion
+ require "google/ads/google_ads/v6/services/customer_negative_criterion_service_pb"
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::CustomerNegativeCriterionOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::CustomerNegativeCriterionOperation.new
+ end
+ end
+
+ # Create a new SharedCriterionOperation
+ #
+ # @return [Google::Ads::GoogleAds::V6::Services::SharedCriterionOperation] the operation
+ def self.shared_criterion
+ require "google/ads/google_ads/v6/services/shared_criterion_service_pb"
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::SharedCriterionOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::SharedCriterionOperation.new
+ end
+ end
+
+ # Create a new KeywordPlanAdGroupKeywordOperation
+ #
+ # @return [Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupKeywordOperation] the operation
+ def self.keyword_plan_ad_group_keyword
+ require "google/ads/google_ads/v6/services/keyword_plan_ad_group_keyword_service_pb"
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupKeywordOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupKeywordOperation.new
+ end
+ end
+
+ # Create a new FeedMappingOperation
+ #
+ # @return [Google::Ads::GoogleAds::V6::Services::FeedMappingOperation] the operation
+ def self.feed_mapping
+ require "google/ads/google_ads/v6/services/feed_mapping_service_pb"
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::FeedMappingOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::FeedMappingOperation.new
+ end
+ end
+
# Create a new FeedItemSetLinkOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::FeedItemSetLinkOperation] the operation
def self.feed_item_set_link
require "google/ads/google_ads/v6/services/feed_item_set_link_service_pb"
@@ -44,38 +128,94 @@
else
Google::Ads::GoogleAds::V6::Services::FeedItemSetLinkOperation.new
end
end
- # Create a new CampaignBudgetOperation
+ # Create a new AdGroupOperation
#
- # @return [Google::Ads::GoogleAds::V6::Services::CampaignBudgetOperation] the operation
- def self.campaign_budget
- require "google/ads/google_ads/v6/services/campaign_budget_service_pb"
+ # @return [Google::Ads::GoogleAds::V6::Services::AdGroupOperation] the operation
+ def self.ad_group
+ require "google/ads/google_ads/v6/services/ad_group_service_pb"
if block_given?
- op = Google::Ads::GoogleAds::V6::Services::CampaignBudgetOperation.new
+ op = Google::Ads::GoogleAds::V6::Services::AdGroupOperation.new
yield op
op
else
- Google::Ads::GoogleAds::V6::Services::CampaignBudgetOperation.new
+ Google::Ads::GoogleAds::V6::Services::AdGroupOperation.new
end
end
- # Create a new AdGroupAdLabelOperation
+ # Create a new FeedItemSetOperation
#
- # @return [Google::Ads::GoogleAds::V6::Services::AdGroupAdLabelOperation] the operation
- def self.ad_group_ad_label
- require "google/ads/google_ads/v6/services/ad_group_ad_label_service_pb"
+ # @return [Google::Ads::GoogleAds::V6::Services::FeedItemSetOperation] the operation
+ def self.feed_item_set
+ require "google/ads/google_ads/v6/services/feed_item_set_service_pb"
if block_given?
- op = Google::Ads::GoogleAds::V6::Services::AdGroupAdLabelOperation.new
+ op = Google::Ads::GoogleAds::V6::Services::FeedItemSetOperation.new
yield op
op
else
- Google::Ads::GoogleAds::V6::Services::AdGroupAdLabelOperation.new
+ Google::Ads::GoogleAds::V6::Services::FeedItemSetOperation.new
end
end
+ # Create a new CampaignBidModifierOperation
+ #
+ # @return [Google::Ads::GoogleAds::V6::Services::CampaignBidModifierOperation] the operation
+ def self.campaign_bid_modifier
+ require "google/ads/google_ads/v6/services/campaign_bid_modifier_service_pb"
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::CampaignBidModifierOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::CampaignBidModifierOperation.new
+ end
+ end
+
+ # Create a new CustomerManagerLinkOperation
+ #
+ # @return [Google::Ads::GoogleAds::V6::Services::CustomerManagerLinkOperation] the operation
+ def self.customer_manager_link
+ require "google/ads/google_ads/v6/services/customer_manager_link_service_pb"
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::CustomerManagerLinkOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::CustomerManagerLinkOperation.new
+ end
+ end
+
+ # Create a new CampaignDraftOperation
+ #
+ # @return [Google::Ads::GoogleAds::V6::Services::CampaignDraftOperation] the operation
+ def self.campaign_draft
+ require "google/ads/google_ads/v6/services/campaign_draft_service_pb"
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::CampaignDraftOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::CampaignDraftOperation.new
+ end
+ end
+
+ # Create a new UserListOperation
+ #
+ # @return [Google::Ads::GoogleAds::V6::Services::UserListOperation] the operation
+ def self.user_list
+ require "google/ads/google_ads/v6/services/user_list_service_pb"
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::UserListOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::UserListOperation.new
+ end
+ end
+
# Create a new CustomerOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::CustomerOperation] the operation
def self.customer
require "google/ads/google_ads/v6/services/customer_service_pb"
@@ -86,63 +226,63 @@
else
Google::Ads::GoogleAds::V6::Services::CustomerOperation.new
end
end
- # Create a new CampaignBidModifierOperation
+ # Create a new SharedSetOperation
#
- # @return [Google::Ads::GoogleAds::V6::Services::CampaignBidModifierOperation] the operation
- def self.campaign_bid_modifier
- require "google/ads/google_ads/v6/services/campaign_bid_modifier_service_pb"
+ # @return [Google::Ads::GoogleAds::V6::Services::SharedSetOperation] the operation
+ def self.shared_set
+ require "google/ads/google_ads/v6/services/shared_set_service_pb"
if block_given?
- op = Google::Ads::GoogleAds::V6::Services::CampaignBidModifierOperation.new
+ op = Google::Ads::GoogleAds::V6::Services::SharedSetOperation.new
yield op
op
else
- Google::Ads::GoogleAds::V6::Services::CampaignBidModifierOperation.new
+ Google::Ads::GoogleAds::V6::Services::SharedSetOperation.new
end
end
- # Create a new CampaignOperation
+ # Create a new AdGroupCriterionLabelOperation
#
- # @return [Google::Ads::GoogleAds::V6::Services::CampaignOperation] the operation
- def self.campaign
- require "google/ads/google_ads/v6/services/campaign_service_pb"
+ # @return [Google::Ads::GoogleAds::V6::Services::AdGroupCriterionLabelOperation] the operation
+ def self.ad_group_criterion_label
+ require "google/ads/google_ads/v6/services/ad_group_criterion_label_service_pb"
if block_given?
- op = Google::Ads::GoogleAds::V6::Services::CampaignOperation.new
+ op = Google::Ads::GoogleAds::V6::Services::AdGroupCriterionLabelOperation.new
yield op
op
else
- Google::Ads::GoogleAds::V6::Services::CampaignOperation.new
+ Google::Ads::GoogleAds::V6::Services::AdGroupCriterionLabelOperation.new
end
end
- # Create a new BiddingStrategyOperation
+ # Create a new LabelOperation
#
- # @return [Google::Ads::GoogleAds::V6::Services::BiddingStrategyOperation] the operation
- def self.bidding_strategy
- require "google/ads/google_ads/v6/services/bidding_strategy_service_pb"
+ # @return [Google::Ads::GoogleAds::V6::Services::LabelOperation] the operation
+ def self.label
+ require "google/ads/google_ads/v6/services/label_service_pb"
if block_given?
- op = Google::Ads::GoogleAds::V6::Services::BiddingStrategyOperation.new
+ op = Google::Ads::GoogleAds::V6::Services::LabelOperation.new
yield op
op
else
- Google::Ads::GoogleAds::V6::Services::BiddingStrategyOperation.new
+ Google::Ads::GoogleAds::V6::Services::LabelOperation.new
end
end
- # Create a new AdGroupOperation
+ # Create a new AdGroupAdLabelOperation
#
- # @return [Google::Ads::GoogleAds::V6::Services::AdGroupOperation] the operation
- def self.ad_group
- require "google/ads/google_ads/v6/services/ad_group_service_pb"
+ # @return [Google::Ads::GoogleAds::V6::Services::AdGroupAdLabelOperation] the operation
+ def self.ad_group_ad_label
+ require "google/ads/google_ads/v6/services/ad_group_ad_label_service_pb"
if block_given?
- op = Google::Ads::GoogleAds::V6::Services::AdGroupOperation.new
+ op = Google::Ads::GoogleAds::V6::Services::AdGroupAdLabelOperation.new
yield op
op
else
- Google::Ads::GoogleAds::V6::Services::AdGroupOperation.new
+ Google::Ads::GoogleAds::V6::Services::AdGroupAdLabelOperation.new
end
end
# Create a new AdGroupAdOperation
#
@@ -170,24 +310,10 @@
else
Google::Ads::GoogleAds::V6::Services::AdGroupBidModifierOperation.new
end
end
- # Create a new AdGroupCriterionLabelOperation
- #
- # @return [Google::Ads::GoogleAds::V6::Services::AdGroupCriterionLabelOperation] the operation
- def self.ad_group_criterion_label
- require "google/ads/google_ads/v6/services/ad_group_criterion_label_service_pb"
- if block_given?
- op = Google::Ads::GoogleAds::V6::Services::AdGroupCriterionLabelOperation.new
- yield op
- op
- else
- Google::Ads::GoogleAds::V6::Services::AdGroupCriterionLabelOperation.new
- end
- end
-
# Create a new AdGroupCriterionOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::AdGroupCriterionOperation] the operation
def self.ad_group_criterion
require "google/ads/google_ads/v6/services/ad_group_criterion_service_pb"
@@ -282,10 +408,24 @@
else
Google::Ads::GoogleAds::V6::Services::AssetOperation.new
end
end
+ # Create a new BiddingStrategyOperation
+ #
+ # @return [Google::Ads::GoogleAds::V6::Services::BiddingStrategyOperation] the operation
+ def self.bidding_strategy
+ require "google/ads/google_ads/v6/services/bidding_strategy_service_pb"
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::BiddingStrategyOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::BiddingStrategyOperation.new
+ end
+ end
+
# Create a new CampaignAssetOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::CampaignAssetOperation] the operation
def self.campaign_asset
require "google/ads/google_ads/v6/services/campaign_asset_service_pb"
@@ -296,35 +436,35 @@
else
Google::Ads::GoogleAds::V6::Services::CampaignAssetOperation.new
end
end
- # Create a new CampaignCriterionOperation
+ # Create a new CampaignBudgetOperation
#
- # @return [Google::Ads::GoogleAds::V6::Services::CampaignCriterionOperation] the operation
- def self.campaign_criterion
- require "google/ads/google_ads/v6/services/campaign_criterion_service_pb"
+ # @return [Google::Ads::GoogleAds::V6::Services::CampaignBudgetOperation] the operation
+ def self.campaign_budget
+ require "google/ads/google_ads/v6/services/campaign_budget_service_pb"
if block_given?
- op = Google::Ads::GoogleAds::V6::Services::CampaignCriterionOperation.new
+ op = Google::Ads::GoogleAds::V6::Services::CampaignBudgetOperation.new
yield op
op
else
- Google::Ads::GoogleAds::V6::Services::CampaignCriterionOperation.new
+ Google::Ads::GoogleAds::V6::Services::CampaignBudgetOperation.new
end
end
- # Create a new CampaignDraftOperation
+ # Create a new CampaignCriterionOperation
#
- # @return [Google::Ads::GoogleAds::V6::Services::CampaignDraftOperation] the operation
- def self.campaign_draft
- require "google/ads/google_ads/v6/services/campaign_draft_service_pb"
+ # @return [Google::Ads::GoogleAds::V6::Services::CampaignCriterionOperation] the operation
+ def self.campaign_criterion
+ require "google/ads/google_ads/v6/services/campaign_criterion_service_pb"
if block_given?
- op = Google::Ads::GoogleAds::V6::Services::CampaignDraftOperation.new
+ op = Google::Ads::GoogleAds::V6::Services::CampaignCriterionOperation.new
yield op
op
else
- Google::Ads::GoogleAds::V6::Services::CampaignDraftOperation.new
+ Google::Ads::GoogleAds::V6::Services::CampaignCriterionOperation.new
end
end
# Create a new CampaignExperimentOperation
#
@@ -380,10 +520,24 @@
else
Google::Ads::GoogleAds::V6::Services::CampaignLabelOperation.new
end
end
+ # Create a new CampaignOperation
+ #
+ # @return [Google::Ads::GoogleAds::V6::Services::CampaignOperation] the operation
+ def self.campaign
+ require "google/ads/google_ads/v6/services/campaign_service_pb"
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::CampaignOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::CampaignOperation.new
+ end
+ end
+
# Create a new CampaignSharedSetOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::CampaignSharedSetOperation] the operation
def self.campaign_shared_set
require "google/ads/google_ads/v6/services/campaign_shared_set_service_pb"
@@ -450,24 +604,10 @@
else
Google::Ads::GoogleAds::V6::Services::CustomerLabelOperation.new
end
end
- # Create a new CustomerNegativeCriterionOperation
- #
- # @return [Google::Ads::GoogleAds::V6::Services::CustomerNegativeCriterionOperation] the operation
- def self.customer_negative_criterion
- require "google/ads/google_ads/v6/services/customer_negative_criterion_service_pb"
- if block_given?
- op = Google::Ads::GoogleAds::V6::Services::CustomerNegativeCriterionOperation.new
- yield op
- op
- else
- Google::Ads::GoogleAds::V6::Services::CustomerNegativeCriterionOperation.new
- end
- end
-
# Create a new ExtensionFeedItemOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::ExtensionFeedItemOperation] the operation
def self.extension_feed_item
require "google/ads/google_ads/v6/services/extension_feed_item_service_pb"
@@ -492,24 +632,10 @@
else
Google::Ads::GoogleAds::V6::Services::FeedItemOperation.new
end
end
- # Create a new FeedItemSetOperation
- #
- # @return [Google::Ads::GoogleAds::V6::Services::FeedItemSetOperation] the operation
- def self.feed_item_set
- require "google/ads/google_ads/v6/services/feed_item_set_service_pb"
- if block_given?
- op = Google::Ads::GoogleAds::V6::Services::FeedItemSetOperation.new
- yield op
- op
- else
- Google::Ads::GoogleAds::V6::Services::FeedItemSetOperation.new
- end
- end
-
# Create a new FeedItemTargetOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::FeedItemTargetOperation] the operation
def self.feed_item_target
require "google/ads/google_ads/v6/services/feed_item_target_service_pb"
@@ -520,24 +646,10 @@
else
Google::Ads::GoogleAds::V6::Services::FeedItemTargetOperation.new
end
end
- # Create a new FeedMappingOperation
- #
- # @return [Google::Ads::GoogleAds::V6::Services::FeedMappingOperation] the operation
- def self.feed_mapping
- require "google/ads/google_ads/v6/services/feed_mapping_service_pb"
- if block_given?
- op = Google::Ads::GoogleAds::V6::Services::FeedMappingOperation.new
- yield op
- op
- else
- Google::Ads::GoogleAds::V6::Services::FeedMappingOperation.new
- end
- end
-
# Create a new FeedOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::FeedOperation] the operation
def self.feed
require "google/ads/google_ads/v6/services/feed_service_pb"
@@ -548,24 +660,10 @@
else
Google::Ads::GoogleAds::V6::Services::FeedOperation.new
end
end
- # Create a new KeywordPlanAdGroupKeywordOperation
- #
- # @return [Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupKeywordOperation] the operation
- def self.keyword_plan_ad_group_keyword
- require "google/ads/google_ads/v6/services/keyword_plan_ad_group_keyword_service_pb"
- if block_given?
- op = Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupKeywordOperation.new
- yield op
- op
- else
- Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupKeywordOperation.new
- end
- end
-
# Create a new KeywordPlanAdGroupOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupOperation] the operation
def self.keyword_plan_ad_group
require "google/ads/google_ads/v6/services/keyword_plan_ad_group_service_pb"
@@ -618,24 +716,10 @@
else
Google::Ads::GoogleAds::V6::Services::KeywordPlanOperation.new
end
end
- # Create a new LabelOperation
- #
- # @return [Google::Ads::GoogleAds::V6::Services::LabelOperation] the operation
- def self.label
- require "google/ads/google_ads/v6/services/label_service_pb"
- if block_given?
- op = Google::Ads::GoogleAds::V6::Services::LabelOperation.new
- yield op
- op
- else
- Google::Ads::GoogleAds::V6::Services::LabelOperation.new
- end
- end
-
# Create a new MediaFileOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::MediaFileOperation] the operation
def self.media_file
require "google/ads/google_ads/v6/services/media_file_service_pb"
@@ -660,52 +744,10 @@
else
Google::Ads::GoogleAds::V6::Services::RemarketingActionOperation.new
end
end
- # Create a new SharedCriterionOperation
- #
- # @return [Google::Ads::GoogleAds::V6::Services::SharedCriterionOperation] the operation
- def self.shared_criterion
- require "google/ads/google_ads/v6/services/shared_criterion_service_pb"
- if block_given?
- op = Google::Ads::GoogleAds::V6::Services::SharedCriterionOperation.new
- yield op
- op
- else
- Google::Ads::GoogleAds::V6::Services::SharedCriterionOperation.new
- end
- end
-
- # Create a new SharedSetOperation
- #
- # @return [Google::Ads::GoogleAds::V6::Services::SharedSetOperation] the operation
- def self.shared_set
- require "google/ads/google_ads/v6/services/shared_set_service_pb"
- if block_given?
- op = Google::Ads::GoogleAds::V6::Services::SharedSetOperation.new
- yield op
- op
- else
- Google::Ads::GoogleAds::V6::Services::SharedSetOperation.new
- end
- end
-
- # Create a new UserListOperation
- #
- # @return [Google::Ads::GoogleAds::V6::Services::UserListOperation] the operation
- def self.user_list
- require "google/ads/google_ads/v6/services/user_list_service_pb"
- if block_given?
- op = Google::Ads::GoogleAds::V6::Services::UserListOperation.new
- yield op
- op
- else
- Google::Ads::GoogleAds::V6::Services::UserListOperation.new
- end
- end
-
# Create a new MutateOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::MutateOperation] the operation
def self.mutate
require "google/ads/google_ads/v6/services/google_ads_service_pb"
@@ -730,94 +772,38 @@
else
Google::Ads::GoogleAds::V6::Services::BatchJobOperation.new
end
end
- # Create a new OfflineUserDataJobOperation
+ # Create a new CustomerUserAccessInvitationOperation
#
- # @return [Google::Ads::GoogleAds::V6::Services::OfflineUserDataJobOperation] the operation
- def self.offline_user_data_job
- require "google/ads/google_ads/v6/services/offline_user_data_job_service_pb"
+ # @return [Google::Ads::GoogleAds::V6::Services::CustomerUserAccessInvitationOperation] the operation
+ def self.customer_user_access_invitation
+ require "google/ads/google_ads/v6/services/customer_user_access_invitation_service_pb"
if block_given?
- op = Google::Ads::GoogleAds::V6::Services::OfflineUserDataJobOperation.new
+ op = Google::Ads::GoogleAds::V6::Services::CustomerUserAccessInvitationOperation.new
yield op
op
else
- Google::Ads::GoogleAds::V6::Services::OfflineUserDataJobOperation.new
+ Google::Ads::GoogleAds::V6::Services::CustomerUserAccessInvitationOperation.new
end
end
- # Create a new CustomInterestOperation
+ # Create a new OfflineUserDataJobOperation
#
- # @return [Google::Ads::GoogleAds::V6::Services::CustomInterestOperation] the operation
- def self.custom_interest
- require "google/ads/google_ads/v6/services/custom_interest_service_pb"
+ # @return [Google::Ads::GoogleAds::V6::Services::OfflineUserDataJobOperation] the operation
+ def self.offline_user_data_job
+ require "google/ads/google_ads/v6/services/offline_user_data_job_service_pb"
if block_given?
- op = Google::Ads::GoogleAds::V6::Services::CustomInterestOperation.new
+ op = Google::Ads::GoogleAds::V6::Services::OfflineUserDataJobOperation.new
yield op
op
else
- Google::Ads::GoogleAds::V6::Services::CustomInterestOperation.new
+ Google::Ads::GoogleAds::V6::Services::OfflineUserDataJobOperation.new
end
end
- # Create a new CustomerUserAccessOperation
- #
- # @return [Google::Ads::GoogleAds::V6::Services::CustomerUserAccessOperation] the operation
- def self.customer_user_access
- require "google/ads/google_ads/v6/services/customer_user_access_service_pb"
- if block_given?
- op = Google::Ads::GoogleAds::V6::Services::CustomerUserAccessOperation.new
- yield op
- op
- else
- Google::Ads::GoogleAds::V6::Services::CustomerUserAccessOperation.new
- end
- end
-
- # Create a new MerchantCenterLinkOperation
- #
- # @return [Google::Ads::GoogleAds::V6::Services::MerchantCenterLinkOperation] the operation
- def self.merchant_center_link
- require "google/ads/google_ads/v6/services/merchant_center_link_service_pb"
- if block_given?
- op = Google::Ads::GoogleAds::V6::Services::MerchantCenterLinkOperation.new
- yield op
- op
- else
- Google::Ads::GoogleAds::V6::Services::MerchantCenterLinkOperation.new
- end
- end
-
- # Create a new CustomerClientLinkOperation
- #
- # @return [Google::Ads::GoogleAds::V6::Services::CustomerClientLinkOperation] the operation
- def self.customer_client_link
- require "google/ads/google_ads/v6/services/customer_client_link_service_pb"
- if block_given?
- op = Google::Ads::GoogleAds::V6::Services::CustomerClientLinkOperation.new
- yield op
- op
- else
- Google::Ads::GoogleAds::V6::Services::CustomerClientLinkOperation.new
- end
- end
-
- # Create a new CustomAudienceOperation
- #
- # @return [Google::Ads::GoogleAds::V6::Services::CustomAudienceOperation] the operation
- def self.custom_audience
- require "google/ads/google_ads/v6/services/custom_audience_service_pb"
- if block_given?
- op = Google::Ads::GoogleAds::V6::Services::CustomAudienceOperation.new
- yield op
- op
- else
- Google::Ads::GoogleAds::V6::Services::CustomAudienceOperation.new
- end
- end
-
# Create a new UserDataOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::UserDataOperation] the operation
def self.user_data
require "google/ads/google_ads/v6/services/user_data_service_pb"
@@ -828,21 +814,21 @@
else
Google::Ads::GoogleAds::V6::Services::UserDataOperation.new
end
end
- # Create a new CustomerManagerLinkOperation
+ # Create a new AccountBudgetProposalOperation
#
- # @return [Google::Ads::GoogleAds::V6::Services::CustomerManagerLinkOperation] the operation
- def self.customer_manager_link
- require "google/ads/google_ads/v6/services/customer_manager_link_service_pb"
+ # @return [Google::Ads::GoogleAds::V6::Services::AccountBudgetProposalOperation] the operation
+ def self.account_budget_proposal
+ require "google/ads/google_ads/v6/services/account_budget_proposal_service_pb"
if block_given?
- op = Google::Ads::GoogleAds::V6::Services::CustomerManagerLinkOperation.new
+ op = Google::Ads::GoogleAds::V6::Services::AccountBudgetProposalOperation.new
yield op
op
else
- Google::Ads::GoogleAds::V6::Services::CustomerManagerLinkOperation.new
+ Google::Ads::GoogleAds::V6::Services::AccountBudgetProposalOperation.new
end
end
# Create a new ApplyRecommendationOperation
#
@@ -870,66 +856,80 @@
else
Google::Ads::GoogleAds::V6::Services::DismissRecommendationRequest::DismissRecommendationOperation.new
end
end
- # Create a new BillingSetupOperation
+ # Create a new AccountLinkOperation
#
- # @return [Google::Ads::GoogleAds::V6::Services::BillingSetupOperation] the operation
- def self.billing_setup
- require "google/ads/google_ads/v6/services/billing_setup_service_pb"
+ # @return [Google::Ads::GoogleAds::V6::Services::AccountLinkOperation] the operation
+ def self.account_link
+ require "google/ads/google_ads/v6/services/account_link_service_pb"
if block_given?
- op = Google::Ads::GoogleAds::V6::Services::BillingSetupOperation.new
+ op = Google::Ads::GoogleAds::V6::Services::AccountLinkOperation.new
yield op
op
else
- Google::Ads::GoogleAds::V6::Services::BillingSetupOperation.new
+ Google::Ads::GoogleAds::V6::Services::AccountLinkOperation.new
end
end
- # Create a new CustomerUserAccessInvitationOperation
+ # Create a new CustomAudienceOperation
#
- # @return [Google::Ads::GoogleAds::V6::Services::CustomerUserAccessInvitationOperation] the operation
- def self.customer_user_access_invitation
- require "google/ads/google_ads/v6/services/customer_user_access_invitation_service_pb"
+ # @return [Google::Ads::GoogleAds::V6::Services::CustomAudienceOperation] the operation
+ def self.custom_audience
+ require "google/ads/google_ads/v6/services/custom_audience_service_pb"
if block_given?
- op = Google::Ads::GoogleAds::V6::Services::CustomerUserAccessInvitationOperation.new
+ op = Google::Ads::GoogleAds::V6::Services::CustomAudienceOperation.new
yield op
op
else
- Google::Ads::GoogleAds::V6::Services::CustomerUserAccessInvitationOperation.new
+ Google::Ads::GoogleAds::V6::Services::CustomAudienceOperation.new
end
end
- # Create a new AccountLinkOperation
+ # Create a new CustomerUserAccessOperation
#
- # @return [Google::Ads::GoogleAds::V6::Services::AccountLinkOperation] the operation
- def self.account_link
- require "google/ads/google_ads/v6/services/account_link_service_pb"
+ # @return [Google::Ads::GoogleAds::V6::Services::CustomerUserAccessOperation] the operation
+ def self.customer_user_access
+ require "google/ads/google_ads/v6/services/customer_user_access_service_pb"
if block_given?
- op = Google::Ads::GoogleAds::V6::Services::AccountLinkOperation.new
+ op = Google::Ads::GoogleAds::V6::Services::CustomerUserAccessOperation.new
yield op
op
else
- Google::Ads::GoogleAds::V6::Services::AccountLinkOperation.new
+ Google::Ads::GoogleAds::V6::Services::CustomerUserAccessOperation.new
end
end
- # Create a new AccountBudgetProposalOperation
+ # Create a new MerchantCenterLinkOperation
#
- # @return [Google::Ads::GoogleAds::V6::Services::AccountBudgetProposalOperation] the operation
- def self.account_budget_proposal
- require "google/ads/google_ads/v6/services/account_budget_proposal_service_pb"
+ # @return [Google::Ads::GoogleAds::V6::Services::MerchantCenterLinkOperation] the operation
+ def self.merchant_center_link
+ require "google/ads/google_ads/v6/services/merchant_center_link_service_pb"
if block_given?
- op = Google::Ads::GoogleAds::V6::Services::AccountBudgetProposalOperation.new
+ op = Google::Ads::GoogleAds::V6::Services::MerchantCenterLinkOperation.new
yield op
op
else
- Google::Ads::GoogleAds::V6::Services::AccountBudgetProposalOperation.new
+ Google::Ads::GoogleAds::V6::Services::MerchantCenterLinkOperation.new
end
end
+ # Create a new BillingSetupOperation
+ #
+ # @return [Google::Ads::GoogleAds::V6::Services::BillingSetupOperation] the operation
+ def self.billing_setup
+ require "google/ads/google_ads/v6/services/billing_setup_service_pb"
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::BillingSetupOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::BillingSetupOperation.new
+ end
+ end
+
# Get a reference module containing convenience methods for creating
# resources
#
# @return [Google::Ads::GoogleAds::Factories::V6::Operations::CreateResource]
def self.create_resource
@@ -951,10 +951,172 @@
def self.remove_resource
RemoveResource
end
module CreateResource
+ # 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::V6::Resources::CustomerClientLink]
+ # a resource instance to be used for creation in this operation.
+ #
+ # @return [Google::Ads::GoogleAds::V6::Services::CustomerClientLinkOperation] instance that will create the resource
+ def self.customer_client_link(res = nil, &blk)
+ require "google/ads/google_ads/v6/services/customer_client_link_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::CustomerClientLinkOperation.new
+ op["create"] = if !res.nil?
+ res
+ elsif !blk.nil?
+ Factories::V6::Resources.customer_client_link(&blk)
+ else
+ Factories::V6::Resources.customer_client_link
+ end
+
+ op
+ end
+
+ # A convenience method for creating an CustomInterestOperation instance with
+ # its "create" field prepopulated with an CustomInterest instance.
+ #
+ # @overload custom_interest
+ # creates an operation instance, yielding a newly fabricated CustomInterest
+ # which can be used for setting attributes on the newly created resource
+ # @overload custom_interest(res)
+ # creates an operation instance, with the resource to be created
+ # set to the passed value (res)
+ # @param res [Google::Ads::GoogleAds::V6::Resources::CustomInterest]
+ # a resource instance to be used for creation in this operation.
+ #
+ # @return [Google::Ads::GoogleAds::V6::Services::CustomInterestOperation] instance that will create the resource
+ def self.custom_interest(res = nil, &blk)
+ require "google/ads/google_ads/v6/services/custom_interest_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::CustomInterestOperation.new
+ op["create"] = if !res.nil?
+ res
+ elsif !blk.nil?
+ Factories::V6::Resources.custom_interest(&blk)
+ else
+ Factories::V6::Resources.custom_interest
+ end
+
+ op
+ end
+
+ # A convenience method for creating an CustomerNegativeCriterionOperation instance with
+ # its "create" field prepopulated with an CustomerNegativeCriterion instance.
+ #
+ # @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 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::V6::Resources::CustomerNegativeCriterion]
+ # a resource instance to be used for creation in this operation.
+ #
+ # @return [Google::Ads::GoogleAds::V6::Services::CustomerNegativeCriterionOperation] instance that will create the resource
+ def self.customer_negative_criterion(res = nil, &blk)
+ require "google/ads/google_ads/v6/services/customer_negative_criterion_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::CustomerNegativeCriterionOperation.new
+ op["create"] = if !res.nil?
+ res
+ elsif !blk.nil?
+ Factories::V6::Resources.customer_negative_criterion(&blk)
+ else
+ Factories::V6::Resources.customer_negative_criterion
+ end
+
+ op
+ end
+
+ # A convenience method for creating an SharedCriterionOperation instance with
+ # its "create" field prepopulated with an SharedCriterion instance.
+ #
+ # @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 shared_criterion(res)
+ # creates an operation instance, with the resource to be created
+ # set to the passed value (res)
+ # @param res [Google::Ads::GoogleAds::V6::Resources::SharedCriterion]
+ # a resource instance to be used for creation in this operation.
+ #
+ # @return [Google::Ads::GoogleAds::V6::Services::SharedCriterionOperation] instance that will create the resource
+ def self.shared_criterion(res = nil, &blk)
+ require "google/ads/google_ads/v6/services/shared_criterion_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::SharedCriterionOperation.new
+ op["create"] = if !res.nil?
+ res
+ elsif !blk.nil?
+ Factories::V6::Resources.shared_criterion(&blk)
+ else
+ Factories::V6::Resources.shared_criterion
+ end
+
+ op
+ end
+
+ # A convenience method for creating an KeywordPlanAdGroupKeywordOperation instance with
+ # its "create" field prepopulated with an KeywordPlanAdGroupKeyword instance.
+ #
+ # @overload keyword_plan_ad_group_keyword
+ # creates an operation instance, yielding a newly fabricated KeywordPlanAdGroupKeyword
+ # which can be used for setting attributes on the newly created resource
+ # @overload keyword_plan_ad_group_keyword(res)
+ # creates an operation instance, with the resource to be created
+ # set to the passed value (res)
+ # @param res [Google::Ads::GoogleAds::V6::Resources::KeywordPlanAdGroupKeyword]
+ # a resource instance to be used for creation in this operation.
+ #
+ # @return [Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupKeywordOperation] instance that will create the resource
+ def self.keyword_plan_ad_group_keyword(res = nil, &blk)
+ require "google/ads/google_ads/v6/services/keyword_plan_ad_group_keyword_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupKeywordOperation.new
+ op["create"] = if !res.nil?
+ res
+ elsif !blk.nil?
+ Factories::V6::Resources.keyword_plan_ad_group_keyword(&blk)
+ else
+ Factories::V6::Resources.keyword_plan_ad_group_keyword
+ end
+
+ op
+ end
+
+ # A convenience method for creating an FeedMappingOperation instance with
+ # its "create" field prepopulated with an FeedMapping instance.
+ #
+ # @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 feed_mapping(res)
+ # creates an operation instance, with the resource to be created
+ # set to the passed value (res)
+ # @param res [Google::Ads::GoogleAds::V6::Resources::FeedMapping]
+ # a resource instance to be used for creation in this operation.
+ #
+ # @return [Google::Ads::GoogleAds::V6::Services::FeedMappingOperation] instance that will create the resource
+ def self.feed_mapping(res = nil, &blk)
+ require "google/ads/google_ads/v6/services/feed_mapping_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::FeedMappingOperation.new
+ op["create"] = if !res.nil?
+ res
+ elsif !blk.nil?
+ Factories::V6::Resources.feed_mapping(&blk)
+ else
+ Factories::V6::Resources.feed_mapping
+ end
+
+ op
+ end
+
# A convenience method for creating an FeedItemSetLinkOperation instance with
# its "create" field prepopulated with an FeedItemSetLink instance.
#
# @overload feed_item_set_link
# creates an operation instance, yielding a newly fabricated FeedItemSetLink
@@ -978,59 +1140,59 @@
end
op
end
- # A convenience method for creating an CampaignBudgetOperation instance with
- # its "create" field prepopulated with an CampaignBudget instance.
+ # A convenience method for creating an AdGroupOperation instance with
+ # its "create" field prepopulated with an AdGroup instance.
#
- # @overload campaign_budget
- # creates an operation instance, yielding a newly fabricated CampaignBudget
+ # @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 campaign_budget(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::V6::Resources::CampaignBudget]
+ # @param res [Google::Ads::GoogleAds::V6::Resources::AdGroup]
# a resource instance to be used for creation in this operation.
#
- # @return [Google::Ads::GoogleAds::V6::Services::CampaignBudgetOperation] instance that will create the resource
- def self.campaign_budget(res = nil, &blk)
- require "google/ads/google_ads/v6/services/campaign_budget_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::CampaignBudgetOperation.new
+ # @return [Google::Ads::GoogleAds::V6::Services::AdGroupOperation] instance that will create the resource
+ def self.ad_group(res = nil, &blk)
+ require "google/ads/google_ads/v6/services/ad_group_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::AdGroupOperation.new
op["create"] = if !res.nil?
res
elsif !blk.nil?
- Factories::V6::Resources.campaign_budget(&blk)
+ Factories::V6::Resources.ad_group(&blk)
else
- Factories::V6::Resources.campaign_budget
+ Factories::V6::Resources.ad_group
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 FeedItemSetOperation instance with
+ # its "create" field prepopulated with an FeedItemSet instance.
#
- # @overload ad_group_ad_label
- # creates an operation instance, yielding a newly fabricated AdGroupAdLabel
+ # @overload feed_item_set
+ # creates an operation instance, yielding a newly fabricated FeedItemSet
# which can be used for setting attributes on the newly created resource
- # @overload ad_group_ad_label(res)
+ # @overload feed_item_set(res)
# creates an operation instance, with the resource to be created
# set to the passed value (res)
- # @param res [Google::Ads::GoogleAds::V6::Resources::AdGroupAdLabel]
+ # @param res [Google::Ads::GoogleAds::V6::Resources::FeedItemSet]
# a resource instance to be used for creation in this operation.
#
- # @return [Google::Ads::GoogleAds::V6::Services::AdGroupAdLabelOperation] instance that will create the resource
- def self.ad_group_ad_label(res = nil, &blk)
- require "google/ads/google_ads/v6/services/ad_group_ad_label_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::AdGroupAdLabelOperation.new
+ # @return [Google::Ads::GoogleAds::V6::Services::FeedItemSetOperation] instance that will create the resource
+ def self.feed_item_set(res = nil, &blk)
+ require "google/ads/google_ads/v6/services/feed_item_set_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::FeedItemSetOperation.new
op["create"] = if !res.nil?
res
elsif !blk.nil?
- Factories::V6::Resources.ad_group_ad_label(&blk)
+ Factories::V6::Resources.feed_item_set(&blk)
else
- Factories::V6::Resources.ad_group_ad_label
+ Factories::V6::Resources.feed_item_set
end
op
end
@@ -1059,91 +1221,172 @@
end
op
end
- # A convenience method for creating an CampaignOperation instance with
- # its "create" field prepopulated with an Campaign instance.
+ # A convenience method for creating an CampaignDraftOperation instance with
+ # its "create" field prepopulated with an CampaignDraft instance.
#
- # @overload campaign
- # creates an operation instance, yielding a newly fabricated Campaign
+ # @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(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::V6::Resources::Campaign]
+ # @param res [Google::Ads::GoogleAds::V6::Resources::CampaignDraft]
# a resource instance to be used for creation in this operation.
#
- # @return [Google::Ads::GoogleAds::V6::Services::CampaignOperation] instance that will create the resource
- def self.campaign(res = nil, &blk)
- require "google/ads/google_ads/v6/services/campaign_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::CampaignOperation.new
+ # @return [Google::Ads::GoogleAds::V6::Services::CampaignDraftOperation] instance that will create the resource
+ def self.campaign_draft(res = nil, &blk)
+ require "google/ads/google_ads/v6/services/campaign_draft_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::CampaignDraftOperation.new
op["create"] = if !res.nil?
res
elsif !blk.nil?
- Factories::V6::Resources.campaign(&blk)
+ Factories::V6::Resources.campaign_draft(&blk)
else
- Factories::V6::Resources.campaign
+ Factories::V6::Resources.campaign_draft
end
op
end
- # A convenience method for creating an BiddingStrategyOperation instance with
- # its "create" field prepopulated with an BiddingStrategy instance.
+ # A convenience method for creating an UserListOperation instance with
+ # its "create" field prepopulated with an UserList instance.
#
- # @overload bidding_strategy
- # creates an operation instance, yielding a newly fabricated BiddingStrategy
+ # @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 bidding_strategy(res)
+ # @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::V6::Resources::BiddingStrategy]
+ # @param res [Google::Ads::GoogleAds::V6::Resources::UserList]
# a resource instance to be used for creation in this operation.
#
- # @return [Google::Ads::GoogleAds::V6::Services::BiddingStrategyOperation] instance that will create the resource
- def self.bidding_strategy(res = nil, &blk)
- require "google/ads/google_ads/v6/services/bidding_strategy_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::BiddingStrategyOperation.new
+ # @return [Google::Ads::GoogleAds::V6::Services::UserListOperation] instance that will create the resource
+ def self.user_list(res = nil, &blk)
+ require "google/ads/google_ads/v6/services/user_list_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::UserListOperation.new
op["create"] = if !res.nil?
res
elsif !blk.nil?
- Factories::V6::Resources.bidding_strategy(&blk)
+ Factories::V6::Resources.user_list(&blk)
else
- Factories::V6::Resources.bidding_strategy
+ Factories::V6::Resources.user_list
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 SharedSetOperation instance with
+ # its "create" field prepopulated with an SharedSet instance.
#
- # @overload ad_group
- # creates an operation instance, yielding a newly fabricated AdGroup
+ # @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 ad_group(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::V6::Resources::AdGroup]
+ # @param res [Google::Ads::GoogleAds::V6::Resources::SharedSet]
# a resource instance to be used for creation in this operation.
#
- # @return [Google::Ads::GoogleAds::V6::Services::AdGroupOperation] instance that will create the resource
- def self.ad_group(res = nil, &blk)
- require "google/ads/google_ads/v6/services/ad_group_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::AdGroupOperation.new
+ # @return [Google::Ads::GoogleAds::V6::Services::SharedSetOperation] instance that will create the resource
+ def self.shared_set(res = nil, &blk)
+ require "google/ads/google_ads/v6/services/shared_set_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::SharedSetOperation.new
op["create"] = if !res.nil?
res
elsif !blk.nil?
- Factories::V6::Resources.ad_group(&blk)
+ Factories::V6::Resources.shared_set(&blk)
else
- Factories::V6::Resources.ad_group
+ Factories::V6::Resources.shared_set
end
op
end
+ # A convenience method for creating an AdGroupCriterionLabelOperation instance with
+ # its "create" field prepopulated with an AdGroupCriterionLabel instance.
+ #
+ # @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 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::V6::Resources::AdGroupCriterionLabel]
+ # a resource instance to be used for creation in this operation.
+ #
+ # @return [Google::Ads::GoogleAds::V6::Services::AdGroupCriterionLabelOperation] instance that will create the resource
+ def self.ad_group_criterion_label(res = nil, &blk)
+ require "google/ads/google_ads/v6/services/ad_group_criterion_label_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::AdGroupCriterionLabelOperation.new
+ op["create"] = if !res.nil?
+ res
+ elsif !blk.nil?
+ Factories::V6::Resources.ad_group_criterion_label(&blk)
+ else
+ Factories::V6::Resources.ad_group_criterion_label
+ end
+
+ op
+ end
+
+ # A convenience method for creating an LabelOperation instance with
+ # its "create" field prepopulated with an Label instance.
+ #
+ # @overload label
+ # creates an operation instance, yielding a newly fabricated Label
+ # which can be used for setting attributes on the newly created resource
+ # @overload label(res)
+ # creates an operation instance, with the resource to be created
+ # set to the passed value (res)
+ # @param res [Google::Ads::GoogleAds::V6::Resources::Label]
+ # a resource instance to be used for creation in this operation.
+ #
+ # @return [Google::Ads::GoogleAds::V6::Services::LabelOperation] instance that will create the resource
+ def self.label(res = nil, &blk)
+ require "google/ads/google_ads/v6/services/label_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::LabelOperation.new
+ op["create"] = if !res.nil?
+ res
+ elsif !blk.nil?
+ Factories::V6::Resources.label(&blk)
+ else
+ Factories::V6::Resources.label
+ end
+
+ op
+ end
+
+ # A convenience method for creating an AdGroupAdLabelOperation instance with
+ # its "create" field prepopulated with an AdGroupAdLabel instance.
+ #
+ # @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 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::V6::Resources::AdGroupAdLabel]
+ # a resource instance to be used for creation in this operation.
+ #
+ # @return [Google::Ads::GoogleAds::V6::Services::AdGroupAdLabelOperation] instance that will create the resource
+ def self.ad_group_ad_label(res = nil, &blk)
+ require "google/ads/google_ads/v6/services/ad_group_ad_label_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::AdGroupAdLabelOperation.new
+ op["create"] = if !res.nil?
+ res
+ elsif !blk.nil?
+ Factories::V6::Resources.ad_group_ad_label(&blk)
+ else
+ Factories::V6::Resources.ad_group_ad_label
+ end
+
+ op
+ end
+
# A convenience method for creating an AdGroupAdOperation instance with
# its "create" field prepopulated with an AdGroupAd instance.
#
# @overload ad_group_ad
# creates an operation instance, yielding a newly fabricated AdGroupAd
@@ -1194,37 +1437,10 @@
end
op
end
- # A convenience method for creating an AdGroupCriterionLabelOperation instance with
- # its "create" field prepopulated with an AdGroupCriterionLabel instance.
- #
- # @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 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::V6::Resources::AdGroupCriterionLabel]
- # a resource instance to be used for creation in this operation.
- #
- # @return [Google::Ads::GoogleAds::V6::Services::AdGroupCriterionLabelOperation] instance that will create the resource
- def self.ad_group_criterion_label(res = nil, &blk)
- require "google/ads/google_ads/v6/services/ad_group_criterion_label_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::AdGroupCriterionLabelOperation.new
- op["create"] = if !res.nil?
- res
- elsif !blk.nil?
- Factories::V6::Resources.ad_group_criterion_label(&blk)
- else
- Factories::V6::Resources.ad_group_criterion_label
- 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
@@ -1383,10 +1599,37 @@
end
op
end
+ # A convenience method for creating an BiddingStrategyOperation instance with
+ # its "create" field prepopulated with an BiddingStrategy instance.
+ #
+ # @overload bidding_strategy
+ # creates an operation instance, yielding a newly fabricated BiddingStrategy
+ # which can be used for setting attributes on the newly created resource
+ # @overload bidding_strategy(res)
+ # creates an operation instance, with the resource to be created
+ # set to the passed value (res)
+ # @param res [Google::Ads::GoogleAds::V6::Resources::BiddingStrategy]
+ # a resource instance to be used for creation in this operation.
+ #
+ # @return [Google::Ads::GoogleAds::V6::Services::BiddingStrategyOperation] instance that will create the resource
+ def self.bidding_strategy(res = nil, &blk)
+ require "google/ads/google_ads/v6/services/bidding_strategy_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::BiddingStrategyOperation.new
+ op["create"] = if !res.nil?
+ res
+ elsif !blk.nil?
+ Factories::V6::Resources.bidding_strategy(&blk)
+ else
+ Factories::V6::Resources.bidding_strategy
+ end
+
+ op
+ end
+
# A convenience method for creating an CampaignAssetOperation instance with
# its "create" field prepopulated with an CampaignAsset instance.
#
# @overload campaign_asset
# creates an operation instance, yielding a newly fabricated CampaignAsset
@@ -1410,59 +1653,59 @@
end
op
end
- # A convenience method for creating an CampaignCriterionOperation instance with
- # its "create" field prepopulated with an CampaignCriterion instance.
+ # A convenience method for creating an CampaignBudgetOperation instance with
+ # its "create" field prepopulated with an CampaignBudget instance.
#
- # @overload campaign_criterion
- # creates an operation instance, yielding a newly fabricated CampaignCriterion
+ # @overload campaign_budget
+ # creates an operation instance, yielding a newly fabricated CampaignBudget
# which can be used for setting attributes on the newly created resource
- # @overload campaign_criterion(res)
+ # @overload campaign_budget(res)
# creates an operation instance, with the resource to be created
# set to the passed value (res)
- # @param res [Google::Ads::GoogleAds::V6::Resources::CampaignCriterion]
+ # @param res [Google::Ads::GoogleAds::V6::Resources::CampaignBudget]
# a resource instance to be used for creation in this operation.
#
- # @return [Google::Ads::GoogleAds::V6::Services::CampaignCriterionOperation] instance that will create the resource
- def self.campaign_criterion(res = nil, &blk)
- require "google/ads/google_ads/v6/services/campaign_criterion_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::CampaignCriterionOperation.new
+ # @return [Google::Ads::GoogleAds::V6::Services::CampaignBudgetOperation] instance that will create the resource
+ def self.campaign_budget(res = nil, &blk)
+ require "google/ads/google_ads/v6/services/campaign_budget_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::CampaignBudgetOperation.new
op["create"] = if !res.nil?
res
elsif !blk.nil?
- Factories::V6::Resources.campaign_criterion(&blk)
+ Factories::V6::Resources.campaign_budget(&blk)
else
- Factories::V6::Resources.campaign_criterion
+ Factories::V6::Resources.campaign_budget
end
op
end
- # A convenience method for creating an CampaignDraftOperation instance with
- # its "create" field prepopulated with an CampaignDraft instance.
+ # A convenience method for creating an CampaignCriterionOperation instance with
+ # its "create" field prepopulated with an CampaignCriterion instance.
#
- # @overload campaign_draft
- # creates an operation instance, yielding a newly fabricated CampaignDraft
+ # @overload campaign_criterion
+ # creates an operation instance, yielding a newly fabricated CampaignCriterion
# which can be used for setting attributes on the newly created resource
- # @overload campaign_draft(res)
+ # @overload campaign_criterion(res)
# creates an operation instance, with the resource to be created
# set to the passed value (res)
- # @param res [Google::Ads::GoogleAds::V6::Resources::CampaignDraft]
+ # @param res [Google::Ads::GoogleAds::V6::Resources::CampaignCriterion]
# a resource instance to be used for creation in this operation.
#
- # @return [Google::Ads::GoogleAds::V6::Services::CampaignDraftOperation] instance that will create the resource
- def self.campaign_draft(res = nil, &blk)
- require "google/ads/google_ads/v6/services/campaign_draft_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::CampaignDraftOperation.new
+ # @return [Google::Ads::GoogleAds::V6::Services::CampaignCriterionOperation] instance that will create the resource
+ def self.campaign_criterion(res = nil, &blk)
+ require "google/ads/google_ads/v6/services/campaign_criterion_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::CampaignCriterionOperation.new
op["create"] = if !res.nil?
res
elsif !blk.nil?
- Factories::V6::Resources.campaign_draft(&blk)
+ Factories::V6::Resources.campaign_criterion(&blk)
else
- Factories::V6::Resources.campaign_draft
+ Factories::V6::Resources.campaign_criterion
end
op
end
@@ -1545,10 +1788,37 @@
end
op
end
+ # A convenience method for creating an CampaignOperation instance with
+ # its "create" field prepopulated with an Campaign instance.
+ #
+ # @overload campaign
+ # creates an operation instance, yielding a newly fabricated Campaign
+ # which can be used for setting attributes on the newly created resource
+ # @overload campaign(res)
+ # creates an operation instance, with the resource to be created
+ # set to the passed value (res)
+ # @param res [Google::Ads::GoogleAds::V6::Resources::Campaign]
+ # a resource instance to be used for creation in this operation.
+ #
+ # @return [Google::Ads::GoogleAds::V6::Services::CampaignOperation] instance that will create the resource
+ def self.campaign(res = nil, &blk)
+ require "google/ads/google_ads/v6/services/campaign_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::CampaignOperation.new
+ op["create"] = if !res.nil?
+ res
+ elsif !blk.nil?
+ Factories::V6::Resources.campaign(&blk)
+ else
+ Factories::V6::Resources.campaign
+ 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
@@ -1680,37 +1950,10 @@
end
op
end
- # A convenience method for creating an CustomerNegativeCriterionOperation instance with
- # its "create" field prepopulated with an CustomerNegativeCriterion instance.
- #
- # @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 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::V6::Resources::CustomerNegativeCriterion]
- # a resource instance to be used for creation in this operation.
- #
- # @return [Google::Ads::GoogleAds::V6::Services::CustomerNegativeCriterionOperation] instance that will create the resource
- def self.customer_negative_criterion(res = nil, &blk)
- require "google/ads/google_ads/v6/services/customer_negative_criterion_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::CustomerNegativeCriterionOperation.new
- op["create"] = if !res.nil?
- res
- elsif !blk.nil?
- Factories::V6::Resources.customer_negative_criterion(&blk)
- else
- Factories::V6::Resources.customer_negative_criterion
- 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
@@ -1761,37 +2004,10 @@
end
op
end
- # A convenience method for creating an FeedItemSetOperation instance with
- # its "create" field prepopulated with an FeedItemSet instance.
- #
- # @overload feed_item_set
- # creates an operation instance, yielding a newly fabricated FeedItemSet
- # which can be used for setting attributes on the newly created resource
- # @overload feed_item_set(res)
- # creates an operation instance, with the resource to be created
- # set to the passed value (res)
- # @param res [Google::Ads::GoogleAds::V6::Resources::FeedItemSet]
- # a resource instance to be used for creation in this operation.
- #
- # @return [Google::Ads::GoogleAds::V6::Services::FeedItemSetOperation] instance that will create the resource
- def self.feed_item_set(res = nil, &blk)
- require "google/ads/google_ads/v6/services/feed_item_set_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::FeedItemSetOperation.new
- op["create"] = if !res.nil?
- res
- elsif !blk.nil?
- Factories::V6::Resources.feed_item_set(&blk)
- else
- Factories::V6::Resources.feed_item_set
- end
-
- op
- end
-
# A convenience method for creating an FeedItemTargetOperation instance with
# its "create" field prepopulated with an FeedItemTarget instance.
#
# @overload feed_item_target
# creates an operation instance, yielding a newly fabricated FeedItemTarget
@@ -1815,37 +2031,10 @@
end
op
end
- # A convenience method for creating an FeedMappingOperation instance with
- # its "create" field prepopulated with an FeedMapping instance.
- #
- # @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 feed_mapping(res)
- # creates an operation instance, with the resource to be created
- # set to the passed value (res)
- # @param res [Google::Ads::GoogleAds::V6::Resources::FeedMapping]
- # a resource instance to be used for creation in this operation.
- #
- # @return [Google::Ads::GoogleAds::V6::Services::FeedMappingOperation] instance that will create the resource
- def self.feed_mapping(res = nil, &blk)
- require "google/ads/google_ads/v6/services/feed_mapping_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::FeedMappingOperation.new
- op["create"] = if !res.nil?
- res
- elsif !blk.nil?
- Factories::V6::Resources.feed_mapping(&blk)
- else
- Factories::V6::Resources.feed_mapping
- end
-
- op
- end
-
# A convenience method for creating an FeedOperation instance with
# its "create" field prepopulated with an Feed instance.
#
# @overload feed
# creates an operation instance, yielding a newly fabricated Feed
@@ -1869,37 +2058,10 @@
end
op
end
- # A convenience method for creating an KeywordPlanAdGroupKeywordOperation instance with
- # its "create" field prepopulated with an KeywordPlanAdGroupKeyword instance.
- #
- # @overload keyword_plan_ad_group_keyword
- # creates an operation instance, yielding a newly fabricated KeywordPlanAdGroupKeyword
- # which can be used for setting attributes on the newly created resource
- # @overload keyword_plan_ad_group_keyword(res)
- # creates an operation instance, with the resource to be created
- # set to the passed value (res)
- # @param res [Google::Ads::GoogleAds::V6::Resources::KeywordPlanAdGroupKeyword]
- # a resource instance to be used for creation in this operation.
- #
- # @return [Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupKeywordOperation] instance that will create the resource
- def self.keyword_plan_ad_group_keyword(res = nil, &blk)
- require "google/ads/google_ads/v6/services/keyword_plan_ad_group_keyword_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupKeywordOperation.new
- op["create"] = if !res.nil?
- res
- elsif !blk.nil?
- Factories::V6::Resources.keyword_plan_ad_group_keyword(&blk)
- else
- Factories::V6::Resources.keyword_plan_ad_group_keyword
- end
-
- op
- end
-
# A convenience method for creating an KeywordPlanAdGroupOperation instance with
# its "create" field prepopulated with an KeywordPlanAdGroup instance.
#
# @overload keyword_plan_ad_group
# creates an operation instance, yielding a newly fabricated KeywordPlanAdGroup
@@ -2004,37 +2166,10 @@
end
op
end
- # A convenience method for creating an LabelOperation instance with
- # its "create" field prepopulated with an Label instance.
- #
- # @overload label
- # creates an operation instance, yielding a newly fabricated Label
- # which can be used for setting attributes on the newly created resource
- # @overload label(res)
- # creates an operation instance, with the resource to be created
- # set to the passed value (res)
- # @param res [Google::Ads::GoogleAds::V6::Resources::Label]
- # a resource instance to be used for creation in this operation.
- #
- # @return [Google::Ads::GoogleAds::V6::Services::LabelOperation] instance that will create the resource
- def self.label(res = nil, &blk)
- require "google/ads/google_ads/v6/services/label_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::LabelOperation.new
- op["create"] = if !res.nil?
- res
- elsif !blk.nil?
- Factories::V6::Resources.label(&blk)
- else
- Factories::V6::Resources.label
- end
-
- op
- end
-
# A convenience method for creating an MediaFileOperation instance with
# its "create" field prepopulated with an MediaFile instance.
#
# @overload media_file
# creates an operation instance, yielding a newly fabricated MediaFile
@@ -2085,118 +2220,64 @@
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 BatchJobOperation instance with
+ # its "create" field prepopulated with an BatchJob instance.
#
- # @overload shared_criterion
- # creates an operation instance, yielding a newly fabricated SharedCriterion
+ # @overload batch_job
+ # creates an operation instance, yielding a newly fabricated BatchJob
# which can be used for setting attributes on the newly created resource
- # @overload shared_criterion(res)
+ # @overload batch_job(res)
# creates an operation instance, with the resource to be created
# set to the passed value (res)
- # @param res [Google::Ads::GoogleAds::V6::Resources::SharedCriterion]
+ # @param res [Google::Ads::GoogleAds::V6::Resources::BatchJob]
# a resource instance to be used for creation in this operation.
#
- # @return [Google::Ads::GoogleAds::V6::Services::SharedCriterionOperation] instance that will create the resource
- def self.shared_criterion(res = nil, &blk)
- require "google/ads/google_ads/v6/services/shared_criterion_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::SharedCriterionOperation.new
+ # @return [Google::Ads::GoogleAds::V6::Services::BatchJobOperation] instance that will create the resource
+ def self.batch_job(res = nil, &blk)
+ require "google/ads/google_ads/v6/services/batch_job_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::BatchJobOperation.new
op["create"] = if !res.nil?
res
elsif !blk.nil?
- Factories::V6::Resources.shared_criterion(&blk)
+ Factories::V6::Resources.batch_job(&blk)
else
- Factories::V6::Resources.shared_criterion
+ Factories::V6::Resources.batch_job
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 CustomerUserAccessInvitationOperation instance with
+ # its "create" field prepopulated with an CustomerUserAccessInvitation instance.
#
- # @overload shared_set
- # creates an operation instance, yielding a newly fabricated SharedSet
+ # @overload customer_user_access_invitation
+ # creates an operation instance, yielding a newly fabricated CustomerUserAccessInvitation
# which can be used for setting attributes on the newly created resource
- # @overload shared_set(res)
+ # @overload customer_user_access_invitation(res)
# creates an operation instance, with the resource to be created
# set to the passed value (res)
- # @param res [Google::Ads::GoogleAds::V6::Resources::SharedSet]
+ # @param res [Google::Ads::GoogleAds::V6::Resources::CustomerUserAccessInvitation]
# a resource instance to be used for creation in this operation.
#
- # @return [Google::Ads::GoogleAds::V6::Services::SharedSetOperation] instance that will create the resource
- def self.shared_set(res = nil, &blk)
- require "google/ads/google_ads/v6/services/shared_set_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::SharedSetOperation.new
+ # @return [Google::Ads::GoogleAds::V6::Services::CustomerUserAccessInvitationOperation] instance that will create the resource
+ def self.customer_user_access_invitation(res = nil, &blk)
+ require "google/ads/google_ads/v6/services/customer_user_access_invitation_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::CustomerUserAccessInvitationOperation.new
op["create"] = if !res.nil?
res
elsif !blk.nil?
- Factories::V6::Resources.shared_set(&blk)
+ Factories::V6::Resources.customer_user_access_invitation(&blk)
else
- Factories::V6::Resources.shared_set
+ Factories::V6::Resources.customer_user_access_invitation
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::V6::Resources::UserList]
- # a resource instance to be used for creation in this operation.
- #
- # @return [Google::Ads::GoogleAds::V6::Services::UserListOperation] instance that will create the resource
- def self.user_list(res = nil, &blk)
- require "google/ads/google_ads/v6/services/user_list_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::UserListOperation.new
- op["create"] = if !res.nil?
- res
- elsif !blk.nil?
- Factories::V6::Resources.user_list(&blk)
- else
- Factories::V6::Resources.user_list
- end
-
- op
- end
-
- # A convenience method for creating an BatchJobOperation instance with
- # its "create" field prepopulated with an BatchJob instance.
- #
- # @overload batch_job
- # creates an operation instance, yielding a newly fabricated BatchJob
- # which can be used for setting attributes on the newly created resource
- # @overload batch_job(res)
- # creates an operation instance, with the resource to be created
- # set to the passed value (res)
- # @param res [Google::Ads::GoogleAds::V6::Resources::BatchJob]
- # a resource instance to be used for creation in this operation.
- #
- # @return [Google::Ads::GoogleAds::V6::Services::BatchJobOperation] instance that will create the resource
- def self.batch_job(res = nil, &blk)
- require "google/ads/google_ads/v6/services/batch_job_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::BatchJobOperation.new
- op["create"] = if !res.nil?
- res
- elsif !blk.nil?
- Factories::V6::Resources.batch_job(&blk)
- else
- Factories::V6::Resources.batch_job
- end
-
- op
- end
-
# A convenience method for creating an OfflineUserDataJobOperation instance with
# its "create" field prepopulated with an UserData instance.
#
# @overload offline_user_data_job
# creates an operation instance, yielding a newly fabricated UserData
@@ -2220,59 +2301,59 @@
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 UserDataOperation instance with
+ # its "create" field prepopulated with an UserData instance.
#
- # @overload custom_interest
- # creates an operation instance, yielding a newly fabricated CustomInterest
+ # @overload user_data
+ # creates an operation instance, yielding a newly fabricated UserData
# which can be used for setting attributes on the newly created resource
- # @overload custom_interest(res)
+ # @overload user_data(res)
# creates an operation instance, with the resource to be created
# set to the passed value (res)
- # @param res [Google::Ads::GoogleAds::V6::Resources::CustomInterest]
+ # @param res [Google::Ads::GoogleAds::V6::Common::UserData]
# a resource instance to be used for creation in this operation.
#
- # @return [Google::Ads::GoogleAds::V6::Services::CustomInterestOperation] instance that will create the resource
- def self.custom_interest(res = nil, &blk)
- require "google/ads/google_ads/v6/services/custom_interest_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::CustomInterestOperation.new
+ # @return [Google::Ads::GoogleAds::V6::Services::UserDataOperation] instance that will create the resource
+ def self.user_data(res = nil, &blk)
+ require "google/ads/google_ads/v6/services/user_data_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::UserDataOperation.new
op["create"] = if !res.nil?
res
elsif !blk.nil?
- Factories::V6::Resources.custom_interest(&blk)
+ Factories::V6::Resources.user_data(&blk)
else
- Factories::V6::Resources.custom_interest
+ Factories::V6::Resources.user_data
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 AccountBudgetProposalOperation instance with
+ # its "create" field prepopulated with an AccountBudgetProposal instance.
#
- # @overload customer_client_link
- # creates an operation instance, yielding a newly fabricated CustomerClientLink
+ # @overload account_budget_proposal
+ # creates an operation instance, yielding a newly fabricated AccountBudgetProposal
# which can be used for setting attributes on the newly created resource
- # @overload customer_client_link(res)
+ # @overload account_budget_proposal(res)
# creates an operation instance, with the resource to be created
# set to the passed value (res)
- # @param res [Google::Ads::GoogleAds::V6::Resources::CustomerClientLink]
+ # @param res [Google::Ads::GoogleAds::V6::Resources::AccountBudgetProposal]
# a resource instance to be used for creation in this operation.
#
- # @return [Google::Ads::GoogleAds::V6::Services::CustomerClientLinkOperation] instance that will create the resource
- def self.customer_client_link(res = nil, &blk)
- require "google/ads/google_ads/v6/services/customer_client_link_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::CustomerClientLinkOperation.new
+ # @return [Google::Ads::GoogleAds::V6::Services::AccountBudgetProposalOperation] instance that will create the resource
+ def self.account_budget_proposal(res = nil, &blk)
+ require "google/ads/google_ads/v6/services/account_budget_proposal_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::AccountBudgetProposalOperation.new
op["create"] = if !res.nil?
res
elsif !blk.nil?
- Factories::V6::Resources.customer_client_link(&blk)
+ Factories::V6::Resources.account_budget_proposal(&blk)
else
- Factories::V6::Resources.customer_client_link
+ Factories::V6::Resources.account_budget_proposal
end
op
end
@@ -2301,37 +2382,10 @@
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
- # which can be used for setting attributes on the newly created resource
- # @overload user_data(res)
- # creates an operation instance, with the resource to be created
- # set to the passed value (res)
- # @param res [Google::Ads::GoogleAds::V6::Common::UserData]
- # a resource instance to be used for creation in this operation.
- #
- # @return [Google::Ads::GoogleAds::V6::Services::UserDataOperation] instance that will create the resource
- def self.user_data(res = nil, &blk)
- require "google/ads/google_ads/v6/services/user_data_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::UserDataOperation.new
- op["create"] = if !res.nil?
- res
- elsif !blk.nil?
- Factories::V6::Resources.user_data(&blk)
- else
- Factories::V6::Resources.user_data
- 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
@@ -2354,145 +2408,208 @@
Factories::V6::Resources.billing_setup
end
op
end
+ end
- # A convenience method for creating an CustomerUserAccessInvitationOperation instance with
- # its "create" field prepopulated with an CustomerUserAccessInvitation instance.
+ 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_user_access_invitation
- # creates an operation instance, yielding a newly fabricated CustomerUserAccessInvitation
- # which can be used for setting attributes on the newly created resource
- # @overload customer_user_access_invitation(res)
- # creates an operation instance, with the resource to be created
- # set to the passed value (res)
- # @param res [Google::Ads::GoogleAds::V6::Resources::CustomerUserAccessInvitation]
- # a resource instance to be used for creation in this operation.
+ # @overload #customer_client_link(path, &blk)
+ # @param path [String] a resource path for the resource to update
+ # @yield [Google::Ads::GoogleAds::V6::Resources::CustomerClientLink] a new instance of the resource for this update operation, on
+ # which fields can be set to update
#
- # @return [Google::Ads::GoogleAds::V6::Services::CustomerUserAccessInvitationOperation] instance that will create the resource
- def self.customer_user_access_invitation(res = nil, &blk)
- require "google/ads/google_ads/v6/services/customer_user_access_invitation_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::CustomerUserAccessInvitationOperation.new
- op["create"] = if !res.nil?
- res
- elsif !blk.nil?
- Factories::V6::Resources.customer_user_access_invitation(&blk)
+ # @overload #customer_client_link(resource, &blk)
+ # @param resource [Google::Ads::GoogleAds::V6::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::V6::Services::CustomerClientLinkOperation] the operation instance to update the resource
+ def self.customer_client_link(resource_or_path, &blk)
+ require "google/ads/google_ads/v6/services/customer_client_link_service_pb"
+ res = case resource_or_path
+ when Google::Ads::GoogleAds::V6::Resources::CustomerClientLink
+ resource_or_path
+ # got a resource path
+ when String
+ obj = Google::Ads::GoogleAds::V6::Resources::CustomerClientLink.new
+ obj.resource_name = resource_or_path
+ obj
else
- Factories::V6::Resources.customer_user_access_invitation
+ unless Google::Ads::GoogleAds::V6::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::V6::Services::CustomerClientLinkOperation.new
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
+ op["update"] = res
op
end
- # A convenience method for creating an AccountBudgetProposalOperation instance with
- # its "create" field prepopulated with an AccountBudgetProposal instance.
+ # 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 account_budget_proposal
- # creates an operation instance, yielding a newly fabricated AccountBudgetProposal
- # which can be used for setting attributes on the newly created resource
- # @overload account_budget_proposal(res)
- # creates an operation instance, with the resource to be created
- # set to the passed value (res)
- # @param res [Google::Ads::GoogleAds::V6::Resources::AccountBudgetProposal]
- # a resource instance to be used for creation in this operation.
+ # @overload #custom_interest(path, &blk)
+ # @param path [String] a resource path for the resource to update
+ # @yield [Google::Ads::GoogleAds::V6::Resources::CustomInterest] a new instance of the resource for this update operation, on
+ # which fields can be set to update
#
- # @return [Google::Ads::GoogleAds::V6::Services::AccountBudgetProposalOperation] instance that will create the resource
- def self.account_budget_proposal(res = nil, &blk)
- require "google/ads/google_ads/v6/services/account_budget_proposal_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::AccountBudgetProposalOperation.new
- op["create"] = if !res.nil?
- res
- elsif !blk.nil?
- Factories::V6::Resources.account_budget_proposal(&blk)
+ # @overload #custom_interest(resource, &blk)
+ # @param resource [Google::Ads::GoogleAds::V6::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::V6::Services::CustomInterestOperation] the operation instance to update the resource
+ def self.custom_interest(resource_or_path, &blk)
+ require "google/ads/google_ads/v6/services/custom_interest_service_pb"
+ res = case resource_or_path
+ when Google::Ads::GoogleAds::V6::Resources::CustomInterest
+ resource_or_path
+ # got a resource path
+ when String
+ obj = Google::Ads::GoogleAds::V6::Resources::CustomInterest.new
+ obj.resource_name = resource_or_path
+ obj
else
- Factories::V6::Resources.account_budget_proposal
+ unless Google::Ads::GoogleAds::V6::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::V6::Services::CustomInterestOperation.new
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
+ op["update"] = res
op
end
- end
- module UpdateResource
- # A convenience method for creating an CampaignBudgetOperation instance with
- # its "update" field prepopulated with an CampaignBudget instance, and
+ # A convenience method for creating an KeywordPlanAdGroupKeywordOperation instance with
+ # its "update" field prepopulated with an KeywordPlanAdGroupKeyword instance, and
# its "update_mask" field populated as needed to send the updates to the API.
#
- # @overload #campaign_budget(path, &blk)
+ # @overload #keyword_plan_ad_group_keyword(path, &blk)
# @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V6::Resources::CampaignBudget] a new instance of the resource for this update operation, on
+ # @yield [Google::Ads::GoogleAds::V6::Resources::KeywordPlanAdGroupKeyword] a new instance of the resource for this update operation, on
# which fields can be set to update
#
- # @overload #campaign_budget(resource, &blk)
- # @param resource [Google::Ads::GoogleAds::V6::Resources::CampaignBudget] a resource instance to update
+ # @overload #keyword_plan_ad_group_keyword(resource, &blk)
+ # @param resource [Google::Ads::GoogleAds::V6::Resources::KeywordPlanAdGroupKeyword] a resource instance to update
# @yield the passed block is called and updates against `resource` are recordered in the update mask
- # @return [Google::Ads::GoogleAds::V6::Services::CampaignBudgetOperation] the operation instance to update the resource
- def self.campaign_budget(resource_or_path, &blk)
- require "google/ads/google_ads/v6/services/campaign_budget_service_pb"
+ # @return [Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupKeywordOperation] the operation instance to update the resource
+ def self.keyword_plan_ad_group_keyword(resource_or_path, &blk)
+ require "google/ads/google_ads/v6/services/keyword_plan_ad_group_keyword_service_pb"
res = case resource_or_path
- when Google::Ads::GoogleAds::V6::Resources::CampaignBudget
+ when Google::Ads::GoogleAds::V6::Resources::KeywordPlanAdGroupKeyword
resource_or_path
# got a resource path
when String
- obj = Google::Ads::GoogleAds::V6::Resources::CampaignBudget.new
+ obj = Google::Ads::GoogleAds::V6::Resources::KeywordPlanAdGroupKeyword.new
obj.resource_name = resource_or_path
obj
else
- unless Google::Ads::GoogleAds::V6::Resources::CampaignBudget === res
+ unless Google::Ads::GoogleAds::V6::Resources::KeywordPlanAdGroupKeyword === 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::V6::Services::CampaignBudgetOperation.new
+ op = Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupKeywordOperation.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
+ # 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 #customer(path, &blk)
+ # @overload #ad_group(path, &blk)
# @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V6::Resources::Customer] a new instance of the resource for this update operation, on
+ # @yield [Google::Ads::GoogleAds::V6::Resources::AdGroup] 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::V6::Resources::Customer] a resource instance to update
+ # @overload #ad_group(resource, &blk)
+ # @param resource [Google::Ads::GoogleAds::V6::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::V6::Services::CustomerOperation] the operation instance to update the resource
- def self.customer(resource_or_path, &blk)
- require "google/ads/google_ads/v6/services/customer_service_pb"
+ # @return [Google::Ads::GoogleAds::V6::Services::AdGroupOperation] the operation instance to update the resource
+ def self.ad_group(resource_or_path, &blk)
+ require "google/ads/google_ads/v6/services/ad_group_service_pb"
res = case resource_or_path
- when Google::Ads::GoogleAds::V6::Resources::Customer
+ when Google::Ads::GoogleAds::V6::Resources::AdGroup
resource_or_path
# got a resource path
when String
- obj = Google::Ads::GoogleAds::V6::Resources::Customer.new
+ obj = Google::Ads::GoogleAds::V6::Resources::AdGroup.new
obj.resource_name = resource_or_path
obj
else
- unless Google::Ads::GoogleAds::V6::Resources::Customer === res
+ unless Google::Ads::GoogleAds::V6::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::V6::Services::CustomerOperation.new
+ op = Google::Ads::GoogleAds::V6::Services::AdGroupOperation.new
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
op["update"] = res
op
end
+ # A convenience method for creating an FeedItemSetOperation instance with
+ # its "update" field prepopulated with an FeedItemSet instance, and
+ # its "update_mask" field populated as needed to send the updates to the API.
+ #
+ # @overload #feed_item_set(path, &blk)
+ # @param path [String] a resource path for the resource to update
+ # @yield [Google::Ads::GoogleAds::V6::Resources::FeedItemSet] a new instance of the resource for this update operation, on
+ # which fields can be set to update
+ #
+ # @overload #feed_item_set(resource, &blk)
+ # @param resource [Google::Ads::GoogleAds::V6::Resources::FeedItemSet] a resource instance to update
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
+ # @return [Google::Ads::GoogleAds::V6::Services::FeedItemSetOperation] the operation instance to update the resource
+ def self.feed_item_set(resource_or_path, &blk)
+ require "google/ads/google_ads/v6/services/feed_item_set_service_pb"
+ res = case resource_or_path
+ when Google::Ads::GoogleAds::V6::Resources::FeedItemSet
+ resource_or_path
+ # got a resource path
+ when String
+ obj = Google::Ads::GoogleAds::V6::Resources::FeedItemSet.new
+ obj.resource_name = resource_or_path
+ obj
+ else
+ unless Google::Ads::GoogleAds::V6::Resources::FeedItemSet === 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::V6::Services::FeedItemSetOperation.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
# its "update_mask" field populated as needed to send the updates to the API.
#
# @overload #campaign_bid_modifier(path, &blk)
@@ -2528,127 +2645,244 @@
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
+ # 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(path, &blk)
+ # @overload #customer_manager_link(path, &blk)
# @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V6::Resources::Campaign] a new instance of the resource for this update operation, on
+ # @yield [Google::Ads::GoogleAds::V6::Resources::CustomerManagerLink] a new instance of the resource for this update operation, on
# which fields can be set to update
#
- # @overload #campaign(resource, &blk)
- # @param resource [Google::Ads::GoogleAds::V6::Resources::Campaign] a resource instance to update
+ # @overload #customer_manager_link(resource, &blk)
+ # @param resource [Google::Ads::GoogleAds::V6::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::V6::Services::CampaignOperation] the operation instance to update the resource
- def self.campaign(resource_or_path, &blk)
- require "google/ads/google_ads/v6/services/campaign_service_pb"
+ # @return [Google::Ads::GoogleAds::V6::Services::CustomerManagerLinkOperation] the operation instance to update the resource
+ def self.customer_manager_link(resource_or_path, &blk)
+ require "google/ads/google_ads/v6/services/customer_manager_link_service_pb"
res = case resource_or_path
- when Google::Ads::GoogleAds::V6::Resources::Campaign
+ when Google::Ads::GoogleAds::V6::Resources::CustomerManagerLink
resource_or_path
# got a resource path
when String
- obj = Google::Ads::GoogleAds::V6::Resources::Campaign.new
+ obj = Google::Ads::GoogleAds::V6::Resources::CustomerManagerLink.new
obj.resource_name = resource_or_path
obj
else
- unless Google::Ads::GoogleAds::V6::Resources::Campaign === res
+ unless Google::Ads::GoogleAds::V6::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::V6::Services::CampaignOperation.new
+ op = Google::Ads::GoogleAds::V6::Services::CustomerManagerLinkOperation.new
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
op["update"] = res
op
end
- # A convenience method for creating an BiddingStrategyOperation instance with
- # its "update" field prepopulated with an BiddingStrategy instance, and
+ # A convenience method for creating an 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 #bidding_strategy(path, &blk)
+ # @overload #campaign_draft(path, &blk)
# @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V6::Resources::BiddingStrategy] a new instance of the resource for this update operation, on
+ # @yield [Google::Ads::GoogleAds::V6::Resources::CampaignDraft] a new instance of the resource for this update operation, on
# which fields can be set to update
#
- # @overload #bidding_strategy(resource, &blk)
- # @param resource [Google::Ads::GoogleAds::V6::Resources::BiddingStrategy] a resource instance to update
+ # @overload #campaign_draft(resource, &blk)
+ # @param resource [Google::Ads::GoogleAds::V6::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::V6::Services::BiddingStrategyOperation] the operation instance to update the resource
- def self.bidding_strategy(resource_or_path, &blk)
- require "google/ads/google_ads/v6/services/bidding_strategy_service_pb"
+ # @return [Google::Ads::GoogleAds::V6::Services::CampaignDraftOperation] the operation instance to update the resource
+ def self.campaign_draft(resource_or_path, &blk)
+ require "google/ads/google_ads/v6/services/campaign_draft_service_pb"
res = case resource_or_path
- when Google::Ads::GoogleAds::V6::Resources::BiddingStrategy
+ when Google::Ads::GoogleAds::V6::Resources::CampaignDraft
resource_or_path
# got a resource path
when String
- obj = Google::Ads::GoogleAds::V6::Resources::BiddingStrategy.new
+ obj = Google::Ads::GoogleAds::V6::Resources::CampaignDraft.new
obj.resource_name = resource_or_path
obj
else
- unless Google::Ads::GoogleAds::V6::Resources::BiddingStrategy === res
+ unless Google::Ads::GoogleAds::V6::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::V6::Services::BiddingStrategyOperation.new
+ op = Google::Ads::GoogleAds::V6::Services::CampaignDraftOperation.new
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
op["update"] = res
op
end
- # A convenience method for creating an AdGroupOperation instance with
- # its "update" field prepopulated with an AdGroup instance, and
+ # A convenience method for creating an 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 #ad_group(path, &blk)
+ # @overload #user_list(path, &blk)
# @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V6::Resources::AdGroup] a new instance of the resource for this update operation, on
+ # @yield [Google::Ads::GoogleAds::V6::Resources::UserList] 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::V6::Resources::AdGroup] a resource instance to update
+ # @overload #user_list(resource, &blk)
+ # @param resource [Google::Ads::GoogleAds::V6::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::V6::Services::AdGroupOperation] the operation instance to update the resource
- def self.ad_group(resource_or_path, &blk)
- require "google/ads/google_ads/v6/services/ad_group_service_pb"
+ # @return [Google::Ads::GoogleAds::V6::Services::UserListOperation] the operation instance to update the resource
+ def self.user_list(resource_or_path, &blk)
+ require "google/ads/google_ads/v6/services/user_list_service_pb"
res = case resource_or_path
- when Google::Ads::GoogleAds::V6::Resources::AdGroup
+ when Google::Ads::GoogleAds::V6::Resources::UserList
resource_or_path
# got a resource path
when String
- obj = Google::Ads::GoogleAds::V6::Resources::AdGroup.new
+ obj = Google::Ads::GoogleAds::V6::Resources::UserList.new
obj.resource_name = resource_or_path
obj
else
- unless Google::Ads::GoogleAds::V6::Resources::AdGroup === res
+ unless Google::Ads::GoogleAds::V6::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::V6::Services::AdGroupOperation.new
+ op = Google::Ads::GoogleAds::V6::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)
+ # @param path [String] a resource path for the resource to update
+ # @yield [Google::Ads::GoogleAds::V6::Resources::Customer] 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::V6::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::V6::Services::CustomerOperation] the operation instance to update the resource
+ def self.customer(resource_or_path, &blk)
+ require "google/ads/google_ads/v6/services/customer_service_pb"
+ res = case resource_or_path
+ when Google::Ads::GoogleAds::V6::Resources::Customer
+ resource_or_path
+ # got a resource path
+ when String
+ obj = Google::Ads::GoogleAds::V6::Resources::Customer.new
+ obj.resource_name = resource_or_path
+ obj
+ else
+ unless Google::Ads::GoogleAds::V6::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::V6::Services::CustomerOperation.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
+ # its "update_mask" field populated as needed to send the updates to the API.
+ #
+ # @overload #shared_set(path, &blk)
+ # @param path [String] a resource path for the resource to update
+ # @yield [Google::Ads::GoogleAds::V6::Resources::SharedSet] 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::V6::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::V6::Services::SharedSetOperation] the operation instance to update the resource
+ def self.shared_set(resource_or_path, &blk)
+ require "google/ads/google_ads/v6/services/shared_set_service_pb"
+ res = case resource_or_path
+ when Google::Ads::GoogleAds::V6::Resources::SharedSet
+ resource_or_path
+ # got a resource path
+ when String
+ obj = Google::Ads::GoogleAds::V6::Resources::SharedSet.new
+ obj.resource_name = resource_or_path
+ obj
+ else
+ unless Google::Ads::GoogleAds::V6::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::V6::Services::SharedSetOperation.new
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
+ op["update"] = res
+ op
+ end
+
+ # A convenience method for creating an LabelOperation instance with
+ # its "update" field prepopulated with an Label instance, and
+ # its "update_mask" field populated as needed to send the updates to the API.
+ #
+ # @overload #label(path, &blk)
+ # @param path [String] a resource path for the resource to update
+ # @yield [Google::Ads::GoogleAds::V6::Resources::Label] 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::V6::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::V6::Services::LabelOperation] the operation instance to update the resource
+ def self.label(resource_or_path, &blk)
+ require "google/ads/google_ads/v6/services/label_service_pb"
+ res = case resource_or_path
+ when Google::Ads::GoogleAds::V6::Resources::Label
+ resource_or_path
+ # got a resource path
+ when String
+ obj = Google::Ads::GoogleAds::V6::Resources::Label.new
+ obj.resource_name = resource_or_path
+ obj
+ else
+ unless Google::Ads::GoogleAds::V6::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::V6::Services::LabelOperation.new
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
+ op["update"] = res
+ op
+ end
+
# A convenience method for creating an AdGroupAdOperation instance with
# its "update" field prepopulated with an AdGroupAd instance, and
# its "update_mask" field populated as needed to send the updates to the API.
#
# @overload #ad_group_ad(path, &blk)
@@ -2957,88 +3191,127 @@
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
op["update"] = res
op
end
- # A convenience method for creating an CampaignCriterionOperation instance with
- # its "update" field prepopulated with an CampaignCriterion instance, and
+ # A convenience method for creating an 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 #campaign_criterion(path, &blk)
+ # @overload #bidding_strategy(path, &blk)
# @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V6::Resources::CampaignCriterion] a new instance of the resource for this update operation, on
+ # @yield [Google::Ads::GoogleAds::V6::Resources::BiddingStrategy] a new instance of the resource for this update operation, on
# which fields can be set to update
#
- # @overload #campaign_criterion(resource, &blk)
- # @param resource [Google::Ads::GoogleAds::V6::Resources::CampaignCriterion] a resource instance to update
+ # @overload #bidding_strategy(resource, &blk)
+ # @param resource [Google::Ads::GoogleAds::V6::Resources::BiddingStrategy] a resource instance to update
# @yield the passed block is called and updates against `resource` are recordered in the update mask
- # @return [Google::Ads::GoogleAds::V6::Services::CampaignCriterionOperation] the operation instance to update the resource
- def self.campaign_criterion(resource_or_path, &blk)
- require "google/ads/google_ads/v6/services/campaign_criterion_service_pb"
+ # @return [Google::Ads::GoogleAds::V6::Services::BiddingStrategyOperation] the operation instance to update the resource
+ def self.bidding_strategy(resource_or_path, &blk)
+ require "google/ads/google_ads/v6/services/bidding_strategy_service_pb"
res = case resource_or_path
- when Google::Ads::GoogleAds::V6::Resources::CampaignCriterion
+ when Google::Ads::GoogleAds::V6::Resources::BiddingStrategy
resource_or_path
# got a resource path
when String
- obj = Google::Ads::GoogleAds::V6::Resources::CampaignCriterion.new
+ obj = Google::Ads::GoogleAds::V6::Resources::BiddingStrategy.new
obj.resource_name = resource_or_path
obj
else
- unless Google::Ads::GoogleAds::V6::Resources::CampaignCriterion === res
+ unless Google::Ads::GoogleAds::V6::Resources::BiddingStrategy === res
raise ArgumentError.new(
"Called #{__method__} with instance of wrong type:"\
" #{res.class} want #{operation.update_class}"\
" or String representing resource name"
)
end
end
- op = Google::Ads::GoogleAds::V6::Services::CampaignCriterionOperation.new
+ op = Google::Ads::GoogleAds::V6::Services::BiddingStrategyOperation.new
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
op["update"] = res
op
end
- # A convenience method for creating an CampaignDraftOperation instance with
- # its "update" field prepopulated with an CampaignDraft instance, and
+ # A convenience method for creating an 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_draft(path, &blk)
+ # @overload #campaign_budget(path, &blk)
# @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V6::Resources::CampaignDraft] a new instance of the resource for this update operation, on
+ # @yield [Google::Ads::GoogleAds::V6::Resources::CampaignBudget] 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::V6::Resources::CampaignDraft] a resource instance to update
+ # @overload #campaign_budget(resource, &blk)
+ # @param resource [Google::Ads::GoogleAds::V6::Resources::CampaignBudget] a resource instance to update
# @yield the passed block is called and updates against `resource` are recordered in the update mask
- # @return [Google::Ads::GoogleAds::V6::Services::CampaignDraftOperation] the operation instance to update the resource
- def self.campaign_draft(resource_or_path, &blk)
- require "google/ads/google_ads/v6/services/campaign_draft_service_pb"
+ # @return [Google::Ads::GoogleAds::V6::Services::CampaignBudgetOperation] the operation instance to update the resource
+ def self.campaign_budget(resource_or_path, &blk)
+ require "google/ads/google_ads/v6/services/campaign_budget_service_pb"
res = case resource_or_path
- when Google::Ads::GoogleAds::V6::Resources::CampaignDraft
+ when Google::Ads::GoogleAds::V6::Resources::CampaignBudget
resource_or_path
# got a resource path
when String
- obj = Google::Ads::GoogleAds::V6::Resources::CampaignDraft.new
+ obj = Google::Ads::GoogleAds::V6::Resources::CampaignBudget.new
obj.resource_name = resource_or_path
obj
else
- unless Google::Ads::GoogleAds::V6::Resources::CampaignDraft === res
+ unless Google::Ads::GoogleAds::V6::Resources::CampaignBudget === res
raise ArgumentError.new(
"Called #{__method__} with instance of wrong type:"\
" #{res.class} want #{operation.update_class}"\
" or String representing resource name"
)
end
end
- op = Google::Ads::GoogleAds::V6::Services::CampaignDraftOperation.new
+ op = Google::Ads::GoogleAds::V6::Services::CampaignBudgetOperation.new
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
op["update"] = res
op
end
+ # A convenience method for creating an CampaignCriterionOperation instance with
+ # its "update" field prepopulated with an CampaignCriterion instance, and
+ # its "update_mask" field populated as needed to send the updates to the API.
+ #
+ # @overload #campaign_criterion(path, &blk)
+ # @param path [String] a resource path for the resource to update
+ # @yield [Google::Ads::GoogleAds::V6::Resources::CampaignCriterion] a new instance of the resource for this update operation, on
+ # which fields can be set to update
+ #
+ # @overload #campaign_criterion(resource, &blk)
+ # @param resource [Google::Ads::GoogleAds::V6::Resources::CampaignCriterion] a resource instance to update
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
+ # @return [Google::Ads::GoogleAds::V6::Services::CampaignCriterionOperation] the operation instance to update the resource
+ def self.campaign_criterion(resource_or_path, &blk)
+ require "google/ads/google_ads/v6/services/campaign_criterion_service_pb"
+ res = case resource_or_path
+ when Google::Ads::GoogleAds::V6::Resources::CampaignCriterion
+ resource_or_path
+ # got a resource path
+ when String
+ obj = Google::Ads::GoogleAds::V6::Resources::CampaignCriterion.new
+ obj.resource_name = resource_or_path
+ obj
+ else
+ unless Google::Ads::GoogleAds::V6::Resources::CampaignCriterion === res
+ raise ArgumentError.new(
+ "Called #{__method__} with instance of wrong type:"\
+ " #{res.class} want #{operation.update_class}"\
+ " or String representing resource name"
+ )
+ end
+ end
+
+ op = Google::Ads::GoogleAds::V6::Services::CampaignCriterionOperation.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)
@@ -3152,10 +3425,49 @@
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)
+ # @param path [String] a resource path for the resource to update
+ # @yield [Google::Ads::GoogleAds::V6::Resources::Campaign] a new instance of the resource for this update operation, on
+ # which fields can be set to update
+ #
+ # @overload #campaign(resource, &blk)
+ # @param resource [Google::Ads::GoogleAds::V6::Resources::Campaign] a resource instance to update
+ # @yield the passed block is called and updates against `resource` are recordered in the update mask
+ # @return [Google::Ads::GoogleAds::V6::Services::CampaignOperation] the operation instance to update the resource
+ def self.campaign(resource_or_path, &blk)
+ require "google/ads/google_ads/v6/services/campaign_service_pb"
+ res = case resource_or_path
+ when Google::Ads::GoogleAds::V6::Resources::Campaign
+ resource_or_path
+ # got a resource path
+ when String
+ obj = Google::Ads::GoogleAds::V6::Resources::Campaign.new
+ obj.resource_name = resource_or_path
+ obj
+ else
+ unless Google::Ads::GoogleAds::V6::Resources::Campaign === 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::V6::Services::CampaignOperation.new
+ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
+ op["update"] = res
+ op
+ end
+
# A convenience method for creating an ConversionActionOperation instance with
# its "update" field prepopulated with an ConversionAction instance, and
# its "update_mask" field populated as needed to send the updates to the API.
#
# @overload #conversion_action(path, &blk)
@@ -3347,49 +3659,10 @@
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
op["update"] = res
op
end
- # A convenience method for creating an FeedItemSetOperation instance with
- # its "update" field prepopulated with an FeedItemSet instance, and
- # its "update_mask" field populated as needed to send the updates to the API.
- #
- # @overload #feed_item_set(path, &blk)
- # @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V6::Resources::FeedItemSet] a new instance of the resource for this update operation, on
- # which fields can be set to update
- #
- # @overload #feed_item_set(resource, &blk)
- # @param resource [Google::Ads::GoogleAds::V6::Resources::FeedItemSet] a resource instance to update
- # @yield the passed block is called and updates against `resource` are recordered in the update mask
- # @return [Google::Ads::GoogleAds::V6::Services::FeedItemSetOperation] the operation instance to update the resource
- def self.feed_item_set(resource_or_path, &blk)
- require "google/ads/google_ads/v6/services/feed_item_set_service_pb"
- res = case resource_or_path
- when Google::Ads::GoogleAds::V6::Resources::FeedItemSet
- resource_or_path
- # got a resource path
- when String
- obj = Google::Ads::GoogleAds::V6::Resources::FeedItemSet.new
- obj.resource_name = resource_or_path
- obj
- else
- unless Google::Ads::GoogleAds::V6::Resources::FeedItemSet === 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::V6::Services::FeedItemSetOperation.new
- op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
- op["update"] = res
- op
- end
-
# A convenience method for creating an FeedOperation instance with
# its "update" field prepopulated with an Feed instance, and
# its "update_mask" field populated as needed to send the updates to the API.
#
# @overload #feed(path, &blk)
@@ -3425,49 +3698,10 @@
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
op["update"] = res
op
end
- # A convenience method for creating an KeywordPlanAdGroupKeywordOperation instance with
- # its "update" field prepopulated with an KeywordPlanAdGroupKeyword instance, and
- # its "update_mask" field populated as needed to send the updates to the API.
- #
- # @overload #keyword_plan_ad_group_keyword(path, &blk)
- # @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V6::Resources::KeywordPlanAdGroupKeyword] a new instance of the resource for this update operation, on
- # which fields can be set to update
- #
- # @overload #keyword_plan_ad_group_keyword(resource, &blk)
- # @param resource [Google::Ads::GoogleAds::V6::Resources::KeywordPlanAdGroupKeyword] a resource instance to update
- # @yield the passed block is called and updates against `resource` are recordered in the update mask
- # @return [Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupKeywordOperation] the operation instance to update the resource
- def self.keyword_plan_ad_group_keyword(resource_or_path, &blk)
- require "google/ads/google_ads/v6/services/keyword_plan_ad_group_keyword_service_pb"
- res = case resource_or_path
- when Google::Ads::GoogleAds::V6::Resources::KeywordPlanAdGroupKeyword
- resource_or_path
- # got a resource path
- when String
- obj = Google::Ads::GoogleAds::V6::Resources::KeywordPlanAdGroupKeyword.new
- obj.resource_name = resource_or_path
- obj
- else
- unless Google::Ads::GoogleAds::V6::Resources::KeywordPlanAdGroupKeyword === 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::V6::Services::KeywordPlanAdGroupKeywordOperation.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)
@@ -3620,49 +3854,10 @@
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
op["update"] = res
op
end
- # A convenience method for creating an LabelOperation instance with
- # its "update" field prepopulated with an Label instance, and
- # its "update_mask" field populated as needed to send the updates to the API.
- #
- # @overload #label(path, &blk)
- # @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V6::Resources::Label] 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::V6::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::V6::Services::LabelOperation] the operation instance to update the resource
- def self.label(resource_or_path, &blk)
- require "google/ads/google_ads/v6/services/label_service_pb"
- res = case resource_or_path
- when Google::Ads::GoogleAds::V6::Resources::Label
- resource_or_path
- # got a resource path
- when String
- obj = Google::Ads::GoogleAds::V6::Resources::Label.new
- obj.resource_name = resource_or_path
- obj
- else
- unless Google::Ads::GoogleAds::V6::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::V6::Services::LabelOperation.new
- op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
- op["update"] = res
- op
- end
-
# A convenience method for creating an RemarketingActionOperation instance with
# its "update" field prepopulated with an RemarketingAction instance, and
# its "update_mask" field populated as needed to send the updates to the API.
#
# @overload #remarketing_action(path, &blk)
@@ -3698,127 +3893,88 @@
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 AccountLinkOperation instance with
+ # its "update" field prepopulated with an AccountLink instance, and
# its "update_mask" field populated as needed to send the updates to the API.
#
- # @overload #shared_set(path, &blk)
+ # @overload #account_link(path, &blk)
# @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V6::Resources::SharedSet] a new instance of the resource for this update operation, on
+ # @yield [Google::Ads::GoogleAds::V6::Resources::AccountLink] 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::V6::Resources::SharedSet] a resource instance to update
+ # @overload #account_link(resource, &blk)
+ # @param resource [Google::Ads::GoogleAds::V6::Resources::AccountLink] a resource instance to update
# @yield the passed block is called and updates against `resource` are recordered in the update mask
- # @return [Google::Ads::GoogleAds::V6::Services::SharedSetOperation] the operation instance to update the resource
- def self.shared_set(resource_or_path, &blk)
- require "google/ads/google_ads/v6/services/shared_set_service_pb"
+ # @return [Google::Ads::GoogleAds::V6::Services::AccountLinkOperation] the operation instance to update the resource
+ def self.account_link(resource_or_path, &blk)
+ require "google/ads/google_ads/v6/services/account_link_service_pb"
res = case resource_or_path
- when Google::Ads::GoogleAds::V6::Resources::SharedSet
+ when Google::Ads::GoogleAds::V6::Resources::AccountLink
resource_or_path
# got a resource path
when String
- obj = Google::Ads::GoogleAds::V6::Resources::SharedSet.new
+ obj = Google::Ads::GoogleAds::V6::Resources::AccountLink.new
obj.resource_name = resource_or_path
obj
else
- unless Google::Ads::GoogleAds::V6::Resources::SharedSet === res
+ unless Google::Ads::GoogleAds::V6::Resources::AccountLink === 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::V6::Services::SharedSetOperation.new
+ op = Google::Ads::GoogleAds::V6::Services::AccountLinkOperation.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 CustomAudienceOperation instance with
+ # its "update" field prepopulated with an CustomAudience instance, and
# its "update_mask" field populated as needed to send the updates to the API.
#
- # @overload #user_list(path, &blk)
+ # @overload #custom_audience(path, &blk)
# @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V6::Resources::UserList] a new instance of the resource for this update operation, on
+ # @yield [Google::Ads::GoogleAds::V6::Resources::CustomAudience] 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::V6::Resources::UserList] a resource instance to update
+ # @overload #custom_audience(resource, &blk)
+ # @param resource [Google::Ads::GoogleAds::V6::Resources::CustomAudience] a resource instance to update
# @yield the passed block is called and updates against `resource` are recordered in the update mask
- # @return [Google::Ads::GoogleAds::V6::Services::UserListOperation] the operation instance to update the resource
- def self.user_list(resource_or_path, &blk)
- require "google/ads/google_ads/v6/services/user_list_service_pb"
+ # @return [Google::Ads::GoogleAds::V6::Services::CustomAudienceOperation] the operation instance to update the resource
+ def self.custom_audience(resource_or_path, &blk)
+ require "google/ads/google_ads/v6/services/custom_audience_service_pb"
res = case resource_or_path
- when Google::Ads::GoogleAds::V6::Resources::UserList
+ when Google::Ads::GoogleAds::V6::Resources::CustomAudience
resource_or_path
# got a resource path
when String
- obj = Google::Ads::GoogleAds::V6::Resources::UserList.new
+ obj = Google::Ads::GoogleAds::V6::Resources::CustomAudience.new
obj.resource_name = resource_or_path
obj
else
- unless Google::Ads::GoogleAds::V6::Resources::UserList === res
+ unless Google::Ads::GoogleAds::V6::Resources::CustomAudience === 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::V6::Services::UserListOperation.new
+ op = Google::Ads::GoogleAds::V6::Services::CustomAudienceOperation.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)
- # @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V6::Resources::CustomInterest] 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::V6::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::V6::Services::CustomInterestOperation] the operation instance to update the resource
- def self.custom_interest(resource_or_path, &blk)
- require "google/ads/google_ads/v6/services/custom_interest_service_pb"
- res = case resource_or_path
- when Google::Ads::GoogleAds::V6::Resources::CustomInterest
- resource_or_path
- # got a resource path
- when String
- obj = Google::Ads::GoogleAds::V6::Resources::CustomInterest.new
- obj.resource_name = resource_or_path
- obj
- else
- unless Google::Ads::GoogleAds::V6::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::V6::Services::CustomInterestOperation.new
- op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
- op["update"] = res
- op
- end
-
# A convenience method for creating an CustomerUserAccessOperation instance with
# its "update" field prepopulated with an CustomerUserAccess instance, and
# its "update_mask" field populated as needed to send the updates to the API.
#
# @overload #customer_user_access(path, &blk)
@@ -3892,187 +4048,97 @@
op = Google::Ads::GoogleAds::V6::Services::MerchantCenterLinkOperation.new
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
op["update"] = res
op
end
+ 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.
+ module RemoveResource
+ # A convenience method for creating an FeedAttributeOperation instance with
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
- # @overload #customer_client_link(path, &blk)
- # @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V6::Resources::CustomerClientLink] a new instance of the resource for this update operation, on
- # which fields can be set to update
+ # @param path [String] the resource name of the resource to delete.
+ def self.feed_attribute(path)
+ require "google/ads/google_ads/v6/resources/feed_pb"
+ op = Google::Ads::GoogleAds::V6::Resources::FeedAttributeOperation.new
+ op["remove"] = path
+ op
+ end
+
+ # A convenience method for creating an TargetRestrictionOperation instance with
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
- # @overload #customer_client_link(resource, &blk)
- # @param resource [Google::Ads::GoogleAds::V6::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::V6::Services::CustomerClientLinkOperation] the operation instance to update the resource
- def self.customer_client_link(resource_or_path, &blk)
- require "google/ads/google_ads/v6/services/customer_client_link_service_pb"
- res = case resource_or_path
- when Google::Ads::GoogleAds::V6::Resources::CustomerClientLink
- resource_or_path
- # got a resource path
- when String
- obj = Google::Ads::GoogleAds::V6::Resources::CustomerClientLink.new
- obj.resource_name = resource_or_path
- obj
- else
- unless Google::Ads::GoogleAds::V6::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
+ # @param path [String] the resource name of the resource to delete.
+ def self.target_restriction(path)
+ require "google/ads/google_ads/v6/common/targeting_setting_pb"
+ op = Google::Ads::GoogleAds::V6::Common::TargetRestrictionOperation.new
+ op["remove"] = path
+ op
+ end
+ # A convenience method for creating 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.customer_client_link(path)
+ require "google/ads/google_ads/v6/services/customer_client_link_service_pb"
op = Google::Ads::GoogleAds::V6::Services::CustomerClientLinkOperation.new
- op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
- op["update"] = res
+ op["remove"] = path
op
end
- # A convenience method for creating an CustomAudienceOperation instance with
- # its "update" field prepopulated with an CustomAudience instance, and
- # its "update_mask" field populated as needed to send the updates to the API.
+ # A convenience method for creating an CustomInterestOperation instance with
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
- # @overload #custom_audience(path, &blk)
- # @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V6::Resources::CustomAudience] a new instance of the resource for this update operation, on
- # which fields can be set to update
- #
- # @overload #custom_audience(resource, &blk)
- # @param resource [Google::Ads::GoogleAds::V6::Resources::CustomAudience] a resource instance to update
- # @yield the passed block is called and updates against `resource` are recordered in the update mask
- # @return [Google::Ads::GoogleAds::V6::Services::CustomAudienceOperation] the operation instance to update the resource
- def self.custom_audience(resource_or_path, &blk)
- require "google/ads/google_ads/v6/services/custom_audience_service_pb"
- res = case resource_or_path
- when Google::Ads::GoogleAds::V6::Resources::CustomAudience
- resource_or_path
- # got a resource path
- when String
- obj = Google::Ads::GoogleAds::V6::Resources::CustomAudience.new
- obj.resource_name = resource_or_path
- obj
- else
- unless Google::Ads::GoogleAds::V6::Resources::CustomAudience === 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::V6::Services::CustomAudienceOperation.new
- op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
- op["update"] = res
+ # @param path [String] the resource name of the resource to delete.
+ def self.custom_interest(path)
+ require "google/ads/google_ads/v6/services/custom_interest_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::CustomInterestOperation.new
+ op["remove"] = path
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.
+ # A convenience method for creating an CustomerNegativeCriterionOperation instance with
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
- # @overload #customer_manager_link(path, &blk)
- # @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V6::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::V6::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::V6::Services::CustomerManagerLinkOperation] the operation instance to update the resource
- def self.customer_manager_link(resource_or_path, &blk)
- require "google/ads/google_ads/v6/services/customer_manager_link_service_pb"
- res = case resource_or_path
- when Google::Ads::GoogleAds::V6::Resources::CustomerManagerLink
- resource_or_path
- # got a resource path
- when String
- obj = Google::Ads::GoogleAds::V6::Resources::CustomerManagerLink.new
- obj.resource_name = resource_or_path
- obj
- else
- unless Google::Ads::GoogleAds::V6::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::V6::Services::CustomerManagerLinkOperation.new
- op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
- op["update"] = res
+ # @param path [String] the resource name of the resource to delete.
+ def self.customer_negative_criterion(path)
+ require "google/ads/google_ads/v6/services/customer_negative_criterion_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::CustomerNegativeCriterionOperation.new
+ op["remove"] = path
op
end
- # A convenience method for creating an AccountLinkOperation instance with
- # its "update" field prepopulated with an AccountLink instance, and
- # its "update_mask" field populated as needed to send the updates to the API.
+ # A convenience method for creating an SharedCriterionOperation instance with
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
- # @overload #account_link(path, &blk)
- # @param path [String] a resource path for the resource to update
- # @yield [Google::Ads::GoogleAds::V6::Resources::AccountLink] a new instance of the resource for this update operation, on
- # which fields can be set to update
- #
- # @overload #account_link(resource, &blk)
- # @param resource [Google::Ads::GoogleAds::V6::Resources::AccountLink] a resource instance to update
- # @yield the passed block is called and updates against `resource` are recordered in the update mask
- # @return [Google::Ads::GoogleAds::V6::Services::AccountLinkOperation] the operation instance to update the resource
- def self.account_link(resource_or_path, &blk)
- require "google/ads/google_ads/v6/services/account_link_service_pb"
- res = case resource_or_path
- when Google::Ads::GoogleAds::V6::Resources::AccountLink
- resource_or_path
- # got a resource path
- when String
- obj = Google::Ads::GoogleAds::V6::Resources::AccountLink.new
- obj.resource_name = resource_or_path
- obj
- else
- unless Google::Ads::GoogleAds::V6::Resources::AccountLink === 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::V6::Services::AccountLinkOperation.new
- op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk)
- op["update"] = res
+ # @param path [String] the resource name of the resource to delete.
+ def self.shared_criterion(path)
+ require "google/ads/google_ads/v6/services/shared_criterion_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::SharedCriterionOperation.new
+ op["remove"] = path
op
end
- end
- module RemoveResource
- # A convenience method for creating an TargetRestrictionOperation instance with
+ # A convenience method for creating an KeywordPlanAdGroupKeywordOperation 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.target_restriction(path)
- require "google/ads/google_ads/v6/common/targeting_setting_pb"
- op = Google::Ads::GoogleAds::V6::Common::TargetRestrictionOperation.new
+ def self.keyword_plan_ad_group_keyword(path)
+ require "google/ads/google_ads/v6/services/keyword_plan_ad_group_keyword_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupKeywordOperation.new
op["remove"] = path
op
end
- # A convenience method for creating an FeedAttributeOperation instance with
+ # A convenience method for creating 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_attribute(path)
- require "google/ads/google_ads/v6/resources/feed_pb"
- op = Google::Ads::GoogleAds::V6::Resources::FeedAttributeOperation.new
+ def self.feed_mapping(path)
+ require "google/ads/google_ads/v6/services/feed_mapping_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::FeedMappingOperation.new
op["remove"] = path
op
end
# A convenience method for creating an FeedItemSetLinkOperation instance with
@@ -4084,32 +4150,76 @@
op = Google::Ads::GoogleAds::V6::Services::FeedItemSetLinkOperation.new
op["remove"] = path
op
end
- # A convenience method for creating an CampaignBudgetOperation instance with
+ # A convenience method for creating 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.campaign_budget(path)
- require "google/ads/google_ads/v6/services/campaign_budget_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::CampaignBudgetOperation.new
+ def self.ad_group(path)
+ require "google/ads/google_ads/v6/services/ad_group_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::AdGroupOperation.new
op["remove"] = path
op
end
- # A convenience method for creating an AdGroupAdLabelOperation instance with
+ # A convenience method for creating an FeedItemSetOperation 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/v6/services/ad_group_ad_label_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::AdGroupAdLabelOperation.new
+ def self.feed_item_set(path)
+ require "google/ads/google_ads/v6/services/feed_item_set_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::FeedItemSetOperation.new
op["remove"] = path
op
end
+ # A convenience method for creating 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/v6/services/campaign_bid_modifier_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::CampaignBidModifierOperation.new
+ op["remove"] = path
+ op
+ end
+
+ # A convenience method for creating 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/v6/services/customer_manager_link_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::CustomerManagerLinkOperation.new
+ op["remove"] = path
+ op
+ end
+
+ # A convenience method for creating 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/v6/services/campaign_draft_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::CampaignDraftOperation.new
+ op["remove"] = path
+ op
+ end
+
+ # A convenience method for creating 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/v6/services/user_list_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::UserListOperation.new
+ op["remove"] = path
+ op
+ end
+
# A convenience method for creating 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)
@@ -4117,50 +4227,50 @@
op = Google::Ads::GoogleAds::V6::Services::CustomerOperation.new
op["remove"] = path
op
end
- # A convenience method for creating an CampaignBidModifierOperation instance with
+ # A convenience method for creating 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_bid_modifier(path)
- require "google/ads/google_ads/v6/services/campaign_bid_modifier_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::CampaignBidModifierOperation.new
+ def self.shared_set(path)
+ require "google/ads/google_ads/v6/services/shared_set_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::SharedSetOperation.new
op["remove"] = path
op
end
- # A convenience method for creating an CampaignOperation instance with
+ # A convenience method for creating 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(path)
- require "google/ads/google_ads/v6/services/campaign_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::CampaignOperation.new
+ def self.ad_group_criterion_label(path)
+ require "google/ads/google_ads/v6/services/ad_group_criterion_label_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::AdGroupCriterionLabelOperation.new
op["remove"] = path
op
end
- # A convenience method for creating an BiddingStrategyOperation instance with
+ # A convenience method for creating 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.bidding_strategy(path)
- require "google/ads/google_ads/v6/services/bidding_strategy_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::BiddingStrategyOperation.new
+ def self.label(path)
+ require "google/ads/google_ads/v6/services/label_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::LabelOperation.new
op["remove"] = path
op
end
- # A convenience method for creating an AdGroupOperation instance with
+ # A convenience method for creating 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(path)
- require "google/ads/google_ads/v6/services/ad_group_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::AdGroupOperation.new
+ def self.ad_group_ad_label(path)
+ require "google/ads/google_ads/v6/services/ad_group_ad_label_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::AdGroupAdLabelOperation.new
op["remove"] = path
op
end
# A convenience method for creating an AdGroupAdOperation instance with
@@ -4183,21 +4293,10 @@
op = Google::Ads::GoogleAds::V6::Services::AdGroupBidModifierOperation.new
op["remove"] = path
op
end
- # A convenience method for creating an AdGroupCriterionLabelOperation instance with
- # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
- #
- # @param path [String] the resource name of the resource to delete.
- def self.ad_group_criterion_label(path)
- require "google/ads/google_ads/v6/services/ad_group_criterion_label_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::AdGroupCriterionLabelOperation.new
- op["remove"] = path
- op
- end
-
# A convenience method for creating an AdGroupCriterionOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.ad_group_criterion(path)
@@ -4271,10 +4370,21 @@
op = Google::Ads::GoogleAds::V6::Services::AssetOperation.new
op["remove"] = path
op
end
+ # A convenience method for creating an BiddingStrategyOperation instance with
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
+ #
+ # @param path [String] the resource name of the resource to delete.
+ def self.bidding_strategy(path)
+ require "google/ads/google_ads/v6/services/bidding_strategy_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::BiddingStrategyOperation.new
+ op["remove"] = path
+ op
+ end
+
# A convenience method for creating an CampaignAssetOperation 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_asset(path)
@@ -4282,28 +4392,28 @@
op = Google::Ads::GoogleAds::V6::Services::CampaignAssetOperation.new
op["remove"] = path
op
end
- # A convenience method for creating an CampaignCriterionOperation instance with
+ # A convenience method for creating 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_criterion(path)
- require "google/ads/google_ads/v6/services/campaign_criterion_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::CampaignCriterionOperation.new
+ def self.campaign_budget(path)
+ require "google/ads/google_ads/v6/services/campaign_budget_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::CampaignBudgetOperation.new
op["remove"] = path
op
end
- # A convenience method for creating an CampaignDraftOperation instance with
+ # A convenience method for creating an CampaignCriterionOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
- def self.campaign_draft(path)
- require "google/ads/google_ads/v6/services/campaign_draft_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::CampaignDraftOperation.new
+ def self.campaign_criterion(path)
+ require "google/ads/google_ads/v6/services/campaign_criterion_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::CampaignCriterionOperation.new
op["remove"] = path
op
end
# A convenience method for creating an CampaignExperimentOperation instance with
@@ -4348,10 +4458,21 @@
op = Google::Ads::GoogleAds::V6::Services::CampaignLabelOperation.new
op["remove"] = path
op
end
+ # A convenience method for creating an CampaignOperation instance with
+ # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
+ #
+ # @param path [String] the resource name of the resource to delete.
+ def self.campaign(path)
+ require "google/ads/google_ads/v6/services/campaign_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::CampaignOperation.new
+ op["remove"] = path
+ op
+ end
+
# A convenience method for creating 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)
@@ -4403,21 +4524,10 @@
op = Google::Ads::GoogleAds::V6::Services::CustomerLabelOperation.new
op["remove"] = path
op
end
- # A convenience method for creating 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.customer_negative_criterion(path)
- require "google/ads/google_ads/v6/services/customer_negative_criterion_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::CustomerNegativeCriterionOperation.new
- op["remove"] = path
- op
- end
-
# A convenience method for creating 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)
@@ -4436,21 +4546,10 @@
op = Google::Ads::GoogleAds::V6::Services::FeedItemOperation.new
op["remove"] = path
op
end
- # A convenience method for creating an FeedItemSetOperation 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_set(path)
- require "google/ads/google_ads/v6/services/feed_item_set_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::FeedItemSetOperation.new
- op["remove"] = path
- op
- end
-
# A convenience method for creating an FeedItemTargetOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.feed_item_target(path)
@@ -4458,21 +4557,10 @@
op = Google::Ads::GoogleAds::V6::Services::FeedItemTargetOperation.new
op["remove"] = path
op
end
- # A convenience method for creating an FeedMappingOperation instance with
- # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
- #
- # @param path [String] the resource name of the resource to delete.
- def self.feed_mapping(path)
- require "google/ads/google_ads/v6/services/feed_mapping_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::FeedMappingOperation.new
- op["remove"] = path
- op
- end
-
# A convenience method for creating an FeedOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.feed(path)
@@ -4480,21 +4568,10 @@
op = Google::Ads::GoogleAds::V6::Services::FeedOperation.new
op["remove"] = path
op
end
- # A convenience method for creating an KeywordPlanAdGroupKeywordOperation 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_keyword(path)
- require "google/ads/google_ads/v6/services/keyword_plan_ad_group_keyword_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupKeywordOperation.new
- op["remove"] = path
- op
- end
-
# A convenience method for creating an KeywordPlanAdGroupOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.keyword_plan_ad_group(path)
@@ -4535,21 +4612,10 @@
op = Google::Ads::GoogleAds::V6::Services::KeywordPlanOperation.new
op["remove"] = path
op
end
- # A convenience method for creating an LabelOperation instance with
- # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
- #
- # @param path [String] the resource name of the resource to delete.
- def self.label(path)
- require "google/ads/google_ads/v6/services/label_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::LabelOperation.new
- op["remove"] = path
- op
- end
-
# A convenience method for creating 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.media_file(path)
@@ -4568,43 +4634,10 @@
op = Google::Ads::GoogleAds::V6::Services::RemarketingActionOperation.new
op["remove"] = path
op
end
- # A convenience method for creating an SharedCriterionOperation instance with
- # its "remove" field preopulated with a resource path corresponding to the resource to be removed.
- #
- # @param path [String] the resource name of the resource to delete.
- def self.shared_criterion(path)
- require "google/ads/google_ads/v6/services/shared_criterion_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::SharedCriterionOperation.new
- op["remove"] = path
- op
- end
-
- # A convenience method for creating 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.shared_set(path)
- require "google/ads/google_ads/v6/services/shared_set_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::SharedSetOperation.new
- op["remove"] = path
- op
- end
-
- # A convenience method for creating 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/v6/services/user_list_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::UserListOperation.new
- op["remove"] = path
- op
- end
-
# A convenience method for creating 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)
@@ -4623,76 +4656,32 @@
op = Google::Ads::GoogleAds::V6::Services::BatchJobOperation.new
op["remove"] = path
op
end
- # A convenience method for creating an OfflineUserDataJobOperation instance with
+ # A convenience method for creating an CustomerUserAccessInvitationOperation 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/v6/services/offline_user_data_job_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::OfflineUserDataJobOperation.new
+ def self.customer_user_access_invitation(path)
+ require "google/ads/google_ads/v6/services/customer_user_access_invitation_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::CustomerUserAccessInvitationOperation.new
op["remove"] = path
op
end
- # A convenience method for creating an CustomInterestOperation instance with
+ # A convenience method for creating 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.custom_interest(path)
- require "google/ads/google_ads/v6/services/custom_interest_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::CustomInterestOperation.new
+ def self.offline_user_data_job(path)
+ require "google/ads/google_ads/v6/services/offline_user_data_job_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::OfflineUserDataJobOperation.new
op["remove"] = path
op
end
- # A convenience method for creating an CustomerUserAccessOperation 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_user_access(path)
- require "google/ads/google_ads/v6/services/customer_user_access_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::CustomerUserAccessOperation.new
- op["remove"] = path
- op
- end
-
- # A convenience method for creating 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/v6/services/merchant_center_link_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::MerchantCenterLinkOperation.new
- op["remove"] = path
- op
- end
-
- # A convenience method for creating 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.customer_client_link(path)
- require "google/ads/google_ads/v6/services/customer_client_link_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::CustomerClientLinkOperation.new
- op["remove"] = path
- op
- end
-
- # A convenience method for creating an CustomAudienceOperation 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_audience(path)
- require "google/ads/google_ads/v6/services/custom_audience_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::CustomAudienceOperation.new
- op["remove"] = path
- op
- end
-
# A convenience method for creating an UserDataOperation 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_data(path)
@@ -4700,17 +4689,17 @@
op = Google::Ads::GoogleAds::V6::Services::UserDataOperation.new
op["remove"] = path
op
end
- # A convenience method for creating an CustomerManagerLinkOperation instance with
+ # A convenience method for creating 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.customer_manager_link(path)
- require "google/ads/google_ads/v6/services/customer_manager_link_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::CustomerManagerLinkOperation.new
+ def self.account_budget_proposal(path)
+ require "google/ads/google_ads/v6/services/account_budget_proposal_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::AccountBudgetProposalOperation.new
op["remove"] = path
op
end
# A convenience method for creating an ApplyRecommendationOperation instance with
@@ -4733,49 +4722,60 @@
op = Google::Ads::GoogleAds::V6::Services::DismissRecommendationRequest::DismissRecommendationOperation.new
op["remove"] = path
op
end
- # A convenience method for creating an BillingSetupOperation instance with
+ # A convenience method for creating an AccountLinkOperation 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/v6/services/billing_setup_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::BillingSetupOperation.new
+ def self.account_link(path)
+ require "google/ads/google_ads/v6/services/account_link_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::AccountLinkOperation.new
op["remove"] = path
op
end
- # A convenience method for creating an CustomerUserAccessInvitationOperation instance with
+ # A convenience method for creating an CustomAudienceOperation 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_user_access_invitation(path)
- require "google/ads/google_ads/v6/services/customer_user_access_invitation_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::CustomerUserAccessInvitationOperation.new
+ def self.custom_audience(path)
+ require "google/ads/google_ads/v6/services/custom_audience_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::CustomAudienceOperation.new
op["remove"] = path
op
end
- # A convenience method for creating an AccountLinkOperation instance with
+ # A convenience method for creating an CustomerUserAccessOperation 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_link(path)
- require "google/ads/google_ads/v6/services/account_link_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::AccountLinkOperation.new
+ def self.customer_user_access(path)
+ require "google/ads/google_ads/v6/services/customer_user_access_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::CustomerUserAccessOperation.new
op["remove"] = path
op
end
- # A convenience method for creating an AccountBudgetProposalOperation instance with
+ # A convenience method for creating 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/v6/services/account_budget_proposal_service_pb"
- op = Google::Ads::GoogleAds::V6::Services::AccountBudgetProposalOperation.new
+ def self.merchant_center_link(path)
+ require "google/ads/google_ads/v6/services/merchant_center_link_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::MerchantCenterLinkOperation.new
+ op["remove"] = path
+ op
+ end
+
+ # A convenience method for creating 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/v6/services/billing_setup_service_pb"
+ op = Google::Ads::GoogleAds::V6::Services::BillingSetupOperation.new
op["remove"] = path
op
end
end
end