module Google::Ads::GoogleAds::Factories::V7::Operations::CreateResource
Public Class Methods
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::V7::Resources::AccountBudgetProposal] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::AccountBudgetProposalOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 2334 def self.account_budget_proposal(res = nil, &blk) require "google/ads/google_ads/v7/services/account_budget_proposal_service_pb" op = Google::Ads::GoogleAds::V7::Services::AccountBudgetProposalOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.account_budget_proposal(&blk) else Factories::V7::Resources.account_budget_proposal end op end
A convenience method for creating an AdGroupOperation instance with its “create” field prepopulated with an AdGroup instance.
@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 ad_group
(res)
creates an operation instance, with the resource to be created set to the passed value (res) @param res [Google::Ads::GoogleAds::V7::Resources::AdGroup] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::AdGroupOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 1281 def self.ad_group(res = nil, &blk) require "google/ads/google_ads/v7/services/ad_group_service_pb" op = Google::Ads::GoogleAds::V7::Services::AdGroupOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.ad_group(&blk) else Factories::V7::Resources.ad_group end op end
A convenience method for creating an AdGroupAdOperation instance with its “create” field prepopulated with an AdGroupAd instance.
@overload ad_group_ad
creates an operation instance, yielding a newly fabricated AdGroupAd which can be used for setting attributes on the newly created resource
@overload ad_group_ad
(res)
creates an operation instance, with the resource to be created set to the passed value (res) @param res [Google::Ads::GoogleAds::V7::Resources::AdGroupAd] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::AdGroupAdOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 1065 def self.ad_group_ad(res = nil, &blk) require "google/ads/google_ads/v7/services/ad_group_ad_service_pb" op = Google::Ads::GoogleAds::V7::Services::AdGroupAdOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.ad_group_ad(&blk) else Factories::V7::Resources.ad_group_ad 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::V7::Resources::AdGroupAdLabel] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::AdGroupAdLabelOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 1038 def self.ad_group_ad_label(res = nil, &blk) require "google/ads/google_ads/v7/services/ad_group_ad_label_service_pb" op = Google::Ads::GoogleAds::V7::Services::AdGroupAdLabelOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.ad_group_ad_label(&blk) else Factories::V7::Resources.ad_group_ad_label end op end
A convenience method for creating an AdGroupAssetOperation instance with its “create” field prepopulated with an AdGroupAsset instance.
@overload ad_group_asset
creates an operation instance, yielding a newly fabricated AdGroupAsset which can be used for setting attributes on the newly created resource
@overload ad_group_asset
(res)
creates an operation instance, with the resource to be created set to the passed value (res) @param res [Google::Ads::GoogleAds::V7::Resources::AdGroupAsset] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::AdGroupAssetOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 1092 def self.ad_group_asset(res = nil, &blk) require "google/ads/google_ads/v7/services/ad_group_asset_service_pb" op = Google::Ads::GoogleAds::V7::Services::AdGroupAssetOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.ad_group_asset(&blk) else Factories::V7::Resources.ad_group_asset end op end
A convenience method for creating an AdGroupBidModifierOperation instance with its “create” field prepopulated with an AdGroupBidModifier instance.
@overload ad_group_bid_modifier
creates an operation instance, yielding a newly fabricated AdGroupBidModifier which can be used for setting attributes on the newly created resource
@overload ad_group_bid_modifier
(res)
creates an operation instance, with the resource to be created set to the passed value (res) @param res [Google::Ads::GoogleAds::V7::Resources::AdGroupBidModifier] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::AdGroupBidModifierOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 1119 def self.ad_group_bid_modifier(res = nil, &blk) require "google/ads/google_ads/v7/services/ad_group_bid_modifier_service_pb" op = Google::Ads::GoogleAds::V7::Services::AdGroupBidModifierOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.ad_group_bid_modifier(&blk) else Factories::V7::Resources.ad_group_bid_modifier 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 which can be used for setting attributes on the newly created resource
@overload ad_group_criterion
(res)
creates an operation instance, with the resource to be created set to the passed value (res) @param res [Google::Ads::GoogleAds::V7::Resources::AdGroupCriterion] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::AdGroupCriterionOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 1173 def self.ad_group_criterion(res = nil, &blk) require "google/ads/google_ads/v7/services/ad_group_criterion_service_pb" op = Google::Ads::GoogleAds::V7::Services::AdGroupCriterionOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.ad_group_criterion(&blk) else Factories::V7::Resources.ad_group_criterion 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::V7::Resources::AdGroupCriterionLabel] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::AdGroupCriterionLabelOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 1146 def self.ad_group_criterion_label(res = nil, &blk) require "google/ads/google_ads/v7/services/ad_group_criterion_label_service_pb" op = Google::Ads::GoogleAds::V7::Services::AdGroupCriterionLabelOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.ad_group_criterion_label(&blk) else Factories::V7::Resources.ad_group_criterion_label end op end
A convenience method for creating an AdGroupExtensionSettingOperation instance with its “create” field prepopulated with an AdGroupExtensionSetting instance.
@overload ad_group_extension_setting
creates an operation instance, yielding a newly fabricated AdGroupExtensionSetting which can be used for setting attributes on the newly created resource
@overload ad_group_extension_setting
(res)
creates an operation instance, with the resource to be created set to the passed value (res) @param res [Google::Ads::GoogleAds::V7::Resources::AdGroupExtensionSetting] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::AdGroupExtensionSettingOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 1200 def self.ad_group_extension_setting(res = nil, &blk) require "google/ads/google_ads/v7/services/ad_group_extension_setting_service_pb" op = Google::Ads::GoogleAds::V7::Services::AdGroupExtensionSettingOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.ad_group_extension_setting(&blk) else Factories::V7::Resources.ad_group_extension_setting end op end
A convenience method for creating an AdGroupFeedOperation instance with its “create” field prepopulated with an AdGroupFeed instance.
@overload ad_group_feed
creates an operation instance, yielding a newly fabricated AdGroupFeed which can be used for setting attributes on the newly created resource
@overload ad_group_feed
(res)
creates an operation instance, with the resource to be created set to the passed value (res) @param res [Google::Ads::GoogleAds::V7::Resources::AdGroupFeed] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::AdGroupFeedOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 1227 def self.ad_group_feed(res = nil, &blk) require "google/ads/google_ads/v7/services/ad_group_feed_service_pb" op = Google::Ads::GoogleAds::V7::Services::AdGroupFeedOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.ad_group_feed(&blk) else Factories::V7::Resources.ad_group_feed end op end
A convenience method for creating an AdGroupLabelOperation instance with its “create” field prepopulated with an AdGroupLabel instance.
@overload ad_group_label
creates an operation instance, yielding a newly fabricated AdGroupLabel which can be used for setting attributes on the newly created resource
@overload ad_group_label
(res)
creates an operation instance, with the resource to be created set to the passed value (res) @param res [Google::Ads::GoogleAds::V7::Resources::AdGroupLabel] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::AdGroupLabelOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 1254 def self.ad_group_label(res = nil, &blk) require "google/ads/google_ads/v7/services/ad_group_label_service_pb" op = Google::Ads::GoogleAds::V7::Services::AdGroupLabelOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.ad_group_label(&blk) else Factories::V7::Resources.ad_group_label end op end
A convenience method for creating an AdParameterOperation instance with its “create” field prepopulated with an AdParameter instance.
@overload ad_parameter
creates an operation instance, yielding a newly fabricated AdParameter which can be used for setting attributes on the newly created resource
@overload ad_parameter
(res)
creates an operation instance, with the resource to be created set to the passed value (res) @param res [Google::Ads::GoogleAds::V7::Resources::AdParameter] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::AdParameterOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 1308 def self.ad_parameter(res = nil, &blk) require "google/ads/google_ads/v7/services/ad_parameter_service_pb" op = Google::Ads::GoogleAds::V7::Services::AdParameterOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.ad_parameter(&blk) else Factories::V7::Resources.ad_parameter end op end
A convenience method for creating an AssetOperation instance with its “create” field prepopulated with an Asset instance.
@overload asset
creates an operation instance, yielding a newly fabricated Asset which can be used for setting attributes on the newly created resource
@overload asset(res)
creates an operation instance, with the resource to be created set to the passed value (res) @param res [Google::Ads::GoogleAds::V7::Resources::Asset] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::AssetOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 1335 def self.asset(res = nil, &blk) require "google/ads/google_ads/v7/services/asset_service_pb" op = Google::Ads::GoogleAds::V7::Services::AssetOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.asset(&blk) else Factories::V7::Resources.asset 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::V7::Resources::BatchJob] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::BatchJobOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 2307 def self.batch_job(res = nil, &blk) require "google/ads/google_ads/v7/services/batch_job_service_pb" op = Google::Ads::GoogleAds::V7::Services::BatchJobOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.batch_job(&blk) else Factories::V7::Resources.batch_job 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::V7::Resources::BiddingStrategy] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::BiddingStrategyOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 1362 def self.bidding_strategy(res = nil, &blk) require "google/ads/google_ads/v7/services/bidding_strategy_service_pb" op = Google::Ads::GoogleAds::V7::Services::BiddingStrategyOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.bidding_strategy(&blk) else Factories::V7::Resources.bidding_strategy end op end
A convenience method for creating an BillingSetupOperation instance with its “create” field prepopulated with an BillingSetup instance.
@overload billing_setup
creates an operation instance, yielding a newly fabricated BillingSetup which can be used for setting attributes on the newly created resource
@overload billing_setup
(res)
creates an operation instance, with the resource to be created set to the passed value (res) @param res [Google::Ads::GoogleAds::V7::Resources::BillingSetup] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::BillingSetupOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 2361 def self.billing_setup(res = nil, &blk) require "google/ads/google_ads/v7/services/billing_setup_service_pb" op = Google::Ads::GoogleAds::V7::Services::BillingSetupOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.billing_setup(&blk) else Factories::V7::Resources.billing_setup 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::V7::Resources::Campaign] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::CampaignOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 1578 def self.campaign(res = nil, &blk) require "google/ads/google_ads/v7/services/campaign_service_pb" op = Google::Ads::GoogleAds::V7::Services::CampaignOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.campaign(&blk) else Factories::V7::Resources.campaign 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 which can be used for setting attributes on the newly created resource
@overload campaign_asset
(res)
creates an operation instance, with the resource to be created set to the passed value (res) @param res [Google::Ads::GoogleAds::V7::Resources::CampaignAsset] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::CampaignAssetOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 1389 def self.campaign_asset(res = nil, &blk) require "google/ads/google_ads/v7/services/campaign_asset_service_pb" op = Google::Ads::GoogleAds::V7::Services::CampaignAssetOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.campaign_asset(&blk) else Factories::V7::Resources.campaign_asset end op end
A convenience method for creating an CampaignBidModifierOperation instance with its “create” field prepopulated with an CampaignBidModifier instance.
@overload campaign_bid_modifier
creates an operation instance, yielding a newly fabricated CampaignBidModifier which can be used for setting attributes on the newly created resource
@overload campaign_bid_modifier
(res)
creates an operation instance, with the resource to be created set to the passed value (res) @param res [Google::Ads::GoogleAds::V7::Resources::CampaignBidModifier] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::CampaignBidModifierOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 1416 def self.campaign_bid_modifier(res = nil, &blk) require "google/ads/google_ads/v7/services/campaign_bid_modifier_service_pb" op = Google::Ads::GoogleAds::V7::Services::CampaignBidModifierOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.campaign_bid_modifier(&blk) else Factories::V7::Resources.campaign_bid_modifier end op end
A convenience method for creating an CampaignBudgetOperation instance with its “create” field prepopulated with an CampaignBudget instance.
@overload campaign_budget
creates an operation instance, yielding a newly fabricated CampaignBudget which can be used for setting attributes on the newly created resource
@overload campaign_budget
(res)
creates an operation instance, with the resource to be created set to the passed value (res) @param res [Google::Ads::GoogleAds::V7::Resources::CampaignBudget] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::CampaignBudgetOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 1443 def self.campaign_budget(res = nil, &blk) require "google/ads/google_ads/v7/services/campaign_budget_service_pb" op = Google::Ads::GoogleAds::V7::Services::CampaignBudgetOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.campaign_budget(&blk) else Factories::V7::Resources.campaign_budget 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::V7::Resources::CampaignCriterion] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::CampaignCriterionOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 1011 def self.campaign_criterion(res = nil, &blk) require "google/ads/google_ads/v7/services/campaign_criterion_service_pb" op = Google::Ads::GoogleAds::V7::Services::CampaignCriterionOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.campaign_criterion(&blk) else Factories::V7::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 which can be used for setting attributes on the newly created resource
@overload campaign_draft
(res)
creates an operation instance, with the resource to be created set to the passed value (res) @param res [Google::Ads::GoogleAds::V7::Resources::CampaignDraft] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::CampaignDraftOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 1470 def self.campaign_draft(res = nil, &blk) require "google/ads/google_ads/v7/services/campaign_draft_service_pb" op = Google::Ads::GoogleAds::V7::Services::CampaignDraftOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.campaign_draft(&blk) else Factories::V7::Resources.campaign_draft end op end
A convenience method for creating an CampaignExtensionSettingOperation instance with its “create” field prepopulated with an CampaignExtensionSetting instance.
@overload campaign_extension_setting
creates an operation instance, yielding a newly fabricated CampaignExtensionSetting which can be used for setting attributes on the newly created resource
@overload campaign_extension_setting
(res)
creates an operation instance, with the resource to be created set to the passed value (res) @param res [Google::Ads::GoogleAds::V7::Resources::CampaignExtensionSetting] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::CampaignExtensionSettingOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 1497 def self.campaign_extension_setting(res = nil, &blk) require "google/ads/google_ads/v7/services/campaign_extension_setting_service_pb" op = Google::Ads::GoogleAds::V7::Services::CampaignExtensionSettingOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.campaign_extension_setting(&blk) else Factories::V7::Resources.campaign_extension_setting end op end
A convenience method for creating an CampaignFeedOperation instance with its “create” field prepopulated with an CampaignFeed instance.
@overload campaign_feed
creates an operation instance, yielding a newly fabricated CampaignFeed which can be used for setting attributes on the newly created resource
@overload campaign_feed
(res)
creates an operation instance, with the resource to be created set to the passed value (res) @param res [Google::Ads::GoogleAds::V7::Resources::CampaignFeed] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::CampaignFeedOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 1524 def self.campaign_feed(res = nil, &blk) require "google/ads/google_ads/v7/services/campaign_feed_service_pb" op = Google::Ads::GoogleAds::V7::Services::CampaignFeedOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.campaign_feed(&blk) else Factories::V7::Resources.campaign_feed end op end
A convenience method for creating an CampaignLabelOperation instance with its “create” field prepopulated with an CampaignLabel instance.
@overload campaign_label
creates an operation instance, yielding a newly fabricated CampaignLabel which can be used for setting attributes on the newly created resource
@overload campaign_label
(res)
creates an operation instance, with the resource to be created set to the passed value (res) @param res [Google::Ads::GoogleAds::V7::Resources::CampaignLabel] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::CampaignLabelOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 1551 def self.campaign_label(res = nil, &blk) require "google/ads/google_ads/v7/services/campaign_label_service_pb" op = Google::Ads::GoogleAds::V7::Services::CampaignLabelOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.campaign_label(&blk) else Factories::V7::Resources.campaign_label end op end
A convenience method for creating an ConversionActionOperation instance with its “create” field prepopulated with an ConversionAction instance.
@overload conversion_action
creates an operation instance, yielding a newly fabricated ConversionAction which can be used for setting attributes on the newly created resource
@overload conversion_action
(res)
creates an operation instance, with the resource to be created set to the passed value (res) @param res [Google::Ads::GoogleAds::V7::Resources::ConversionAction] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::ConversionActionOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 1632 def self.conversion_action(res = nil, &blk) require "google/ads/google_ads/v7/services/conversion_action_service_pb" op = Google::Ads::GoogleAds::V7::Services::ConversionActionOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.conversion_action(&blk) else Factories::V7::Resources.conversion_action end op end
A convenience method for creating an ConversionCustomVariableOperation instance with its “create” field prepopulated with an ConversionCustomVariable instance.
@overload conversion_custom_variable
creates an operation instance, yielding a newly fabricated ConversionCustomVariable which can be used for setting attributes on the newly created resource
@overload conversion_custom_variable
(res)
creates an operation instance, with the resource to be created set to the passed value (res) @param res [Google::Ads::GoogleAds::V7::Resources::ConversionCustomVariable] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::ConversionCustomVariableOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 1659 def self.conversion_custom_variable(res = nil, &blk) require "google/ads/google_ads/v7/services/conversion_custom_variable_service_pb" op = Google::Ads::GoogleAds::V7::Services::ConversionCustomVariableOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.conversion_custom_variable(&blk) else Factories::V7::Resources.conversion_custom_variable end op end
A convenience method for creating an CustomAudienceOperation instance with its “create” field prepopulated with an CustomAudience instance.
@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 custom_audience
(res)
creates an operation instance, with the resource to be created set to the passed value (res) @param res [Google::Ads::GoogleAds::V7::Resources::CustomAudience] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::CustomAudienceOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 2496 def self.custom_audience(res = nil, &blk) require "google/ads/google_ads/v7/services/custom_audience_service_pb" op = Google::Ads::GoogleAds::V7::Services::CustomAudienceOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.custom_audience(&blk) else Factories::V7::Resources.custom_audience 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::V7::Resources::CustomInterest] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::CustomInterestOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 2523 def self.custom_interest(res = nil, &blk) require "google/ads/google_ads/v7/services/custom_interest_service_pb" op = Google::Ads::GoogleAds::V7::Services::CustomInterestOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.custom_interest(&blk) else Factories::V7::Resources.custom_interest end op end
A convenience method for creating an CustomerAssetOperation instance with its “create” field prepopulated with an CustomerAsset instance.
@overload customer_asset
creates an operation instance, yielding a newly fabricated CustomerAsset which can be used for setting attributes on the newly created resource
@overload customer_asset
(res)
creates an operation instance, with the resource to be created set to the passed value (res) @param res [Google::Ads::GoogleAds::V7::Resources::CustomerAsset] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::CustomerAssetOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 1686 def self.customer_asset(res = nil, &blk) require "google/ads/google_ads/v7/services/customer_asset_service_pb" op = Google::Ads::GoogleAds::V7::Services::CustomerAssetOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.customer_asset(&blk) else Factories::V7::Resources.customer_asset end op end
A convenience method for creating an CustomerClientLinkOperation instance with its “create” field prepopulated with an CustomerClientLink instance.
@overload customer_client_link
creates an operation instance, yielding a newly fabricated CustomerClientLink which can be used for setting attributes on the newly created resource
@overload customer_client_link
(res)
creates an operation instance, with the resource to be created set to the passed value (res) @param res [Google::Ads::GoogleAds::V7::Resources::CustomerClientLink] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::CustomerClientLinkOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 2469 def self.customer_client_link(res = nil, &blk) require "google/ads/google_ads/v7/services/customer_client_link_service_pb" op = Google::Ads::GoogleAds::V7::Services::CustomerClientLinkOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.customer_client_link(&blk) else Factories::V7::Resources.customer_client_link end op end
A convenience method for creating an CustomerExtensionSettingOperation instance with its “create” field prepopulated with an CustomerExtensionSetting instance.
@overload customer_extension_setting
creates an operation instance, yielding a newly fabricated CustomerExtensionSetting which can be used for setting attributes on the newly created resource
@overload customer_extension_setting
(res)
creates an operation instance, with the resource to be created set to the passed value (res) @param res [Google::Ads::GoogleAds::V7::Resources::CustomerExtensionSetting] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::CustomerExtensionSettingOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 1713 def self.customer_extension_setting(res = nil, &blk) require "google/ads/google_ads/v7/services/customer_extension_setting_service_pb" op = Google::Ads::GoogleAds::V7::Services::CustomerExtensionSettingOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.customer_extension_setting(&blk) else Factories::V7::Resources.customer_extension_setting end op end
A convenience method for creating an CustomerFeedOperation instance with its “create” field prepopulated with an CustomerFeed instance.
@overload customer_feed
creates an operation instance, yielding a newly fabricated CustomerFeed which can be used for setting attributes on the newly created resource
@overload customer_feed
(res)
creates an operation instance, with the resource to be created set to the passed value (res) @param res [Google::Ads::GoogleAds::V7::Resources::CustomerFeed] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::CustomerFeedOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 1740 def self.customer_feed(res = nil, &blk) require "google/ads/google_ads/v7/services/customer_feed_service_pb" op = Google::Ads::GoogleAds::V7::Services::CustomerFeedOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.customer_feed(&blk) else Factories::V7::Resources.customer_feed end op end
A convenience method for creating an CustomerLabelOperation instance with its “create” field prepopulated with an CustomerLabel instance.
@overload customer_label
creates an operation instance, yielding a newly fabricated CustomerLabel which can be used for setting attributes on the newly created resource
@overload customer_label
(res)
creates an operation instance, with the resource to be created set to the passed value (res) @param res [Google::Ads::GoogleAds::V7::Resources::CustomerLabel] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::CustomerLabelOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 1767 def self.customer_label(res = nil, &blk) require "google/ads/google_ads/v7/services/customer_label_service_pb" op = Google::Ads::GoogleAds::V7::Services::CustomerLabelOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.customer_label(&blk) else Factories::V7::Resources.customer_label 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::V7::Resources::CustomerNegativeCriterion] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::CustomerNegativeCriterionOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 1794 def self.customer_negative_criterion(res = nil, &blk) require "google/ads/google_ads/v7/services/customer_negative_criterion_service_pb" op = Google::Ads::GoogleAds::V7::Services::CustomerNegativeCriterionOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.customer_negative_criterion(&blk) else Factories::V7::Resources.customer_negative_criterion 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::V7::Resources::CustomerUserAccessInvitation] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::CustomerUserAccessInvitationOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 2442 def self.customer_user_access_invitation(res = nil, &blk) require "google/ads/google_ads/v7/services/customer_user_access_invitation_service_pb" op = Google::Ads::GoogleAds::V7::Services::CustomerUserAccessInvitationOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.customer_user_access_invitation(&blk) else Factories::V7::Resources.customer_user_access_invitation end op end
A convenience method for creating an ExtensionFeedItemOperation instance with its “create” field prepopulated with an ExtensionFeedItem instance.
@overload extension_feed_item
creates an operation instance, yielding a newly fabricated ExtensionFeedItem which can be used for setting attributes on the newly created resource
@overload extension_feed_item
(res)
creates an operation instance, with the resource to be created set to the passed value (res) @param res [Google::Ads::GoogleAds::V7::Resources::ExtensionFeedItem] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::ExtensionFeedItemOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 1821 def self.extension_feed_item(res = nil, &blk) require "google/ads/google_ads/v7/services/extension_feed_item_service_pb" op = Google::Ads::GoogleAds::V7::Services::ExtensionFeedItemOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.extension_feed_item(&blk) else Factories::V7::Resources.extension_feed_item 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 which can be used for setting attributes on the newly created resource
@overload feed(res)
creates an operation instance, with the resource to be created set to the passed value (res) @param res [Google::Ads::GoogleAds::V7::Resources::Feed] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::FeedOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 1983 def self.feed(res = nil, &blk) require "google/ads/google_ads/v7/services/feed_service_pb" op = Google::Ads::GoogleAds::V7::Services::FeedOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.feed(&blk) else Factories::V7::Resources.feed end op end
A convenience method for creating an FeedItemOperation instance with its “create” field prepopulated with an FeedItem instance.
@overload feed_item
creates an operation instance, yielding a newly fabricated FeedItem which can be used for setting attributes on the newly created resource
@overload feed_item
(res)
creates an operation instance, with the resource to be created set to the passed value (res) @param res [Google::Ads::GoogleAds::V7::Resources::FeedItem] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::FeedItemOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 1848 def self.feed_item(res = nil, &blk) require "google/ads/google_ads/v7/services/feed_item_service_pb" op = Google::Ads::GoogleAds::V7::Services::FeedItemOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.feed_item(&blk) else Factories::V7::Resources.feed_item 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::V7::Resources::FeedItemSet] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::FeedItemSetOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 1902 def self.feed_item_set(res = nil, &blk) require "google/ads/google_ads/v7/services/feed_item_set_service_pb" op = Google::Ads::GoogleAds::V7::Services::FeedItemSetOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.feed_item_set(&blk) else Factories::V7::Resources.feed_item_set 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 which can be used for setting attributes on the newly created resource
@overload feed_item_set_link
(res)
creates an operation instance, with the resource to be created set to the passed value (res) @param res [Google::Ads::GoogleAds::V7::Resources::FeedItemSetLink] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::FeedItemSetLinkOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 1875 def self.feed_item_set_link(res = nil, &blk) require "google/ads/google_ads/v7/services/feed_item_set_link_service_pb" op = Google::Ads::GoogleAds::V7::Services::FeedItemSetLinkOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.feed_item_set_link(&blk) else Factories::V7::Resources.feed_item_set_link 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 which can be used for setting attributes on the newly created resource
@overload feed_item_target
(res)
creates an operation instance, with the resource to be created set to the passed value (res) @param res [Google::Ads::GoogleAds::V7::Resources::FeedItemTarget] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::FeedItemTargetOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 1929 def self.feed_item_target(res = nil, &blk) require "google/ads/google_ads/v7/services/feed_item_target_service_pb" op = Google::Ads::GoogleAds::V7::Services::FeedItemTargetOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.feed_item_target(&blk) else Factories::V7::Resources.feed_item_target 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::V7::Resources::FeedMapping] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::FeedMappingOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 1956 def self.feed_mapping(res = nil, &blk) require "google/ads/google_ads/v7/services/feed_mapping_service_pb" op = Google::Ads::GoogleAds::V7::Services::FeedMappingOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.feed_mapping(&blk) else Factories::V7::Resources.feed_mapping end op end
A convenience method for creating an KeywordPlanOperation instance with its “create” field prepopulated with an KeywordPlan instance.
@overload keyword_plan
creates an operation instance, yielding a newly fabricated KeywordPlan which can be used for setting attributes on the newly created resource
@overload keyword_plan
(res)
creates an operation instance, with the resource to be created set to the passed value (res) @param res [Google::Ads::GoogleAds::V7::Resources::KeywordPlan] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::KeywordPlanOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 2118 def self.keyword_plan(res = nil, &blk) require "google/ads/google_ads/v7/services/keyword_plan_service_pb" op = Google::Ads::GoogleAds::V7::Services::KeywordPlanOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.keyword_plan(&blk) else Factories::V7::Resources.keyword_plan end op end
A convenience method for creating an KeywordPlanAdGroupOperation instance with its “create” field prepopulated with an KeywordPlanAdGroup instance.
@overload keyword_plan_ad_group
creates an operation instance, yielding a newly fabricated KeywordPlanAdGroup which can be used for setting attributes on the newly created resource
@overload keyword_plan_ad_group
(res)
creates an operation instance, with the resource to be created set to the passed value (res) @param res [Google::Ads::GoogleAds::V7::Resources::KeywordPlanAdGroup] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::KeywordPlanAdGroupOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 2037 def self.keyword_plan_ad_group(res = nil, &blk) require "google/ads/google_ads/v7/services/keyword_plan_ad_group_service_pb" op = Google::Ads::GoogleAds::V7::Services::KeywordPlanAdGroupOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.keyword_plan_ad_group(&blk) else Factories::V7::Resources.keyword_plan_ad_group 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::V7::Resources::KeywordPlanAdGroupKeyword] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::KeywordPlanAdGroupKeywordOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 2010 def self.keyword_plan_ad_group_keyword(res = nil, &blk) require "google/ads/google_ads/v7/services/keyword_plan_ad_group_keyword_service_pb" op = Google::Ads::GoogleAds::V7::Services::KeywordPlanAdGroupKeywordOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.keyword_plan_ad_group_keyword(&blk) else Factories::V7::Resources.keyword_plan_ad_group_keyword end op end
A convenience method for creating an KeywordPlanCampaignOperation instance with its “create” field prepopulated with an KeywordPlanCampaign instance.
@overload keyword_plan_campaign
creates an operation instance, yielding a newly fabricated KeywordPlanCampaign which can be used for setting attributes on the newly created resource
@overload keyword_plan_campaign
(res)
creates an operation instance, with the resource to be created set to the passed value (res) @param res [Google::Ads::GoogleAds::V7::Resources::KeywordPlanCampaign] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::KeywordPlanCampaignOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 2091 def self.keyword_plan_campaign(res = nil, &blk) require "google/ads/google_ads/v7/services/keyword_plan_campaign_service_pb" op = Google::Ads::GoogleAds::V7::Services::KeywordPlanCampaignOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.keyword_plan_campaign(&blk) else Factories::V7::Resources.keyword_plan_campaign end op end
A convenience method for creating an KeywordPlanCampaignKeywordOperation instance with its “create” field prepopulated with an KeywordPlanCampaignKeyword instance.
@overload keyword_plan_campaign_keyword
creates an operation instance, yielding a newly fabricated KeywordPlanCampaignKeyword which can be used for setting attributes on the newly created resource
@overload keyword_plan_campaign_keyword
(res)
creates an operation instance, with the resource to be created set to the passed value (res) @param res [Google::Ads::GoogleAds::V7::Resources::KeywordPlanCampaignKeyword] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::KeywordPlanCampaignKeywordOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 2064 def self.keyword_plan_campaign_keyword(res = nil, &blk) require "google/ads/google_ads/v7/services/keyword_plan_campaign_keyword_service_pb" op = Google::Ads::GoogleAds::V7::Services::KeywordPlanCampaignKeywordOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.keyword_plan_campaign_keyword(&blk) else Factories::V7::Resources.keyword_plan_campaign_keyword 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::V7::Resources::Label] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::LabelOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 2145 def self.label(res = nil, &blk) require "google/ads/google_ads/v7/services/label_service_pb" op = Google::Ads::GoogleAds::V7::Services::LabelOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.label(&blk) else Factories::V7::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 which can be used for setting attributes on the newly created resource
@overload media_file
(res)
creates an operation instance, with the resource to be created set to the passed value (res) @param res [Google::Ads::GoogleAds::V7::Resources::MediaFile] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::MediaFileOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 2172 def self.media_file(res = nil, &blk) require "google/ads/google_ads/v7/services/media_file_service_pb" op = Google::Ads::GoogleAds::V7::Services::MediaFileOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.media_file(&blk) else Factories::V7::Resources.media_file 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 which can be used for setting attributes on the newly created resource
@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::V7::Common::UserData] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::OfflineUserDataJobOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 2415 def self.offline_user_data_job(res = nil, &blk) require "google/ads/google_ads/v7/services/offline_user_data_job_service_pb" op = Google::Ads::GoogleAds::V7::Services::OfflineUserDataJobOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.user_data(&blk) else Factories::V7::Resources.user_data end op end
A convenience method for creating an RemarketingActionOperation instance with its “create” field prepopulated with an RemarketingAction instance.
@overload remarketing_action
creates an operation instance, yielding a newly fabricated RemarketingAction which can be used for setting attributes on the newly created resource
@overload remarketing_action
(res)
creates an operation instance, with the resource to be created set to the passed value (res) @param res [Google::Ads::GoogleAds::V7::Resources::RemarketingAction] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::RemarketingActionOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 2199 def self.remarketing_action(res = nil, &blk) require "google/ads/google_ads/v7/services/remarketing_action_service_pb" op = Google::Ads::GoogleAds::V7::Services::RemarketingActionOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.remarketing_action(&blk) else Factories::V7::Resources.remarketing_action 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::V7::Common::UserData] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::UserDataOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 2388 def self.user_data(res = nil, &blk) require "google/ads/google_ads/v7/services/user_data_service_pb" op = Google::Ads::GoogleAds::V7::Services::UserDataOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.user_data(&blk) else Factories::V7::Resources.user_data 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::V7::Resources::UserList] a resource instance to be used for creation in this operation.
@return [Google::Ads::GoogleAds::V7::Services::UserListOperation] instance that will create the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 2280 def self.user_list(res = nil, &blk) require "google/ads/google_ads/v7/services/user_list_service_pb" op = Google::Ads::GoogleAds::V7::Services::UserListOperation.new op["create"] = if !res.nil? res elsif !blk.nil? Factories::V7::Resources.user_list(&blk) else Factories::V7::Resources.user_list end op end