module Google::Ads::GoogleAds::Factories::V7::Operations::UpdateResource
Public Class Methods
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 account_link(path, &blk)
@param path [String] a resource path for the resource to update @yield [Google::Ads::GoogleAds::V7::Resources::AccountLink] a new instance of the resource for this update operation, on which fields can be set to update
@overload account_link(resource, &blk)
@param resource [Google::Ads::GoogleAds::V7::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::V7::Services::AccountLinkOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 4112 def self.account_link(resource_or_path, &blk) require "google/ads/google_ads/v7/services/account_link_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::AccountLink resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::AccountLink.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::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::V7::Services::AccountLinkOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end
A convenience method for creating an AdOperation instance with its “update” field prepopulated with an Ad instance, and its “update_mask” field populated as needed to send the updates to the API.
@overload ad(path, &blk)
@param path [String] a resource path for the resource to update @yield [Google::Ads::GoogleAds::V7::Resources::Ad] a new instance of the resource for this update operation, on which fields can be set to update
@overload ad(resource, &blk)
@param resource [Google::Ads::GoogleAds::V7::Resources::Ad] a resource instance to update @yield the passed block is called and updates against `resource` are recordered in the update mask
@return [Google::Ads::GoogleAds::V7::Services::AdOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 2903 def self.ad(resource_or_path, &blk) require "google/ads/google_ads/v7/services/ad_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::Ad resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::Ad.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::Resources::Ad === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V7::Services::AdOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end
A convenience method for creating an AdGroupOperation instance with its “update” field prepopulated with an AdGroup instance, and its “update_mask” field populated as needed to send the updates to the API.
@overload ad_group(path, &blk)
@param path [String] a resource path for the resource to update @yield [Google::Ads::GoogleAds::V7::Resources::AdGroup] a new instance of the resource for this update operation, on which fields can be set to update
@overload ad_group(resource, &blk)
@param resource [Google::Ads::GoogleAds::V7::Resources::AdGroup] a resource instance to update @yield the passed block is called and updates against `resource` are recordered in the update mask
@return [Google::Ads::GoogleAds::V7::Services::AdGroupOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 2825 def self.ad_group(resource_or_path, &blk) require "google/ads/google_ads/v7/services/ad_group_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::AdGroup resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::AdGroup.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::Resources::AdGroup === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V7::Services::AdGroupOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end
A convenience method for creating an AdGroupAdOperation instance with its “update” field prepopulated with an AdGroupAd instance, and its “update_mask” field populated as needed to send the updates to the API.
@overload ad_group_ad(path, &blk)
@param path [String] a resource path for the resource to update @yield [Google::Ads::GoogleAds::V7::Resources::AdGroupAd] a new instance of the resource for this update operation, on which fields can be set to update
@overload ad_group_ad(resource, &blk)
@param resource [Google::Ads::GoogleAds::V7::Resources::AdGroupAd] 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::V7::Services::AdGroupAdOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 2591 def self.ad_group_ad(resource_or_path, &blk) require "google/ads/google_ads/v7/services/ad_group_ad_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::AdGroupAd resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::AdGroupAd.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::Resources::AdGroupAd === 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::V7::Services::AdGroupAdOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end
A convenience method for creating an AdGroupAssetOperation instance with its “update” field prepopulated with an AdGroupAsset instance, and its “update_mask” field populated as needed to send the updates to the API.
@overload ad_group_asset(path, &blk)
@param path [String] a resource path for the resource to update @yield [Google::Ads::GoogleAds::V7::Resources::AdGroupAsset] a new instance of the resource for this update operation, on which fields can be set to update
@overload ad_group_asset(resource, &blk)
@param resource [Google::Ads::GoogleAds::V7::Resources::AdGroupAsset] 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::V7::Services::AdGroupAssetOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 2630 def self.ad_group_asset(resource_or_path, &blk) require "google/ads/google_ads/v7/services/ad_group_asset_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::AdGroupAsset resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::AdGroupAsset.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::Resources::AdGroupAsset === 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::V7::Services::AdGroupAssetOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end
A convenience method for creating an AdGroupBidModifierOperation instance with its “update” field prepopulated with an AdGroupBidModifier instance, and its “update_mask” field populated as needed to send the updates to the API.
@overload ad_group_bid_modifier(path, &blk)
@param path [String] a resource path for the resource to update @yield [Google::Ads::GoogleAds::V7::Resources::AdGroupBidModifier] a new instance of the resource for this update operation, on which fields can be set to update
@overload ad_group_bid_modifier(resource, &blk)
@param resource [Google::Ads::GoogleAds::V7::Resources::AdGroupBidModifier] a resource instance to update @yield the passed block is called and updates against `resource` are recordered in the update mask
@return [Google::Ads::GoogleAds::V7::Services::AdGroupBidModifierOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 2669 def self.ad_group_bid_modifier(resource_or_path, &blk) require "google/ads/google_ads/v7/services/ad_group_bid_modifier_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::AdGroupBidModifier resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::AdGroupBidModifier.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::Resources::AdGroupBidModifier === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V7::Services::AdGroupBidModifierOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end
A convenience method for creating an AdGroupCriterionOperation instance with its “update” field prepopulated with an AdGroupCriterion instance, and its “update_mask” field populated as needed to send the updates to the API.
@overload ad_group_criterion(path, &blk)
@param path [String] a resource path for the resource to update @yield [Google::Ads::GoogleAds::V7::Resources::AdGroupCriterion] a new instance of the resource for this update operation, on which fields can be set to update
@overload ad_group_criterion(resource, &blk)
@param resource [Google::Ads::GoogleAds::V7::Resources::AdGroupCriterion] 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::V7::Services::AdGroupCriterionOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 2708 def self.ad_group_criterion(resource_or_path, &blk) require "google/ads/google_ads/v7/services/ad_group_criterion_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::AdGroupCriterion resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::AdGroupCriterion.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::Resources::AdGroupCriterion === 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::V7::Services::AdGroupCriterionOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end
A convenience method for creating an AdGroupExtensionSettingOperation instance with its “update” field prepopulated with an AdGroupExtensionSetting instance, and its “update_mask” field populated as needed to send the updates to the API.
@overload ad_group_extension_setting(path, &blk)
@param path [String] a resource path for the resource to update @yield [Google::Ads::GoogleAds::V7::Resources::AdGroupExtensionSetting] a new instance of the resource for this update operation, on which fields can be set to update
@overload ad_group_extension_setting(resource, &blk)
@param resource [Google::Ads::GoogleAds::V7::Resources::AdGroupExtensionSetting] 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::V7::Services::AdGroupExtensionSettingOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 2747 def self.ad_group_extension_setting(resource_or_path, &blk) require "google/ads/google_ads/v7/services/ad_group_extension_setting_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::AdGroupExtensionSetting resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::AdGroupExtensionSetting.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::Resources::AdGroupExtensionSetting === 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::V7::Services::AdGroupExtensionSettingOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end
A convenience method for creating an AdGroupFeedOperation instance with its “update” field prepopulated with an AdGroupFeed instance, and its “update_mask” field populated as needed to send the updates to the API.
@overload ad_group_feed(path, &blk)
@param path [String] a resource path for the resource to update @yield [Google::Ads::GoogleAds::V7::Resources::AdGroupFeed] a new instance of the resource for this update operation, on which fields can be set to update
@overload ad_group_feed(resource, &blk)
@param resource [Google::Ads::GoogleAds::V7::Resources::AdGroupFeed] 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::V7::Services::AdGroupFeedOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 2786 def self.ad_group_feed(resource_or_path, &blk) require "google/ads/google_ads/v7/services/ad_group_feed_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::AdGroupFeed resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::AdGroupFeed.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::Resources::AdGroupFeed === 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::V7::Services::AdGroupFeedOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end
A convenience method for creating an AdParameterOperation instance with its “update” field prepopulated with an AdParameter instance, and its “update_mask” field populated as needed to send the updates to the API.
@overload ad_parameter(path, &blk)
@param path [String] a resource path for the resource to update @yield [Google::Ads::GoogleAds::V7::Resources::AdParameter] a new instance of the resource for this update operation, on which fields can be set to update
@overload ad_parameter(resource, &blk)
@param resource [Google::Ads::GoogleAds::V7::Resources::AdParameter] 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::V7::Services::AdParameterOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 2864 def self.ad_parameter(resource_or_path, &blk) require "google/ads/google_ads/v7/services/ad_parameter_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::AdParameter resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::AdParameter.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::Resources::AdParameter === 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::V7::Services::AdParameterOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end
A convenience method for creating an AssetOperation instance with its “update” field prepopulated with an Asset instance, and its “update_mask” field populated as needed to send the updates to the API.
@overload asset(path, &blk)
@param path [String] a resource path for the resource to update @yield [Google::Ads::GoogleAds::V7::Resources::Asset] a new instance of the resource for this update operation, on which fields can be set to update
@overload asset(resource, &blk)
@param resource [Google::Ads::GoogleAds::V7::Resources::Asset] 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::V7::Services::AssetOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 2942 def self.asset(resource_or_path, &blk) require "google/ads/google_ads/v7/services/asset_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::Asset resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::Asset.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::Resources::Asset === 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::V7::Services::AssetOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end
A convenience method for creating an BiddingStrategyOperation instance with its “update” field prepopulated with an BiddingStrategy instance, and its “update_mask” field populated as needed to send the updates to the API.
@overload bidding_strategy(path, &blk)
@param path [String] a resource path for the resource to update @yield [Google::Ads::GoogleAds::V7::Resources::BiddingStrategy] a new instance of the resource for this update operation, on which fields can be set to update
@overload bidding_strategy(resource, &blk)
@param resource [Google::Ads::GoogleAds::V7::Resources::BiddingStrategy] a resource instance to update @yield the passed block is called and updates against `resource` are recordered in the update mask
@return [Google::Ads::GoogleAds::V7::Services::BiddingStrategyOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 2981 def self.bidding_strategy(resource_or_path, &blk) require "google/ads/google_ads/v7/services/bidding_strategy_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::BiddingStrategy resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::BiddingStrategy.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::Resources::BiddingStrategy === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V7::Services::BiddingStrategyOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end
A convenience method for creating an CampaignOperation instance with its “update” field prepopulated with an Campaign instance, and its “update_mask” field populated as needed to send the updates to the API.
@overload campaign(path, &blk)
@param path [String] a resource path for the resource to update @yield [Google::Ads::GoogleAds::V7::Resources::Campaign] a new instance of the resource for this update operation, on which fields can be set to update
@overload campaign(resource, &blk)
@param resource [Google::Ads::GoogleAds::V7::Resources::Campaign] a resource instance to update @yield the passed block is called and updates against `resource` are recordered in the update mask
@return [Google::Ads::GoogleAds::V7::Services::CampaignOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 3293 def self.campaign(resource_or_path, &blk) require "google/ads/google_ads/v7/services/campaign_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::Campaign resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::Campaign.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::Resources::Campaign === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V7::Services::CampaignOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end
A convenience method for creating an CampaignAssetOperation instance with its “update” field prepopulated with an CampaignAsset instance, and its “update_mask” field populated as needed to send the updates to the API.
@overload campaign_asset(path, &blk)
@param path [String] a resource path for the resource to update @yield [Google::Ads::GoogleAds::V7::Resources::CampaignAsset] a new instance of the resource for this update operation, on which fields can be set to update
@overload campaign_asset(resource, &blk)
@param resource [Google::Ads::GoogleAds::V7::Resources::CampaignAsset] 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::V7::Services::CampaignAssetOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 3020 def self.campaign_asset(resource_or_path, &blk) require "google/ads/google_ads/v7/services/campaign_asset_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::CampaignAsset resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::CampaignAsset.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::Resources::CampaignAsset === 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::V7::Services::CampaignAssetOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end
A convenience method for creating an CampaignBidModifierOperation instance with its “update” field prepopulated with an CampaignBidModifier instance, and its “update_mask” field populated as needed to send the updates to the API.
@overload campaign_bid_modifier(path, &blk)
@param path [String] a resource path for the resource to update @yield [Google::Ads::GoogleAds::V7::Resources::CampaignBidModifier] a new instance of the resource for this update operation, on which fields can be set to update
@overload campaign_bid_modifier(resource, &blk)
@param resource [Google::Ads::GoogleAds::V7::Resources::CampaignBidModifier] a resource instance to update @yield the passed block is called and updates against `resource` are recordered in the update mask
@return [Google::Ads::GoogleAds::V7::Services::CampaignBidModifierOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 3059 def self.campaign_bid_modifier(resource_or_path, &blk) require "google/ads/google_ads/v7/services/campaign_bid_modifier_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::CampaignBidModifier resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::CampaignBidModifier.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::Resources::CampaignBidModifier === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V7::Services::CampaignBidModifierOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end
A convenience method for creating an CampaignBudgetOperation instance with its “update” field prepopulated with an CampaignBudget instance, and its “update_mask” field populated as needed to send the updates to the API.
@overload campaign_budget(path, &blk)
@param path [String] a resource path for the resource to update @yield [Google::Ads::GoogleAds::V7::Resources::CampaignBudget] a new instance of the resource for this update operation, on which fields can be set to update
@overload campaign_budget(resource, &blk)
@param resource [Google::Ads::GoogleAds::V7::Resources::CampaignBudget] a resource instance to update @yield the passed block is called and updates against `resource` are recordered in the update mask
@return [Google::Ads::GoogleAds::V7::Services::CampaignBudgetOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 3098 def self.campaign_budget(resource_or_path, &blk) require "google/ads/google_ads/v7/services/campaign_budget_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::CampaignBudget resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::CampaignBudget.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::Resources::CampaignBudget === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V7::Services::CampaignBudgetOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end
A convenience method for creating an CampaignCriterionOperation instance with its “update” field prepopulated with an CampaignCriterion instance, and its “update_mask” field populated as needed to send the updates to the API.
@overload campaign_criterion(path, &blk)
@param path [String] a resource path for the resource to update @yield [Google::Ads::GoogleAds::V7::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::V7::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::V7::Services::CampaignCriterionOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 2552 def self.campaign_criterion(resource_or_path, &blk) require "google/ads/google_ads/v7/services/campaign_criterion_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::CampaignCriterion resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::CampaignCriterion.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::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::V7::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)
@param path [String] a resource path for the resource to update @yield [Google::Ads::GoogleAds::V7::Resources::CampaignDraft] a new instance of the resource for this update operation, on which fields can be set to update
@overload campaign_draft(resource, &blk)
@param resource [Google::Ads::GoogleAds::V7::Resources::CampaignDraft] a resource instance to update @yield the passed block is called and updates against `resource` are recordered in the update mask
@return [Google::Ads::GoogleAds::V7::Services::CampaignDraftOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 3137 def self.campaign_draft(resource_or_path, &blk) require "google/ads/google_ads/v7/services/campaign_draft_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::CampaignDraft resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::CampaignDraft.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::Resources::CampaignDraft === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V7::Services::CampaignDraftOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end
A convenience method for creating an CampaignExperimentOperation instance with its “update” field prepopulated with an CampaignExperiment instance, and its “update_mask” field populated as needed to send the updates to the API.
@overload campaign_experiment(path, &blk)
@param path [String] a resource path for the resource to update @yield [Google::Ads::GoogleAds::V7::Resources::CampaignExperiment] a new instance of the resource for this update operation, on which fields can be set to update
@overload campaign_experiment(resource, &blk)
@param resource [Google::Ads::GoogleAds::V7::Resources::CampaignExperiment] 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::V7::Services::CampaignExperimentOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 3176 def self.campaign_experiment(resource_or_path, &blk) require "google/ads/google_ads/v7/services/campaign_experiment_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::CampaignExperiment resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::CampaignExperiment.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::Resources::CampaignExperiment === 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::V7::Services::CampaignExperimentOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end
A convenience method for creating an CampaignExtensionSettingOperation instance with its “update” field prepopulated with an CampaignExtensionSetting instance, and its “update_mask” field populated as needed to send the updates to the API.
@overload campaign_extension_setting(path, &blk)
@param path [String] a resource path for the resource to update @yield [Google::Ads::GoogleAds::V7::Resources::CampaignExtensionSetting] a new instance of the resource for this update operation, on which fields can be set to update
@overload campaign_extension_setting(resource, &blk)
@param resource [Google::Ads::GoogleAds::V7::Resources::CampaignExtensionSetting] 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::V7::Services::CampaignExtensionSettingOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 3215 def self.campaign_extension_setting(resource_or_path, &blk) require "google/ads/google_ads/v7/services/campaign_extension_setting_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::CampaignExtensionSetting resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::CampaignExtensionSetting.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::Resources::CampaignExtensionSetting === 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::V7::Services::CampaignExtensionSettingOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end
A convenience method for creating an CampaignFeedOperation instance with its “update” field prepopulated with an CampaignFeed instance, and its “update_mask” field populated as needed to send the updates to the API.
@overload campaign_feed(path, &blk)
@param path [String] a resource path for the resource to update @yield [Google::Ads::GoogleAds::V7::Resources::CampaignFeed] a new instance of the resource for this update operation, on which fields can be set to update
@overload campaign_feed(resource, &blk)
@param resource [Google::Ads::GoogleAds::V7::Resources::CampaignFeed] a resource instance to update @yield the passed block is called and updates against `resource` are recordered in the update mask
@return [Google::Ads::GoogleAds::V7::Services::CampaignFeedOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 3254 def self.campaign_feed(resource_or_path, &blk) require "google/ads/google_ads/v7/services/campaign_feed_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::CampaignFeed resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::CampaignFeed.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::Resources::CampaignFeed === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V7::Services::CampaignFeedOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end
A convenience method for creating an ConversionActionOperation instance with its “update” field prepopulated with an ConversionAction instance, and its “update_mask” field populated as needed to send the updates to the API.
@overload conversion_action(path, &blk)
@param path [String] a resource path for the resource to update @yield [Google::Ads::GoogleAds::V7::Resources::ConversionAction] a new instance of the resource for this update operation, on which fields can be set to update
@overload conversion_action(resource, &blk)
@param resource [Google::Ads::GoogleAds::V7::Resources::ConversionAction] 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::V7::Services::ConversionActionOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 3332 def self.conversion_action(resource_or_path, &blk) require "google/ads/google_ads/v7/services/conversion_action_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::ConversionAction resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::ConversionAction.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::Resources::ConversionAction === 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::V7::Services::ConversionActionOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end
A convenience method for creating an ConversionCustomVariableOperation instance with its “update” field prepopulated with an ConversionCustomVariable instance, and its “update_mask” field populated as needed to send the updates to the API.
@overload conversion_custom_variable(path, &blk)
@param path [String] a resource path for the resource to update @yield [Google::Ads::GoogleAds::V7::Resources::ConversionCustomVariable] a new instance of the resource for this update operation, on which fields can be set to update
@overload conversion_custom_variable(resource, &blk)
@param resource [Google::Ads::GoogleAds::V7::Resources::ConversionCustomVariable] 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::V7::Services::ConversionCustomVariableOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 3371 def self.conversion_custom_variable(resource_or_path, &blk) require "google/ads/google_ads/v7/services/conversion_custom_variable_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::ConversionCustomVariable resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::ConversionCustomVariable.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::Resources::ConversionCustomVariable === 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::V7::Services::ConversionCustomVariableOperation.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::V7::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::V7::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::V7::Services::CustomAudienceOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 4268 def self.custom_audience(resource_or_path, &blk) require "google/ads/google_ads/v7/services/custom_audience_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::CustomAudience resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::CustomAudience.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::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::V7::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::V7::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::V7::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::V7::Services::CustomInterestOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 4307 def self.custom_interest(resource_or_path, &blk) require "google/ads/google_ads/v7/services/custom_interest_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::CustomInterest resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::CustomInterest.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::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::V7::Services::CustomInterestOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end
A convenience method for creating an CustomerOperation instance with its “update” field prepopulated with an Customer instance, and its “update_mask” field populated as needed to send the updates to the API.
@overload customer(path, &blk)
@param path [String] a resource path for the resource to update @yield [Google::Ads::GoogleAds::V7::Resources::Customer] a new instance of the resource for this update operation, on which fields can be set to update
@overload customer(resource, &blk)
@param resource [Google::Ads::GoogleAds::V7::Resources::Customer] a resource instance to update @yield the passed block is called and updates against `resource` are recordered in the update mask
@return [Google::Ads::GoogleAds::V7::Services::CustomerOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 3527 def self.customer(resource_or_path, &blk) require "google/ads/google_ads/v7/services/customer_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::Customer resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::Customer.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::Resources::Customer === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V7::Services::CustomerOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end
A convenience method for creating an CustomerAssetOperation instance with its “update” field prepopulated with an CustomerAsset instance, and its “update_mask” field populated as needed to send the updates to the API.
@overload customer_asset(path, &blk)
@param path [String] a resource path for the resource to update @yield [Google::Ads::GoogleAds::V7::Resources::CustomerAsset] a new instance of the resource for this update operation, on which fields can be set to update
@overload customer_asset(resource, &blk)
@param resource [Google::Ads::GoogleAds::V7::Resources::CustomerAsset] 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::V7::Services::CustomerAssetOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 3410 def self.customer_asset(resource_or_path, &blk) require "google/ads/google_ads/v7/services/customer_asset_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::CustomerAsset resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::CustomerAsset.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::Resources::CustomerAsset === 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::V7::Services::CustomerAssetOperation.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::V7::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::V7::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::V7::Services::CustomerClientLinkOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 4073 def self.customer_client_link(resource_or_path, &blk) require "google/ads/google_ads/v7/services/customer_client_link_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::CustomerClientLink resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::CustomerClientLink.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::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::V7::Services::CustomerClientLinkOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end
A convenience method for creating an CustomerExtensionSettingOperation instance with its “update” field prepopulated with an CustomerExtensionSetting instance, and its “update_mask” field populated as needed to send the updates to the API.
@overload customer_extension_setting(path, &blk)
@param path [String] a resource path for the resource to update @yield [Google::Ads::GoogleAds::V7::Resources::CustomerExtensionSetting] a new instance of the resource for this update operation, on which fields can be set to update
@overload customer_extension_setting(resource, &blk)
@param resource [Google::Ads::GoogleAds::V7::Resources::CustomerExtensionSetting] 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::V7::Services::CustomerExtensionSettingOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 3449 def self.customer_extension_setting(resource_or_path, &blk) require "google/ads/google_ads/v7/services/customer_extension_setting_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::CustomerExtensionSetting resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::CustomerExtensionSetting.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::Resources::CustomerExtensionSetting === 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::V7::Services::CustomerExtensionSettingOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end
A convenience method for creating an CustomerFeedOperation instance with its “update” field prepopulated with an CustomerFeed instance, and its “update_mask” field populated as needed to send the updates to the API.
@overload customer_feed(path, &blk)
@param path [String] a resource path for the resource to update @yield [Google::Ads::GoogleAds::V7::Resources::CustomerFeed] a new instance of the resource for this update operation, on which fields can be set to update
@overload customer_feed(resource, &blk)
@param resource [Google::Ads::GoogleAds::V7::Resources::CustomerFeed] 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::V7::Services::CustomerFeedOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 3488 def self.customer_feed(resource_or_path, &blk) require "google/ads/google_ads/v7/services/customer_feed_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::CustomerFeed resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::CustomerFeed.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::Resources::CustomerFeed === 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::V7::Services::CustomerFeedOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end
A convenience method for creating an CustomerManagerLinkOperation instance with its “update” field prepopulated with an CustomerManagerLink instance, and its “update_mask” field populated as needed to send the updates to the API.
@overload customer_manager_link(path, &blk)
@param path [String] a resource path for the resource to update @yield [Google::Ads::GoogleAds::V7::Resources::CustomerManagerLink] a new instance of the resource for this update operation, on which fields can be set to update
@overload customer_manager_link(resource, &blk)
@param resource [Google::Ads::GoogleAds::V7::Resources::CustomerManagerLink] a resource instance to update @yield the passed block is called and updates against `resource` are recordered in the update mask
@return [Google::Ads::GoogleAds::V7::Services::CustomerManagerLinkOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 4151 def self.customer_manager_link(resource_or_path, &blk) require "google/ads/google_ads/v7/services/customer_manager_link_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::CustomerManagerLink resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::CustomerManagerLink.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::Resources::CustomerManagerLink === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V7::Services::CustomerManagerLinkOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end
A convenience method for creating an CustomerUserAccessOperation instance with its “update” field prepopulated with an CustomerUserAccess instance, and its “update_mask” field populated as needed to send the updates to the API.
@overload customer_user_access(path, &blk)
@param path [String] a resource path for the resource to update @yield [Google::Ads::GoogleAds::V7::Resources::CustomerUserAccess] a new instance of the resource for this update operation, on which fields can be set to update
@overload customer_user_access(resource, &blk)
@param resource [Google::Ads::GoogleAds::V7::Resources::CustomerUserAccess] 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::V7::Services::CustomerUserAccessOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 4190 def self.customer_user_access(resource_or_path, &blk) require "google/ads/google_ads/v7/services/customer_user_access_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::CustomerUserAccess resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::CustomerUserAccess.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::Resources::CustomerUserAccess === 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::V7::Services::CustomerUserAccessOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end
A convenience method for creating an ExtensionFeedItemOperation instance with its “update” field prepopulated with an ExtensionFeedItem instance, and its “update_mask” field populated as needed to send the updates to the API.
@overload extension_feed_item(path, &blk)
@param path [String] a resource path for the resource to update @yield [Google::Ads::GoogleAds::V7::Resources::ExtensionFeedItem] a new instance of the resource for this update operation, on which fields can be set to update
@overload extension_feed_item(resource, &blk)
@param resource [Google::Ads::GoogleAds::V7::Resources::ExtensionFeedItem] a resource instance to update @yield the passed block is called and updates against `resource` are recordered in the update mask
@return [Google::Ads::GoogleAds::V7::Services::ExtensionFeedItemOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 3566 def self.extension_feed_item(resource_or_path, &blk) require "google/ads/google_ads/v7/services/extension_feed_item_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::ExtensionFeedItem resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::ExtensionFeedItem.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::Resources::ExtensionFeedItem === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V7::Services::ExtensionFeedItemOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end
A convenience method for creating an FeedOperation instance with its “update” field prepopulated with an Feed instance, and its “update_mask” field populated as needed to send the updates to the API.
@overload feed(path, &blk)
@param path [String] a resource path for the resource to update @yield [Google::Ads::GoogleAds::V7::Resources::Feed] a new instance of the resource for this update operation, on which fields can be set to update
@overload feed(resource, &blk)
@param resource [Google::Ads::GoogleAds::V7::Resources::Feed] a resource instance to update @yield the passed block is called and updates against `resource` are recordered in the update mask
@return [Google::Ads::GoogleAds::V7::Services::FeedOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 3683 def self.feed(resource_or_path, &blk) require "google/ads/google_ads/v7/services/feed_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::Feed resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::Feed.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::Resources::Feed === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V7::Services::FeedOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end
A convenience method for creating an FeedItemOperation instance with its “update” field prepopulated with an FeedItem instance, and its “update_mask” field populated as needed to send the updates to the API.
@overload feed_item(path, &blk)
@param path [String] a resource path for the resource to update @yield [Google::Ads::GoogleAds::V7::Resources::FeedItem] a new instance of the resource for this update operation, on which fields can be set to update
@overload feed_item(resource, &blk)
@param resource [Google::Ads::GoogleAds::V7::Resources::FeedItem] a resource instance to update @yield the passed block is called and updates against `resource` are recordered in the update mask
@return [Google::Ads::GoogleAds::V7::Services::FeedItemOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 3605 def self.feed_item(resource_or_path, &blk) require "google/ads/google_ads/v7/services/feed_item_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::FeedItem resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::FeedItem.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::Resources::FeedItem === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V7::Services::FeedItemOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end
A convenience method for creating an FeedItemSetOperation instance with its “update” field prepopulated with an FeedItemSet instance, and its “update_mask” field populated as needed to send the updates to the API.
@overload feed_item_set(path, &blk)
@param path [String] a resource path for the resource to update @yield [Google::Ads::GoogleAds::V7::Resources::FeedItemSet] a new instance of the resource for this update operation, on which fields can be set to update
@overload feed_item_set(resource, &blk)
@param resource [Google::Ads::GoogleAds::V7::Resources::FeedItemSet] a resource instance to update @yield the passed block is called and updates against `resource` are recordered in the update mask
@return [Google::Ads::GoogleAds::V7::Services::FeedItemSetOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 3644 def self.feed_item_set(resource_or_path, &blk) require "google/ads/google_ads/v7/services/feed_item_set_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::FeedItemSet resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::FeedItemSet.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::Resources::FeedItemSet === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V7::Services::FeedItemSetOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end
A convenience method for creating an KeywordPlanOperation instance with its “update” field prepopulated with an KeywordPlan instance, and its “update_mask” field populated as needed to send the updates to the API.
@overload keyword_plan(path, &blk)
@param path [String] a resource path for the resource to update @yield [Google::Ads::GoogleAds::V7::Resources::KeywordPlan] a new instance of the resource for this update operation, on which fields can be set to update
@overload keyword_plan(resource, &blk)
@param resource [Google::Ads::GoogleAds::V7::Resources::KeywordPlan] a resource instance to update @yield the passed block is called and updates against `resource` are recordered in the update mask
@return [Google::Ads::GoogleAds::V7::Services::KeywordPlanOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 3878 def self.keyword_plan(resource_or_path, &blk) require "google/ads/google_ads/v7/services/keyword_plan_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::KeywordPlan resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::KeywordPlan.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::Resources::KeywordPlan === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V7::Services::KeywordPlanOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end
A convenience method for creating an KeywordPlanAdGroupOperation instance with its “update” field prepopulated with an KeywordPlanAdGroup instance, and its “update_mask” field populated as needed to send the updates to the API.
@overload keyword_plan_ad_group(path, &blk)
@param path [String] a resource path for the resource to update @yield [Google::Ads::GoogleAds::V7::Resources::KeywordPlanAdGroup] a new instance of the resource for this update operation, on which fields can be set to update
@overload keyword_plan_ad_group(resource, &blk)
@param resource [Google::Ads::GoogleAds::V7::Resources::KeywordPlanAdGroup] 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::V7::Services::KeywordPlanAdGroupOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 3761 def self.keyword_plan_ad_group(resource_or_path, &blk) require "google/ads/google_ads/v7/services/keyword_plan_ad_group_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::KeywordPlanAdGroup resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::KeywordPlanAdGroup.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::Resources::KeywordPlanAdGroup === 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::V7::Services::KeywordPlanAdGroupOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end
A convenience method for creating an KeywordPlanAdGroupKeywordOperation instance with its “update” field prepopulated with an KeywordPlanAdGroupKeyword instance, and its “update_mask” field populated as needed to send the updates to the API.
@overload keyword_plan_ad_group_keyword(path, &blk)
@param path [String] a resource path for the resource to update @yield [Google::Ads::GoogleAds::V7::Resources::KeywordPlanAdGroupKeyword] a new instance of the resource for this update operation, on which fields can be set to update
@overload keyword_plan_ad_group_keyword(resource, &blk)
@param resource [Google::Ads::GoogleAds::V7::Resources::KeywordPlanAdGroupKeyword] a resource instance to update @yield the passed block is called and updates against `resource` are recordered in the update mask
@return [Google::Ads::GoogleAds::V7::Services::KeywordPlanAdGroupKeywordOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 3722 def self.keyword_plan_ad_group_keyword(resource_or_path, &blk) require "google/ads/google_ads/v7/services/keyword_plan_ad_group_keyword_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::KeywordPlanAdGroupKeyword resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::KeywordPlanAdGroupKeyword.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::Resources::KeywordPlanAdGroupKeyword === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V7::Services::KeywordPlanAdGroupKeywordOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end
A convenience method for creating an KeywordPlanCampaignOperation instance with its “update” field prepopulated with an KeywordPlanCampaign instance, and its “update_mask” field populated as needed to send the updates to the API.
@overload keyword_plan_campaign(path, &blk)
@param path [String] a resource path for the resource to update @yield [Google::Ads::GoogleAds::V7::Resources::KeywordPlanCampaign] a new instance of the resource for this update operation, on which fields can be set to update
@overload keyword_plan_campaign(resource, &blk)
@param resource [Google::Ads::GoogleAds::V7::Resources::KeywordPlanCampaign] a resource instance to update @yield the passed block is called and updates against `resource` are recordered in the update mask
@return [Google::Ads::GoogleAds::V7::Services::KeywordPlanCampaignOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 3839 def self.keyword_plan_campaign(resource_or_path, &blk) require "google/ads/google_ads/v7/services/keyword_plan_campaign_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::KeywordPlanCampaign resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::KeywordPlanCampaign.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::Resources::KeywordPlanCampaign === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V7::Services::KeywordPlanCampaignOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end
A convenience method for creating an KeywordPlanCampaignKeywordOperation instance with its “update” field prepopulated with an KeywordPlanCampaignKeyword instance, and its “update_mask” field populated as needed to send the updates to the API.
@overload keyword_plan_campaign_keyword(path, &blk)
@param path [String] a resource path for the resource to update @yield [Google::Ads::GoogleAds::V7::Resources::KeywordPlanCampaignKeyword] a new instance of the resource for this update operation, on which fields can be set to update
@overload keyword_plan_campaign_keyword(resource, &blk)
@param resource [Google::Ads::GoogleAds::V7::Resources::KeywordPlanCampaignKeyword] 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::V7::Services::KeywordPlanCampaignKeywordOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 3800 def self.keyword_plan_campaign_keyword(resource_or_path, &blk) require "google/ads/google_ads/v7/services/keyword_plan_campaign_keyword_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::KeywordPlanCampaignKeyword resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::KeywordPlanCampaignKeyword.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::Resources::KeywordPlanCampaignKeyword === 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::V7::Services::KeywordPlanCampaignKeywordOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end
A convenience method for creating an LabelOperation instance with its “update” field prepopulated with an Label instance, and its “update_mask” field populated as needed to send the updates to the API.
@overload label(path, &blk)
@param path [String] a resource path for the resource to update @yield [Google::Ads::GoogleAds::V7::Resources::Label] a new instance of the resource for this update operation, on which fields can be set to update
@overload label(resource, &blk)
@param resource [Google::Ads::GoogleAds::V7::Resources::Label] a resource instance to update @yield the passed block is called and updates against `resource` are recordered in the update mask
@return [Google::Ads::GoogleAds::V7::Services::LabelOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 3917 def self.label(resource_or_path, &blk) require "google/ads/google_ads/v7/services/label_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::Label resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::Label.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::Resources::Label === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V7::Services::LabelOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end
A convenience method for creating an MerchantCenterLinkOperation instance with its “update” field prepopulated with an MerchantCenterLink instance, and its “update_mask” field populated as needed to send the updates to the API.
@overload merchant_center_link(path, &blk)
@param path [String] a resource path for the resource to update @yield [Google::Ads::GoogleAds::V7::Resources::MerchantCenterLink] a new instance of the resource for this update operation, on which fields can be set to update
@overload merchant_center_link(resource, &blk)
@param resource [Google::Ads::GoogleAds::V7::Resources::MerchantCenterLink] a resource instance to update @yield the passed block is called and updates against `resource` are recordered in the update mask
@return [Google::Ads::GoogleAds::V7::Services::MerchantCenterLinkOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 4229 def self.merchant_center_link(resource_or_path, &blk) require "google/ads/google_ads/v7/services/merchant_center_link_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::MerchantCenterLink resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::MerchantCenterLink.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::Resources::MerchantCenterLink === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V7::Services::MerchantCenterLinkOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end
A convenience method for creating an RemarketingActionOperation instance with its “update” field prepopulated with an RemarketingAction instance, and its “update_mask” field populated as needed to send the updates to the API.
@overload remarketing_action(path, &blk)
@param path [String] a resource path for the resource to update @yield [Google::Ads::GoogleAds::V7::Resources::RemarketingAction] a new instance of the resource for this update operation, on which fields can be set to update
@overload remarketing_action(resource, &blk)
@param resource [Google::Ads::GoogleAds::V7::Resources::RemarketingAction] a resource instance to update @yield the passed block is called and updates against `resource` are recordered in the update mask
@return [Google::Ads::GoogleAds::V7::Services::RemarketingActionOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 3956 def self.remarketing_action(resource_or_path, &blk) require "google/ads/google_ads/v7/services/remarketing_action_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::RemarketingAction resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::RemarketingAction.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::Resources::RemarketingAction === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V7::Services::RemarketingActionOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end
A convenience method for creating an UserListOperation instance with its “update” field prepopulated with an UserList instance, and its “update_mask” field populated as needed to send the updates to the API.
@overload user_list(path, &blk)
@param path [String] a resource path for the resource to update @yield [Google::Ads::GoogleAds::V7::Resources::UserList] a new instance of the resource for this update operation, on which fields can be set to update
@overload user_list(resource, &blk)
@param resource [Google::Ads::GoogleAds::V7::Resources::UserList] a resource instance to update @yield the passed block is called and updates against `resource` are recordered in the update mask
@return [Google::Ads::GoogleAds::V7::Services::UserListOperation] the operation instance to update the resource
# File lib/google/ads/google_ads/factories/v7/operations.rb, line 4034 def self.user_list(resource_or_path, &blk) require "google/ads/google_ads/v7/services/user_list_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V7::Resources::UserList resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V7::Resources::UserList.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V7::Resources::UserList === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:"\ " #{res.class} want #{operation.update_class}"\ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V7::Services::UserListOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end