lib/google/ads/google_ads/factories/v8/operations.rb in google-ads-googleads-15.0.0 vs lib/google/ads/google_ads/factories/v8/operations.rb in google-ads-googleads-16.0.0

- old
+ new

@@ -2,63 +2,63 @@ module Ads module GoogleAds module Factories module V8 module Operations - # Create a new TargetRestrictionOperation + # Create a new FeedAttributeOperation # - # @return [Google::Ads::GoogleAds::V8::Common::TargetRestrictionOperation] the operation - def self.target_restriction - require "google/ads/google_ads/v8/common/targeting_setting_pb" + # @return [Google::Ads::GoogleAds::V8::Resources::FeedAttributeOperation] the operation + def self.feed_attribute + require "google/ads/google_ads/v8/resources/feed_pb" if block_given? - op = Google::Ads::GoogleAds::V8::Common::TargetRestrictionOperation.new + op = Google::Ads::GoogleAds::V8::Resources::FeedAttributeOperation.new yield op op else - Google::Ads::GoogleAds::V8::Common::TargetRestrictionOperation.new + Google::Ads::GoogleAds::V8::Resources::FeedAttributeOperation.new end end - # Create a new FeedAttributeOperation + # Create a new TargetRestrictionOperation # - # @return [Google::Ads::GoogleAds::V8::Resources::FeedAttributeOperation] the operation - def self.feed_attribute - require "google/ads/google_ads/v8/resources/feed_pb" + # @return [Google::Ads::GoogleAds::V8::Common::TargetRestrictionOperation] the operation + def self.target_restriction + require "google/ads/google_ads/v8/common/targeting_setting_pb" if block_given? - op = Google::Ads::GoogleAds::V8::Resources::FeedAttributeOperation.new + op = Google::Ads::GoogleAds::V8::Common::TargetRestrictionOperation.new yield op op else - Google::Ads::GoogleAds::V8::Resources::FeedAttributeOperation.new + Google::Ads::GoogleAds::V8::Common::TargetRestrictionOperation.new end end - # Create a new AccountBudgetProposalOperation + # Create a new BiddingDataExclusionOperation # - # @return [Google::Ads::GoogleAds::V8::Services::AccountBudgetProposalOperation] the operation - def self.account_budget_proposal - require "google/ads/google_ads/v8/services/account_budget_proposal_service_pb" + # @return [Google::Ads::GoogleAds::V8::Services::BiddingDataExclusionOperation] the operation + def self.bidding_data_exclusion + require "google/ads/google_ads/v8/services/bidding_data_exclusion_service_pb" if block_given? - op = Google::Ads::GoogleAds::V8::Services::AccountBudgetProposalOperation.new + op = Google::Ads::GoogleAds::V8::Services::BiddingDataExclusionOperation.new yield op op else - Google::Ads::GoogleAds::V8::Services::AccountBudgetProposalOperation.new + Google::Ads::GoogleAds::V8::Services::BiddingDataExclusionOperation.new end end - # Create a new AccountLinkOperation + # Create a new CampaignCriterionOperation # - # @return [Google::Ads::GoogleAds::V8::Services::AccountLinkOperation] the operation - def self.account_link - require "google/ads/google_ads/v8/services/account_link_service_pb" + # @return [Google::Ads::GoogleAds::V8::Services::CampaignCriterionOperation] the operation + def self.campaign_criterion + require "google/ads/google_ads/v8/services/campaign_criterion_service_pb" if block_given? - op = Google::Ads::GoogleAds::V8::Services::AccountLinkOperation.new + op = Google::Ads::GoogleAds::V8::Services::CampaignCriterionOperation.new yield op op else - Google::Ads::GoogleAds::V8::Services::AccountLinkOperation.new + Google::Ads::GoogleAds::V8::Services::CampaignCriterionOperation.new end end # Create a new AdGroupAdLabelOperation # @@ -240,24 +240,10 @@ else Google::Ads::GoogleAds::V8::Services::AssetOperation.new end end - # Create a new BiddingDataExclusionOperation - # - # @return [Google::Ads::GoogleAds::V8::Services::BiddingDataExclusionOperation] the operation - def self.bidding_data_exclusion - require "google/ads/google_ads/v8/services/bidding_data_exclusion_service_pb" - if block_given? - op = Google::Ads::GoogleAds::V8::Services::BiddingDataExclusionOperation.new - yield op - op - else - Google::Ads::GoogleAds::V8::Services::BiddingDataExclusionOperation.new - end - end - # Create a new BiddingSeasonalityAdjustmentOperation # # @return [Google::Ads::GoogleAds::V8::Services::BiddingSeasonalityAdjustmentOperation] the operation def self.bidding_seasonality_adjustment require "google/ads/google_ads/v8/services/bidding_seasonality_adjustment_service_pb" @@ -324,24 +310,10 @@ else Google::Ads::GoogleAds::V8::Services::CampaignBudgetOperation.new end end - # Create a new CampaignCriterionOperation - # - # @return [Google::Ads::GoogleAds::V8::Services::CampaignCriterionOperation] the operation - def self.campaign_criterion - require "google/ads/google_ads/v8/services/campaign_criterion_service_pb" - if block_given? - op = Google::Ads::GoogleAds::V8::Services::CampaignCriterionOperation.new - yield op - op - else - Google::Ads::GoogleAds::V8::Services::CampaignCriterionOperation.new - end - end - # Create a new CampaignDraftOperation # # @return [Google::Ads::GoogleAds::V8::Services::CampaignDraftOperation] the operation def self.campaign_draft require "google/ads/google_ads/v8/services/campaign_draft_service_pb" @@ -870,10 +842,24 @@ else Google::Ads::GoogleAds::V8::Services::BatchJobOperation.new end end + # Create a new AccountBudgetProposalOperation + # + # @return [Google::Ads::GoogleAds::V8::Services::AccountBudgetProposalOperation] the operation + def self.account_budget_proposal + require "google/ads/google_ads/v8/services/account_budget_proposal_service_pb" + if block_given? + op = Google::Ads::GoogleAds::V8::Services::AccountBudgetProposalOperation.new + yield op + op + else + Google::Ads::GoogleAds::V8::Services::AccountBudgetProposalOperation.new + end + end + # Create a new BillingSetupOperation # # @return [Google::Ads::GoogleAds::V8::Services::BillingSetupOperation] the operation def self.billing_setup require "google/ads/google_ads/v8/services/billing_setup_service_pb" @@ -884,38 +870,52 @@ else Google::Ads::GoogleAds::V8::Services::BillingSetupOperation.new end end - # Create a new CustomAudienceOperation + # Create a new UserDataOperation # - # @return [Google::Ads::GoogleAds::V8::Services::CustomAudienceOperation] the operation - def self.custom_audience - require "google/ads/google_ads/v8/services/custom_audience_service_pb" + # @return [Google::Ads::GoogleAds::V8::Services::UserDataOperation] the operation + def self.user_data + require "google/ads/google_ads/v8/services/user_data_service_pb" if block_given? - op = Google::Ads::GoogleAds::V8::Services::CustomAudienceOperation.new + op = Google::Ads::GoogleAds::V8::Services::UserDataOperation.new yield op op else - Google::Ads::GoogleAds::V8::Services::CustomAudienceOperation.new + Google::Ads::GoogleAds::V8::Services::UserDataOperation.new end end - # Create a new CustomInterestOperation + # Create a new OfflineUserDataJobOperation # - # @return [Google::Ads::GoogleAds::V8::Services::CustomInterestOperation] the operation - def self.custom_interest - require "google/ads/google_ads/v8/services/custom_interest_service_pb" + # @return [Google::Ads::GoogleAds::V8::Services::OfflineUserDataJobOperation] the operation + def self.offline_user_data_job + require "google/ads/google_ads/v8/services/offline_user_data_job_service_pb" if block_given? - op = Google::Ads::GoogleAds::V8::Services::CustomInterestOperation.new + op = Google::Ads::GoogleAds::V8::Services::OfflineUserDataJobOperation.new yield op op else - Google::Ads::GoogleAds::V8::Services::CustomInterestOperation.new + Google::Ads::GoogleAds::V8::Services::OfflineUserDataJobOperation.new end end + # Create a new CustomerUserAccessInvitationOperation + # + # @return [Google::Ads::GoogleAds::V8::Services::CustomerUserAccessInvitationOperation] the operation + def self.customer_user_access_invitation + require "google/ads/google_ads/v8/services/customer_user_access_invitation_service_pb" + if block_given? + op = Google::Ads::GoogleAds::V8::Services::CustomerUserAccessInvitationOperation.new + yield op + op + else + Google::Ads::GoogleAds::V8::Services::CustomerUserAccessInvitationOperation.new + end + end + # Create a new CustomerClientLinkOperation # # @return [Google::Ads::GoogleAds::V8::Services::CustomerClientLinkOperation] the operation def self.customer_client_link require "google/ads/google_ads/v8/services/customer_client_link_service_pb" @@ -926,35 +926,35 @@ else Google::Ads::GoogleAds::V8::Services::CustomerClientLinkOperation.new end end - # Create a new CustomerManagerLinkOperation + # Create a new AccountLinkOperation # - # @return [Google::Ads::GoogleAds::V8::Services::CustomerManagerLinkOperation] the operation - def self.customer_manager_link - require "google/ads/google_ads/v8/services/customer_manager_link_service_pb" + # @return [Google::Ads::GoogleAds::V8::Services::AccountLinkOperation] the operation + def self.account_link + require "google/ads/google_ads/v8/services/account_link_service_pb" if block_given? - op = Google::Ads::GoogleAds::V8::Services::CustomerManagerLinkOperation.new + op = Google::Ads::GoogleAds::V8::Services::AccountLinkOperation.new yield op op else - Google::Ads::GoogleAds::V8::Services::CustomerManagerLinkOperation.new + Google::Ads::GoogleAds::V8::Services::AccountLinkOperation.new end end - # Create a new CustomerUserAccessInvitationOperation + # Create a new CustomerManagerLinkOperation # - # @return [Google::Ads::GoogleAds::V8::Services::CustomerUserAccessInvitationOperation] the operation - def self.customer_user_access_invitation - require "google/ads/google_ads/v8/services/customer_user_access_invitation_service_pb" + # @return [Google::Ads::GoogleAds::V8::Services::CustomerManagerLinkOperation] the operation + def self.customer_manager_link + require "google/ads/google_ads/v8/services/customer_manager_link_service_pb" if block_given? - op = Google::Ads::GoogleAds::V8::Services::CustomerUserAccessInvitationOperation.new + op = Google::Ads::GoogleAds::V8::Services::CustomerManagerLinkOperation.new yield op op else - Google::Ads::GoogleAds::V8::Services::CustomerUserAccessInvitationOperation.new + Google::Ads::GoogleAds::V8::Services::CustomerManagerLinkOperation.new end end # Create a new CustomerUserAccessOperation # @@ -982,24 +982,38 @@ else Google::Ads::GoogleAds::V8::Services::MerchantCenterLinkOperation.new end end - # Create a new OfflineUserDataJobOperation + # Create a new CustomAudienceOperation # - # @return [Google::Ads::GoogleAds::V8::Services::OfflineUserDataJobOperation] the operation - def self.offline_user_data_job - require "google/ads/google_ads/v8/services/offline_user_data_job_service_pb" + # @return [Google::Ads::GoogleAds::V8::Services::CustomAudienceOperation] the operation + def self.custom_audience + require "google/ads/google_ads/v8/services/custom_audience_service_pb" if block_given? - op = Google::Ads::GoogleAds::V8::Services::OfflineUserDataJobOperation.new + op = Google::Ads::GoogleAds::V8::Services::CustomAudienceOperation.new yield op op else - Google::Ads::GoogleAds::V8::Services::OfflineUserDataJobOperation.new + Google::Ads::GoogleAds::V8::Services::CustomAudienceOperation.new end end + # Create a new CustomInterestOperation + # + # @return [Google::Ads::GoogleAds::V8::Services::CustomInterestOperation] the operation + def self.custom_interest + require "google/ads/google_ads/v8/services/custom_interest_service_pb" + if block_given? + op = Google::Ads::GoogleAds::V8::Services::CustomInterestOperation.new + yield op + op + else + Google::Ads::GoogleAds::V8::Services::CustomInterestOperation.new + end + end + # Create a new ApplyRecommendationOperation # # @return [Google::Ads::GoogleAds::V8::Services::ApplyRecommendationOperation] the operation def self.apply_recommendation require "google/ads/google_ads/v8/services/recommendation_service_pb" @@ -1024,24 +1038,10 @@ else Google::Ads::GoogleAds::V8::Services::DismissRecommendationRequest::DismissRecommendationOperation.new end end - # Create a new UserDataOperation - # - # @return [Google::Ads::GoogleAds::V8::Services::UserDataOperation] the operation - def self.user_data - require "google/ads/google_ads/v8/services/user_data_service_pb" - if block_given? - op = Google::Ads::GoogleAds::V8::Services::UserDataOperation.new - yield op - op - else - Google::Ads::GoogleAds::V8::Services::UserDataOperation.new - end - end - # Get a reference module containing convenience methods for creating # resources # # @return [Google::Ads::GoogleAds::Factories::V8::Operations::CreateResource] def self.create_resource @@ -1063,37 +1063,64 @@ def self.remove_resource RemoveResource end module CreateResource - # A convenience method for creating an AccountBudgetProposalOperation instance with - # its "create" field prepopulated with an AccountBudgetProposal instance. + # A convenience method for creating an BiddingDataExclusionOperation instance with + # its "create" field prepopulated with an BiddingDataExclusion instance. # - # @overload account_budget_proposal - # creates an operation instance, yielding a newly fabricated AccountBudgetProposal + # @overload bidding_data_exclusion + # creates an operation instance, yielding a newly fabricated BiddingDataExclusion # which can be used for setting attributes on the newly created resource - # @overload account_budget_proposal(res) + # @overload bidding_data_exclusion(res) # creates an operation instance, with the resource to be created # set to the passed value (res) - # @param res [Google::Ads::GoogleAds::V8::Resources::AccountBudgetProposal] + # @param res [Google::Ads::GoogleAds::V8::Resources::BiddingDataExclusion] # a resource instance to be used for creation in this operation. # - # @return [Google::Ads::GoogleAds::V8::Services::AccountBudgetProposalOperation] instance that will create the resource - def self.account_budget_proposal(res = nil, &blk) - require "google/ads/google_ads/v8/services/account_budget_proposal_service_pb" - op = Google::Ads::GoogleAds::V8::Services::AccountBudgetProposalOperation.new + # @return [Google::Ads::GoogleAds::V8::Services::BiddingDataExclusionOperation] instance that will create the resource + def self.bidding_data_exclusion(res = nil, &blk) + require "google/ads/google_ads/v8/services/bidding_data_exclusion_service_pb" + op = Google::Ads::GoogleAds::V8::Services::BiddingDataExclusionOperation.new op["create"] = if !res.nil? res elsif !blk.nil? - Factories::V8::Resources.account_budget_proposal(&blk) + Factories::V8::Resources.bidding_data_exclusion(&blk) else - Factories::V8::Resources.account_budget_proposal + Factories::V8::Resources.bidding_data_exclusion end op end + # A convenience method for creating an CampaignCriterionOperation instance with + # its "create" field prepopulated with an CampaignCriterion instance. + # + # @overload campaign_criterion + # creates an operation instance, yielding a newly fabricated CampaignCriterion + # which can be used for setting attributes on the newly created resource + # @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::V8::Resources::CampaignCriterion] + # a resource instance to be used for creation in this operation. + # + # @return [Google::Ads::GoogleAds::V8::Services::CampaignCriterionOperation] instance that will create the resource + def self.campaign_criterion(res = nil, &blk) + require "google/ads/google_ads/v8/services/campaign_criterion_service_pb" + op = Google::Ads::GoogleAds::V8::Services::CampaignCriterionOperation.new + op["create"] = if !res.nil? + res + elsif !blk.nil? + Factories::V8::Resources.campaign_criterion(&blk) + else + Factories::V8::Resources.campaign_criterion + 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 @@ -1414,37 +1441,10 @@ end op end - # A convenience method for creating an BiddingDataExclusionOperation instance with - # its "create" field prepopulated with an BiddingDataExclusion instance. - # - # @overload bidding_data_exclusion - # creates an operation instance, yielding a newly fabricated BiddingDataExclusion - # which can be used for setting attributes on the newly created resource - # @overload bidding_data_exclusion(res) - # creates an operation instance, with the resource to be created - # set to the passed value (res) - # @param res [Google::Ads::GoogleAds::V8::Resources::BiddingDataExclusion] - # a resource instance to be used for creation in this operation. - # - # @return [Google::Ads::GoogleAds::V8::Services::BiddingDataExclusionOperation] instance that will create the resource - def self.bidding_data_exclusion(res = nil, &blk) - require "google/ads/google_ads/v8/services/bidding_data_exclusion_service_pb" - op = Google::Ads::GoogleAds::V8::Services::BiddingDataExclusionOperation.new - op["create"] = if !res.nil? - res - elsif !blk.nil? - Factories::V8::Resources.bidding_data_exclusion(&blk) - else - Factories::V8::Resources.bidding_data_exclusion - end - - op - end - # A convenience method for creating an BiddingSeasonalityAdjustmentOperation instance with # its "create" field prepopulated with an BiddingSeasonalityAdjustment instance. # # @overload bidding_seasonality_adjustment # creates an operation instance, yielding a newly fabricated BiddingSeasonalityAdjustment @@ -1576,37 +1576,10 @@ end op end - # A convenience method for creating an CampaignCriterionOperation instance with - # its "create" field prepopulated with an CampaignCriterion instance. - # - # @overload campaign_criterion - # creates an operation instance, yielding a newly fabricated CampaignCriterion - # which can be used for setting attributes on the newly created resource - # @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::V8::Resources::CampaignCriterion] - # a resource instance to be used for creation in this operation. - # - # @return [Google::Ads::GoogleAds::V8::Services::CampaignCriterionOperation] instance that will create the resource - def self.campaign_criterion(res = nil, &blk) - require "google/ads/google_ads/v8/services/campaign_criterion_service_pb" - op = Google::Ads::GoogleAds::V8::Services::CampaignCriterionOperation.new - op["create"] = if !res.nil? - res - elsif !blk.nil? - Factories::V8::Resources.campaign_criterion(&blk) - else - Factories::V8::Resources.campaign_criterion - end - - op - end - # A convenience method for creating an CampaignDraftOperation instance with # its "create" field prepopulated with an CampaignDraft instance. # # @overload campaign_draft # creates an operation instance, yielding a newly fabricated CampaignDraft @@ -2521,10 +2494,37 @@ end op end + # A convenience method for creating an AccountBudgetProposalOperation instance with + # its "create" field prepopulated with an AccountBudgetProposal instance. + # + # @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::V8::Resources::AccountBudgetProposal] + # a resource instance to be used for creation in this operation. + # + # @return [Google::Ads::GoogleAds::V8::Services::AccountBudgetProposalOperation] instance that will create the resource + def self.account_budget_proposal(res = nil, &blk) + require "google/ads/google_ads/v8/services/account_budget_proposal_service_pb" + op = Google::Ads::GoogleAds::V8::Services::AccountBudgetProposalOperation.new + op["create"] = if !res.nil? + res + elsif !blk.nil? + Factories::V8::Resources.account_budget_proposal(&blk) + else + Factories::V8::Resources.account_budget_proposal + 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 @@ -2548,64 +2548,91 @@ end op end - # A convenience method for creating an CustomAudienceOperation instance with - # its "create" field prepopulated with an CustomAudience instance. + # A convenience method for creating an UserDataOperation instance with + # its "create" field prepopulated with an UserData instance. # - # @overload custom_audience - # creates an operation instance, yielding a newly fabricated CustomAudience + # @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_audience(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::V8::Resources::CustomAudience] + # @param res [Google::Ads::GoogleAds::V8::Common::UserData] # a resource instance to be used for creation in this operation. # - # @return [Google::Ads::GoogleAds::V8::Services::CustomAudienceOperation] instance that will create the resource - def self.custom_audience(res = nil, &blk) - require "google/ads/google_ads/v8/services/custom_audience_service_pb" - op = Google::Ads::GoogleAds::V8::Services::CustomAudienceOperation.new + # @return [Google::Ads::GoogleAds::V8::Services::UserDataOperation] instance that will create the resource + def self.user_data(res = nil, &blk) + require "google/ads/google_ads/v8/services/user_data_service_pb" + op = Google::Ads::GoogleAds::V8::Services::UserDataOperation.new op["create"] = if !res.nil? res elsif !blk.nil? - Factories::V8::Resources.custom_audience(&blk) + Factories::V8::Resources.user_data(&blk) else - Factories::V8::Resources.custom_audience + Factories::V8::Resources.user_data 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 OfflineUserDataJobOperation instance with + # its "create" field prepopulated with an UserData instance. # - # @overload custom_interest - # creates an operation instance, yielding a newly fabricated CustomInterest + # @overload offline_user_data_job + # creates an operation instance, yielding a newly fabricated UserData # which can be used for setting attributes on the newly created resource - # @overload custom_interest(res) + # @overload offline_user_data_job(res) # creates an operation instance, with the resource to be created # set to the passed value (res) - # @param res [Google::Ads::GoogleAds::V8::Resources::CustomInterest] + # @param res [Google::Ads::GoogleAds::V8::Common::UserData] # a resource instance to be used for creation in this operation. # - # @return [Google::Ads::GoogleAds::V8::Services::CustomInterestOperation] instance that will create the resource - def self.custom_interest(res = nil, &blk) - require "google/ads/google_ads/v8/services/custom_interest_service_pb" - op = Google::Ads::GoogleAds::V8::Services::CustomInterestOperation.new + # @return [Google::Ads::GoogleAds::V8::Services::OfflineUserDataJobOperation] instance that will create the resource + def self.offline_user_data_job(res = nil, &blk) + require "google/ads/google_ads/v8/services/offline_user_data_job_service_pb" + op = Google::Ads::GoogleAds::V8::Services::OfflineUserDataJobOperation.new op["create"] = if !res.nil? res elsif !blk.nil? - Factories::V8::Resources.custom_interest(&blk) + Factories::V8::Resources.user_data(&blk) else - Factories::V8::Resources.custom_interest + Factories::V8::Resources.user_data end op end + # A convenience method for creating an CustomerUserAccessInvitationOperation instance with + # its "create" field prepopulated with an CustomerUserAccessInvitation instance. + # + # @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::V8::Resources::CustomerUserAccessInvitation] + # a resource instance to be used for creation in this operation. + # + # @return [Google::Ads::GoogleAds::V8::Services::CustomerUserAccessInvitationOperation] instance that will create the resource + def self.customer_user_access_invitation(res = nil, &blk) + require "google/ads/google_ads/v8/services/customer_user_access_invitation_service_pb" + op = Google::Ads::GoogleAds::V8::Services::CustomerUserAccessInvitationOperation.new + op["create"] = if !res.nil? + res + elsif !blk.nil? + Factories::V8::Resources.customer_user_access_invitation(&blk) + else + Factories::V8::Resources.customer_user_access_invitation + end + + op + end + # A convenience method for creating an CustomerClientLinkOperation instance with # its "create" field prepopulated with an CustomerClientLink instance. # # @overload customer_client_link # creates an operation instance, yielding a newly fabricated CustomerClientLink @@ -2629,127 +2656,139 @@ end op end - # A convenience method for creating an CustomerUserAccessInvitationOperation instance with - # its "create" field prepopulated with an CustomerUserAccessInvitation instance. + # A convenience method for creating an CustomAudienceOperation instance with + # its "create" field prepopulated with an CustomAudience instance. # - # @overload customer_user_access_invitation - # creates an operation instance, yielding a newly fabricated CustomerUserAccessInvitation + # @overload custom_audience + # creates an operation instance, yielding a newly fabricated CustomAudience # which can be used for setting attributes on the newly created resource - # @overload customer_user_access_invitation(res) + # @overload custom_audience(res) # creates an operation instance, with the resource to be created # set to the passed value (res) - # @param res [Google::Ads::GoogleAds::V8::Resources::CustomerUserAccessInvitation] + # @param res [Google::Ads::GoogleAds::V8::Resources::CustomAudience] # a resource instance to be used for creation in this operation. # - # @return [Google::Ads::GoogleAds::V8::Services::CustomerUserAccessInvitationOperation] instance that will create the resource - def self.customer_user_access_invitation(res = nil, &blk) - require "google/ads/google_ads/v8/services/customer_user_access_invitation_service_pb" - op = Google::Ads::GoogleAds::V8::Services::CustomerUserAccessInvitationOperation.new + # @return [Google::Ads::GoogleAds::V8::Services::CustomAudienceOperation] instance that will create the resource + def self.custom_audience(res = nil, &blk) + require "google/ads/google_ads/v8/services/custom_audience_service_pb" + op = Google::Ads::GoogleAds::V8::Services::CustomAudienceOperation.new op["create"] = if !res.nil? res elsif !blk.nil? - Factories::V8::Resources.customer_user_access_invitation(&blk) + Factories::V8::Resources.custom_audience(&blk) else - Factories::V8::Resources.customer_user_access_invitation + Factories::V8::Resources.custom_audience end op end - # A convenience method for creating an OfflineUserDataJobOperation instance with - # its "create" field prepopulated with an UserData instance. + # A convenience method for creating an CustomInterestOperation instance with + # its "create" field prepopulated with an CustomInterest instance. # - # @overload offline_user_data_job - # creates an operation instance, yielding a newly fabricated UserData + # @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 offline_user_data_job(res) + # @overload custom_interest(res) # creates an operation instance, with the resource to be created # set to the passed value (res) - # @param res [Google::Ads::GoogleAds::V8::Common::UserData] + # @param res [Google::Ads::GoogleAds::V8::Resources::CustomInterest] # a resource instance to be used for creation in this operation. # - # @return [Google::Ads::GoogleAds::V8::Services::OfflineUserDataJobOperation] instance that will create the resource - def self.offline_user_data_job(res = nil, &blk) - require "google/ads/google_ads/v8/services/offline_user_data_job_service_pb" - op = Google::Ads::GoogleAds::V8::Services::OfflineUserDataJobOperation.new + # @return [Google::Ads::GoogleAds::V8::Services::CustomInterestOperation] instance that will create the resource + def self.custom_interest(res = nil, &blk) + require "google/ads/google_ads/v8/services/custom_interest_service_pb" + op = Google::Ads::GoogleAds::V8::Services::CustomInterestOperation.new op["create"] = if !res.nil? res elsif !blk.nil? - Factories::V8::Resources.user_data(&blk) + Factories::V8::Resources.custom_interest(&blk) else - Factories::V8::Resources.user_data + Factories::V8::Resources.custom_interest end op end + end - # A convenience method for creating an UserDataOperation instance with - # its "create" field prepopulated with an UserData instance. + module UpdateResource + # A convenience method for creating an BiddingDataExclusionOperation instance with + # its "update" field prepopulated with an BiddingDataExclusion instance, and + # its "update_mask" field populated as needed to send the updates to the API. # - # @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::V8::Common::UserData] - # a resource instance to be used for creation in this operation. + # @overload #bidding_data_exclusion(path, &blk) + # @param path [String] a resource path for the resource to update + # @yield [Google::Ads::GoogleAds::V8::Resources::BiddingDataExclusion] a new instance of the resource for this update operation, on + # which fields can be set to update # - # @return [Google::Ads::GoogleAds::V8::Services::UserDataOperation] instance that will create the resource - def self.user_data(res = nil, &blk) - require "google/ads/google_ads/v8/services/user_data_service_pb" - op = Google::Ads::GoogleAds::V8::Services::UserDataOperation.new - op["create"] = if !res.nil? - res - elsif !blk.nil? - Factories::V8::Resources.user_data(&blk) + # @overload #bidding_data_exclusion(resource, &blk) + # @param resource [Google::Ads::GoogleAds::V8::Resources::BiddingDataExclusion] 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::V8::Services::BiddingDataExclusionOperation] the operation instance to update the resource + def self.bidding_data_exclusion(resource_or_path, &blk) + require "google/ads/google_ads/v8/services/bidding_data_exclusion_service_pb" + res = case resource_or_path + when Google::Ads::GoogleAds::V8::Resources::BiddingDataExclusion + resource_or_path + # got a resource path + when String + obj = Google::Ads::GoogleAds::V8::Resources::BiddingDataExclusion.new + obj.resource_name = resource_or_path + obj else - Factories::V8::Resources.user_data + unless Google::Ads::GoogleAds::V8::Resources::BiddingDataExclusion === 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::V8::Services::BiddingDataExclusionOperation.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 AccountLinkOperation instance with - # its "update" field prepopulated with an AccountLink instance, and + # A convenience method for creating an CampaignCriterionOperation instance with + # its "update" field prepopulated with an CampaignCriterion instance, and # its "update_mask" field populated as needed to send the updates to the API. # - # @overload #account_link(path, &blk) + # @overload #campaign_criterion(path, &blk) # @param path [String] a resource path for the resource to update - # @yield [Google::Ads::GoogleAds::V8::Resources::AccountLink] a new instance of the resource for this update operation, on + # @yield [Google::Ads::GoogleAds::V8::Resources::CampaignCriterion] 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::V8::Resources::AccountLink] a resource instance to update + # @overload #campaign_criterion(resource, &blk) + # @param resource [Google::Ads::GoogleAds::V8::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::V8::Services::AccountLinkOperation] the operation instance to update the resource - def self.account_link(resource_or_path, &blk) - require "google/ads/google_ads/v8/services/account_link_service_pb" + # @return [Google::Ads::GoogleAds::V8::Services::CampaignCriterionOperation] the operation instance to update the resource + def self.campaign_criterion(resource_or_path, &blk) + require "google/ads/google_ads/v8/services/campaign_criterion_service_pb" res = case resource_or_path - when Google::Ads::GoogleAds::V8::Resources::AccountLink + when Google::Ads::GoogleAds::V8::Resources::CampaignCriterion resource_or_path # got a resource path when String - obj = Google::Ads::GoogleAds::V8::Resources::AccountLink.new + obj = Google::Ads::GoogleAds::V8::Resources::CampaignCriterion.new obj.resource_name = resource_or_path obj else - unless Google::Ads::GoogleAds::V8::Resources::AccountLink === res + unless Google::Ads::GoogleAds::V8::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::V8::Services::AccountLinkOperation.new + op = Google::Ads::GoogleAds::V8::Services::CampaignCriterionOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end @@ -3141,49 +3180,10 @@ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end - # A convenience method for creating an BiddingDataExclusionOperation instance with - # its "update" field prepopulated with an BiddingDataExclusion instance, and - # its "update_mask" field populated as needed to send the updates to the API. - # - # @overload #bidding_data_exclusion(path, &blk) - # @param path [String] a resource path for the resource to update - # @yield [Google::Ads::GoogleAds::V8::Resources::BiddingDataExclusion] a new instance of the resource for this update operation, on - # which fields can be set to update - # - # @overload #bidding_data_exclusion(resource, &blk) - # @param resource [Google::Ads::GoogleAds::V8::Resources::BiddingDataExclusion] 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::V8::Services::BiddingDataExclusionOperation] the operation instance to update the resource - def self.bidding_data_exclusion(resource_or_path, &blk) - require "google/ads/google_ads/v8/services/bidding_data_exclusion_service_pb" - res = case resource_or_path - when Google::Ads::GoogleAds::V8::Resources::BiddingDataExclusion - resource_or_path - # got a resource path - when String - obj = Google::Ads::GoogleAds::V8::Resources::BiddingDataExclusion.new - obj.resource_name = resource_or_path - obj - else - unless Google::Ads::GoogleAds::V8::Resources::BiddingDataExclusion === 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::V8::Services::BiddingDataExclusionOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) - op["update"] = res - op - end - # A convenience method for creating an BiddingSeasonalityAdjustmentOperation instance with # its "update" field prepopulated with an BiddingSeasonalityAdjustment instance, and # its "update_mask" field populated as needed to send the updates to the API. # # @overload #bidding_seasonality_adjustment(path, &blk) @@ -3375,49 +3375,10 @@ 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::V8::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::V8::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::V8::Services::CampaignCriterionOperation] the operation instance to update the resource - def self.campaign_criterion(resource_or_path, &blk) - require "google/ads/google_ads/v8/services/campaign_criterion_service_pb" - res = case resource_or_path - when Google::Ads::GoogleAds::V8::Resources::CampaignCriterion - resource_or_path - # got a resource path - when String - obj = Google::Ads::GoogleAds::V8::Resources::CampaignCriterion.new - obj.resource_name = resource_or_path - obj - else - unless Google::Ads::GoogleAds::V8::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::V8::Services::CampaignCriterionOperation.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 # its "update_mask" field populated as needed to send the updates to the API. # # @overload #campaign_draft(path, &blk) @@ -4467,127 +4428,88 @@ op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end - # A convenience method for creating an CustomAudienceOperation instance with - # its "update" field prepopulated with an CustomAudience instance, and + # A convenience method for creating an CustomerClientLinkOperation instance with + # its "update" field prepopulated with an CustomerClientLink instance, and # its "update_mask" field populated as needed to send the updates to the API. # - # @overload #custom_audience(path, &blk) + # @overload #customer_client_link(path, &blk) # @param path [String] a resource path for the resource to update - # @yield [Google::Ads::GoogleAds::V8::Resources::CustomAudience] a new instance of the resource for this update operation, on + # @yield [Google::Ads::GoogleAds::V8::Resources::CustomerClientLink] 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::V8::Resources::CustomAudience] a resource instance to update + # @overload #customer_client_link(resource, &blk) + # @param resource [Google::Ads::GoogleAds::V8::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::V8::Services::CustomAudienceOperation] the operation instance to update the resource - def self.custom_audience(resource_or_path, &blk) - require "google/ads/google_ads/v8/services/custom_audience_service_pb" + # @return [Google::Ads::GoogleAds::V8::Services::CustomerClientLinkOperation] the operation instance to update the resource + def self.customer_client_link(resource_or_path, &blk) + require "google/ads/google_ads/v8/services/customer_client_link_service_pb" res = case resource_or_path - when Google::Ads::GoogleAds::V8::Resources::CustomAudience + when Google::Ads::GoogleAds::V8::Resources::CustomerClientLink resource_or_path # got a resource path when String - obj = Google::Ads::GoogleAds::V8::Resources::CustomAudience.new + obj = Google::Ads::GoogleAds::V8::Resources::CustomerClientLink.new obj.resource_name = resource_or_path obj else - unless Google::Ads::GoogleAds::V8::Resources::CustomAudience === res + unless Google::Ads::GoogleAds::V8::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::V8::Services::CustomAudienceOperation.new + op = Google::Ads::GoogleAds::V8::Services::CustomerClientLinkOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end - # A convenience method for creating an CustomInterestOperation instance with - # its "update" field prepopulated with an CustomInterest instance, and + # 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 #custom_interest(path, &blk) + # @overload #account_link(path, &blk) # @param path [String] a resource path for the resource to update - # @yield [Google::Ads::GoogleAds::V8::Resources::CustomInterest] a new instance of the resource for this update operation, on + # @yield [Google::Ads::GoogleAds::V8::Resources::AccountLink] 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::V8::Resources::CustomInterest] a resource instance to update + # @overload #account_link(resource, &blk) + # @param resource [Google::Ads::GoogleAds::V8::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::V8::Services::CustomInterestOperation] the operation instance to update the resource - def self.custom_interest(resource_or_path, &blk) - require "google/ads/google_ads/v8/services/custom_interest_service_pb" + # @return [Google::Ads::GoogleAds::V8::Services::AccountLinkOperation] the operation instance to update the resource + def self.account_link(resource_or_path, &blk) + require "google/ads/google_ads/v8/services/account_link_service_pb" res = case resource_or_path - when Google::Ads::GoogleAds::V8::Resources::CustomInterest + when Google::Ads::GoogleAds::V8::Resources::AccountLink resource_or_path # got a resource path when String - obj = Google::Ads::GoogleAds::V8::Resources::CustomInterest.new + obj = Google::Ads::GoogleAds::V8::Resources::AccountLink.new obj.resource_name = resource_or_path obj else - unless Google::Ads::GoogleAds::V8::Resources::CustomInterest === res + unless Google::Ads::GoogleAds::V8::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::V8::Services::CustomInterestOperation.new + op = Google::Ads::GoogleAds::V8::Services::AccountLinkOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end - # A convenience method for creating an CustomerClientLinkOperation instance with - # its "update" field prepopulated with an CustomerClientLink instance, and - # its "update_mask" field populated as needed to send the updates to the API. - # - # @overload #customer_client_link(path, &blk) - # @param path [String] a resource path for the resource to update - # @yield [Google::Ads::GoogleAds::V8::Resources::CustomerClientLink] a new instance of the resource for this update operation, on - # which fields can be set to update - # - # @overload #customer_client_link(resource, &blk) - # @param resource [Google::Ads::GoogleAds::V8::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::V8::Services::CustomerClientLinkOperation] the operation instance to update the resource - def self.customer_client_link(resource_or_path, &blk) - require "google/ads/google_ads/v8/services/customer_client_link_service_pb" - res = case resource_or_path - when Google::Ads::GoogleAds::V8::Resources::CustomerClientLink - resource_or_path - # got a resource path - when String - obj = Google::Ads::GoogleAds::V8::Resources::CustomerClientLink.new - obj.resource_name = resource_or_path - obj - else - unless Google::Ads::GoogleAds::V8::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::V8::Services::CustomerClientLinkOperation.new - op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) - op["update"] = res - op - end - # A convenience method for creating an CustomerManagerLinkOperation instance with # its "update" field prepopulated with an CustomerManagerLink instance, and # its "update_mask" field populated as needed to send the updates to the API. # # @overload #customer_manager_link(path, &blk) @@ -4700,53 +4622,131 @@ op = Google::Ads::GoogleAds::V8::Services::MerchantCenterLinkOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res 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. + # + # @overload #custom_audience(path, &blk) + # @param path [String] a resource path for the resource to update + # @yield [Google::Ads::GoogleAds::V8::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::V8::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::V8::Services::CustomAudienceOperation] the operation instance to update the resource + def self.custom_audience(resource_or_path, &blk) + require "google/ads/google_ads/v8/services/custom_audience_service_pb" + res = case resource_or_path + when Google::Ads::GoogleAds::V8::Resources::CustomAudience + resource_or_path + # got a resource path + when String + obj = Google::Ads::GoogleAds::V8::Resources::CustomAudience.new + obj.resource_name = resource_or_path + obj + else + unless Google::Ads::GoogleAds::V8::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::V8::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::V8::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::V8::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::V8::Services::CustomInterestOperation] the operation instance to update the resource + def self.custom_interest(resource_or_path, &blk) + require "google/ads/google_ads/v8/services/custom_interest_service_pb" + res = case resource_or_path + when Google::Ads::GoogleAds::V8::Resources::CustomInterest + resource_or_path + # got a resource path + when String + obj = Google::Ads::GoogleAds::V8::Resources::CustomInterest.new + obj.resource_name = resource_or_path + obj + else + unless Google::Ads::GoogleAds::V8::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::V8::Services::CustomInterestOperation.new + op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) + op["update"] = res + op + end end module RemoveResource - # A convenience method for creating an TargetRestrictionOperation instance with + # A convenience method for creating an FeedAttributeOperation 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/v8/common/targeting_setting_pb" - op = Google::Ads::GoogleAds::V8::Common::TargetRestrictionOperation.new + def self.feed_attribute(path) + require "google/ads/google_ads/v8/resources/feed_pb" + op = Google::Ads::GoogleAds::V8::Resources::FeedAttributeOperation.new op["remove"] = path op end - # A convenience method for creating an FeedAttributeOperation instance with + # A convenience method for creating an TargetRestrictionOperation 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/v8/resources/feed_pb" - op = Google::Ads::GoogleAds::V8::Resources::FeedAttributeOperation.new + def self.target_restriction(path) + require "google/ads/google_ads/v8/common/targeting_setting_pb" + op = Google::Ads::GoogleAds::V8::Common::TargetRestrictionOperation.new op["remove"] = path op end - # A convenience method for creating an AccountBudgetProposalOperation instance with + # A convenience method for creating an BiddingDataExclusionOperation 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/v8/services/account_budget_proposal_service_pb" - op = Google::Ads::GoogleAds::V8::Services::AccountBudgetProposalOperation.new + def self.bidding_data_exclusion(path) + require "google/ads/google_ads/v8/services/bidding_data_exclusion_service_pb" + op = Google::Ads::GoogleAds::V8::Services::BiddingDataExclusionOperation.new op["remove"] = path op end - # A convenience method for creating an AccountLinkOperation 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.account_link(path) - require "google/ads/google_ads/v8/services/account_link_service_pb" - op = Google::Ads::GoogleAds::V8::Services::AccountLinkOperation.new + def self.campaign_criterion(path) + require "google/ads/google_ads/v8/services/campaign_criterion_service_pb" + op = Google::Ads::GoogleAds::V8::Services::CampaignCriterionOperation.new op["remove"] = path op end # A convenience method for creating an AdGroupAdLabelOperation instance with @@ -4890,21 +4890,10 @@ op = Google::Ads::GoogleAds::V8::Services::AssetOperation.new op["remove"] = path op end - # A convenience method for creating an BiddingDataExclusionOperation 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_data_exclusion(path) - require "google/ads/google_ads/v8/services/bidding_data_exclusion_service_pb" - op = Google::Ads::GoogleAds::V8::Services::BiddingDataExclusionOperation.new - op["remove"] = path - op - end - # A convenience method for creating an BiddingSeasonalityAdjustmentOperation 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_seasonality_adjustment(path) @@ -4956,21 +4945,10 @@ op = Google::Ads::GoogleAds::V8::Services::CampaignBudgetOperation.new op["remove"] = path op end - # 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_criterion(path) - require "google/ads/google_ads/v8/services/campaign_criterion_service_pb" - op = Google::Ads::GoogleAds::V8::Services::CampaignCriterionOperation.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) @@ -5385,10 +5363,21 @@ op = Google::Ads::GoogleAds::V8::Services::BatchJobOperation.new op["remove"] = path op end + # 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.account_budget_proposal(path) + require "google/ads/google_ads/v8/services/account_budget_proposal_service_pb" + op = Google::Ads::GoogleAds::V8::Services::AccountBudgetProposalOperation.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) @@ -5396,32 +5385,43 @@ op = Google::Ads::GoogleAds::V8::Services::BillingSetupOperation.new op["remove"] = path op end - # A convenience method for creating an CustomAudienceOperation instance with + # 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.custom_audience(path) - require "google/ads/google_ads/v8/services/custom_audience_service_pb" - op = Google::Ads::GoogleAds::V8::Services::CustomAudienceOperation.new + def self.user_data(path) + require "google/ads/google_ads/v8/services/user_data_service_pb" + op = Google::Ads::GoogleAds::V8::Services::UserDataOperation.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/v8/services/custom_interest_service_pb" - op = Google::Ads::GoogleAds::V8::Services::CustomInterestOperation.new + def self.offline_user_data_job(path) + require "google/ads/google_ads/v8/services/offline_user_data_job_service_pb" + op = Google::Ads::GoogleAds::V8::Services::OfflineUserDataJobOperation.new op["remove"] = path op end + # 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.customer_user_access_invitation(path) + require "google/ads/google_ads/v8/services/customer_user_access_invitation_service_pb" + op = Google::Ads::GoogleAds::V8::Services::CustomerUserAccessInvitationOperation.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) @@ -5429,28 +5429,28 @@ op = Google::Ads::GoogleAds::V8::Services::CustomerClientLinkOperation.new op["remove"] = path op end - # A convenience method for creating an CustomerManagerLinkOperation 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.customer_manager_link(path) - require "google/ads/google_ads/v8/services/customer_manager_link_service_pb" - op = Google::Ads::GoogleAds::V8::Services::CustomerManagerLinkOperation.new + def self.account_link(path) + require "google/ads/google_ads/v8/services/account_link_service_pb" + op = Google::Ads::GoogleAds::V8::Services::AccountLinkOperation.new op["remove"] = path op end - # A convenience method for creating an CustomerUserAccessInvitationOperation instance with + # 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_user_access_invitation(path) - require "google/ads/google_ads/v8/services/customer_user_access_invitation_service_pb" - op = Google::Ads::GoogleAds::V8::Services::CustomerUserAccessInvitationOperation.new + def self.customer_manager_link(path) + require "google/ads/google_ads/v8/services/customer_manager_link_service_pb" + op = Google::Ads::GoogleAds::V8::Services::CustomerManagerLinkOperation.new op["remove"] = path op end # A convenience method for creating an CustomerUserAccessOperation instance with @@ -5473,49 +5473,49 @@ op = Google::Ads::GoogleAds::V8::Services::MerchantCenterLinkOperation.new op["remove"] = path op end - # A convenience method for creating an OfflineUserDataJobOperation 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.offline_user_data_job(path) - require "google/ads/google_ads/v8/services/offline_user_data_job_service_pb" - op = Google::Ads::GoogleAds::V8::Services::OfflineUserDataJobOperation.new + def self.custom_audience(path) + require "google/ads/google_ads/v8/services/custom_audience_service_pb" + op = Google::Ads::GoogleAds::V8::Services::CustomAudienceOperation.new op["remove"] = path op end - # A convenience method for creating an ApplyRecommendationOperation instance with + # A convenience method for creating an CustomInterestOperation instance with # its "remove" field preopulated with a resource path corresponding to the resource to be removed. # # @param path [String] the resource name of the resource to delete. - def self.apply_recommendation(path) - require "google/ads/google_ads/v8/services/recommendation_service_pb" - op = Google::Ads::GoogleAds::V8::Services::ApplyRecommendationOperation.new + def self.custom_interest(path) + require "google/ads/google_ads/v8/services/custom_interest_service_pb" + op = Google::Ads::GoogleAds::V8::Services::CustomInterestOperation.new op["remove"] = path op end - # A convenience method for creating an DismissRecommendationOperation instance with + # A convenience method for creating an ApplyRecommendationOperation instance with # its "remove" field preopulated with a resource path corresponding to the resource to be removed. # # @param path [String] the resource name of the resource to delete. - def self.dismiss_recommendation(path) + def self.apply_recommendation(path) require "google/ads/google_ads/v8/services/recommendation_service_pb" - op = Google::Ads::GoogleAds::V8::Services::DismissRecommendationRequest::DismissRecommendationOperation.new + op = Google::Ads::GoogleAds::V8::Services::ApplyRecommendationOperation.new op["remove"] = path op end - # A convenience method for creating an UserDataOperation instance with + # A convenience method for creating an DismissRecommendationOperation 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) - require "google/ads/google_ads/v8/services/user_data_service_pb" - op = Google::Ads::GoogleAds::V8::Services::UserDataOperation.new + def self.dismiss_recommendation(path) + require "google/ads/google_ads/v8/services/recommendation_service_pb" + op = Google::Ads::GoogleAds::V8::Services::DismissRecommendationRequest::DismissRecommendationOperation.new op["remove"] = path op end end end