Module: Google::Ads::GoogleAds::Factories::V19::Operations::UpdateResource
- Defined in:
- lib/google/ads/google_ads/factories/v19/operations.rb
Class Method Summary collapse
-
.account_link(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::AccountLinkOperation
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.
-
.ad(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::AdOperation
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.
-
.ad_group(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::AdGroupOperation
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.
-
.ad_group_ad(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::AdGroupAdOperation
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.
-
.ad_group_asset(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::AdGroupAssetOperation
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.
-
.ad_group_bid_modifier(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::AdGroupBidModifierOperation
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.
-
.ad_group_criterion(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::AdGroupCriterionOperation
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.
-
.ad_parameter(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::AdParameterOperation
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.
-
.asset(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::AssetOperation
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.
-
.asset_group(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::AssetGroupOperation
A convenience method for creating an AssetGroupOperation instance with its “update” field prepopulated with an AssetGroup instance, and its “update_mask” field populated as needed to send the updates to the API.
-
.asset_group_asset(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::AssetGroupAssetOperation
A convenience method for creating an AssetGroupAssetOperation instance with its “update” field prepopulated with an AssetGroupAsset instance, and its “update_mask” field populated as needed to send the updates to the API.
-
.asset_group_listing_group_filter(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::AssetGroupListingGroupFilterOperation
A convenience method for creating an AssetGroupListingGroupFilterOperation instance with its “update” field prepopulated with an AssetGroupListingGroupFilter instance, and its “update_mask” field populated as needed to send the updates to the API.
-
.asset_set(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::AssetSetOperation
A convenience method for creating an AssetSetOperation instance with its “update” field prepopulated with an AssetSet instance, and its “update_mask” field populated as needed to send the updates to the API.
-
.audience(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::AudienceOperation
A convenience method for creating an AudienceOperation instance with its “update” field prepopulated with an Audience instance, and its “update_mask” field populated as needed to send the updates to the API.
-
.bidding_data_exclusion(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::BiddingDataExclusionOperation
A convenience method for creating an BiddingDataExclusionOperation instance with its “update” field prepopulated with an BiddingDataExclusion instance, and its “update_mask” field populated as needed to send the updates to the API.
-
.bidding_seasonality_adjustment(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::BiddingSeasonalityAdjustmentOperation
A convenience method for creating an BiddingSeasonalityAdjustmentOperation instance with its “update” field prepopulated with an BiddingSeasonalityAdjustment instance, and its “update_mask” field populated as needed to send the updates to the API.
-
.bidding_strategy(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::BiddingStrategyOperation
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.
-
.campaign(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::CampaignOperation
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.
-
.campaign_asset(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::CampaignAssetOperation
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.
-
.campaign_bid_modifier(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::CampaignBidModifierOperation
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.
-
.campaign_budget(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::CampaignBudgetOperation
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.
-
.campaign_conversion_goal(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::CampaignConversionGoalOperation
A convenience method for creating an CampaignConversionGoalOperation instance with its “update” field prepopulated with an CampaignConversionGoal instance, and its “update_mask” field populated as needed to send the updates to the API.
-
.campaign_criterion(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::CampaignCriterionOperation
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.
-
.campaign_draft(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::CampaignDraftOperation
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.
-
.campaign_group(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::CampaignGroupOperation
A convenience method for creating an CampaignGroupOperation instance with its “update” field prepopulated with an CampaignGroup instance, and its “update_mask” field populated as needed to send the updates to the API.
-
.campaign_lifecycle_goal(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::CampaignLifecycleGoalOperation
A convenience method for creating an CampaignLifecycleGoalOperation instance with its “update” field prepopulated with an CampaignLifecycleGoal instance, and its “update_mask” field populated as needed to send the updates to the API.
-
.conversion_action(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::ConversionActionOperation
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.
-
.conversion_custom_variable(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::ConversionCustomVariableOperation
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.
-
.conversion_goal_campaign_config(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::ConversionGoalCampaignConfigOperation
A convenience method for creating an ConversionGoalCampaignConfigOperation instance with its “update” field prepopulated with an ConversionGoalCampaignConfig instance, and its “update_mask” field populated as needed to send the updates to the API.
-
.conversion_value_rule(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::ConversionValueRuleOperation
A convenience method for creating an ConversionValueRuleOperation instance with its “update” field prepopulated with an ConversionValueRule instance, and its “update_mask” field populated as needed to send the updates to the API.
-
.conversion_value_rule_set(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::ConversionValueRuleSetOperation
A convenience method for creating an ConversionValueRuleSetOperation instance with its “update” field prepopulated with an ConversionValueRuleSet instance, and its “update_mask” field populated as needed to send the updates to the API.
-
.custom_audience(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::CustomAudienceOperation
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.
-
.custom_conversion_goal(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::CustomConversionGoalOperation
A convenience method for creating an CustomConversionGoalOperation instance with its “update” field prepopulated with an CustomConversionGoal instance, and its “update_mask” field populated as needed to send the updates to the API.
-
.custom_interest(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::CustomInterestOperation
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.
-
.customer(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::CustomerOperation
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.
-
.customer_asset(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::CustomerAssetOperation
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.
-
.customer_client_link(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::CustomerClientLinkOperation
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.
-
.customer_conversion_goal(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::CustomerConversionGoalOperation
A convenience method for creating an CustomerConversionGoalOperation instance with its “update” field prepopulated with an CustomerConversionGoal instance, and its “update_mask” field populated as needed to send the updates to the API.
-
.customer_lifecycle_goal(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::CustomerLifecycleGoalOperation
A convenience method for creating an CustomerLifecycleGoalOperation instance with its “update” field prepopulated with an CustomerLifecycleGoal instance, and its “update_mask” field populated as needed to send the updates to the API.
-
.customer_manager_link(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::CustomerManagerLinkOperation
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.
-
.customer_sk_ad_network_conversion_value_schema(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::CustomerSkAdNetworkConversionValueSchemaOperation
A convenience method for creating an CustomerSkAdNetworkConversionValueSchemaOperation instance with its “update” field prepopulated with an CustomerSkAdNetworkConversionValueSchema instance, and its “update_mask” field populated as needed to send the updates to the API.
-
.customer_user_access(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::CustomerUserAccessOperation
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.
-
.experiment(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::ExperimentOperation
A convenience method for creating an ExperimentOperation instance with its “update” field prepopulated with an Experiment instance, and its “update_mask” field populated as needed to send the updates to the API.
-
.experiment_arm(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::ExperimentArmOperation
A convenience method for creating an ExperimentArmOperation instance with its “update” field prepopulated with an ExperimentArm instance, and its “update_mask” field populated as needed to send the updates to the API.
-
.keyword_plan(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::KeywordPlanOperation
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.
-
.keyword_plan_ad_group(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::KeywordPlanAdGroupOperation
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.
-
.keyword_plan_ad_group_keyword(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::KeywordPlanAdGroupKeywordOperation
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.
-
.keyword_plan_campaign(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::KeywordPlanCampaignOperation
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.
-
.keyword_plan_campaign_keyword(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::KeywordPlanCampaignKeywordOperation
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.
-
.label(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::LabelOperation
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.
-
.recommendation_subscription(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::RecommendationSubscriptionOperation
A convenience method for creating an RecommendationSubscriptionOperation instance with its “update” field prepopulated with an RecommendationSubscription instance, and its “update_mask” field populated as needed to send the updates to the API.
-
.remarketing_action(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::RemarketingActionOperation
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.
-
.shared_set(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::SharedSetOperation
A convenience method for creating an SharedSetOperation instance with its “update” field prepopulated with an SharedSet instance, and its “update_mask” field populated as needed to send the updates to the API.
-
.smart_campaign_setting(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::SmartCampaignSettingOperation
A convenience method for creating an SmartCampaignSettingOperation instance with its “update” field prepopulated with an SmartCampaignSetting instance, and its “update_mask” field populated as needed to send the updates to the API.
-
.user_list(resource_or_path, &blk) ⇒ Google::Ads::GoogleAds::V19::Services::UserListOperation
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.
Class Method Details
. {|Google::Ads::GoogleAds::V19::Resources::AccountLink| ... } ⇒ Google::Ads::GoogleAds::V19::Services::AccountLinkOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::AccountLinkOperation
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.
3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 3127 def self.account_link(resource_or_path, &blk) require "google/ads/google_ads/v19/services/account_link_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::AccountLink resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::AccountLink.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::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::V19::Services::AccountLinkOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::Ad| ... } ⇒ Google::Ads::GoogleAds::V19::Services::AdOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::AdOperation
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.
3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 3400 def self.ad(resource_or_path, &blk) require "google/ads/google_ads/v19/services/ad_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::Ad resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::Ad.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::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::V19::Services::AdOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::AdGroup| ... } ⇒ Google::Ads::GoogleAds::V19::Services::AdGroupOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::AdGroupOperation
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.
3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 3322 def self.ad_group(resource_or_path, &blk) require "google/ads/google_ads/v19/services/ad_group_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::AdGroup resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::AdGroup.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::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::V19::Services::AdGroupOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::AdGroupAd| ... } ⇒ Google::Ads::GoogleAds::V19::Services::AdGroupAdOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::AdGroupAdOperation
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.
3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 3166 def self.ad_group_ad(resource_or_path, &blk) require "google/ads/google_ads/v19/services/ad_group_ad_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::AdGroupAd resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::AdGroupAd.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::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::V19::Services::AdGroupAdOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::AdGroupAsset| ... } ⇒ Google::Ads::GoogleAds::V19::Services::AdGroupAssetOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::AdGroupAssetOperation
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.
3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 3205 def self.ad_group_asset(resource_or_path, &blk) require "google/ads/google_ads/v19/services/ad_group_asset_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::AdGroupAsset resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::AdGroupAsset.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::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::V19::Services::AdGroupAssetOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::AdGroupBidModifier| ... } ⇒ Google::Ads::GoogleAds::V19::Services::AdGroupBidModifierOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::AdGroupBidModifierOperation
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.
3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 3244 def self.ad_group_bid_modifier(resource_or_path, &blk) require "google/ads/google_ads/v19/services/ad_group_bid_modifier_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::AdGroupBidModifier resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::AdGroupBidModifier.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::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::V19::Services::AdGroupBidModifierOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::AdGroupCriterion| ... } ⇒ Google::Ads::GoogleAds::V19::Services::AdGroupCriterionOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::AdGroupCriterionOperation
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.
3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 3283 def self.ad_group_criterion(resource_or_path, &blk) require "google/ads/google_ads/v19/services/ad_group_criterion_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::AdGroupCriterion resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::AdGroupCriterion.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::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::V19::Services::AdGroupCriterionOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::AdParameter| ... } ⇒ Google::Ads::GoogleAds::V19::Services::AdParameterOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::AdParameterOperation
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.
3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 3361 def self.ad_parameter(resource_or_path, &blk) require "google/ads/google_ads/v19/services/ad_parameter_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::AdParameter resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::AdParameter.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::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::V19::Services::AdParameterOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::Asset| ... } ⇒ Google::Ads::GoogleAds::V19::Services::AssetOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::AssetOperation
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.
3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 3556 def self.asset(resource_or_path, &blk) require "google/ads/google_ads/v19/services/asset_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::Asset resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::Asset.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::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::V19::Services::AssetOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::AssetGroup| ... } ⇒ Google::Ads::GoogleAds::V19::Services::AssetGroupOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::AssetGroupOperation
A convenience method for creating an AssetGroupOperation instance with its “update” field prepopulated with an AssetGroup instance, and its “update_mask” field populated as needed to send the updates to the API.
3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 3517 def self.asset_group(resource_or_path, &blk) require "google/ads/google_ads/v19/services/asset_group_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::AssetGroup resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::AssetGroup.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::Resources::AssetGroup === 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::V19::Services::AssetGroupOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::AssetGroupAsset| ... } ⇒ Google::Ads::GoogleAds::V19::Services::AssetGroupAssetOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::AssetGroupAssetOperation
A convenience method for creating an AssetGroupAssetOperation instance with its “update” field prepopulated with an AssetGroupAsset instance, and its “update_mask” field populated as needed to send the updates to the API.
3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 3439 def self.asset_group_asset(resource_or_path, &blk) require "google/ads/google_ads/v19/services/asset_group_asset_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::AssetGroupAsset resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::AssetGroupAsset.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::Resources::AssetGroupAsset === 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::V19::Services::AssetGroupAssetOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::AssetGroupListingGroupFilter| ... } ⇒ Google::Ads::GoogleAds::V19::Services::AssetGroupListingGroupFilterOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::AssetGroupListingGroupFilterOperation
A convenience method for creating an AssetGroupListingGroupFilterOperation instance with its “update” field prepopulated with an AssetGroupListingGroupFilter instance, and its “update_mask” field populated as needed to send the updates to the API.
3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 3478 def self.asset_group_listing_group_filter(resource_or_path, &blk) require "google/ads/google_ads/v19/services/asset_group_listing_group_filter_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::AssetGroupListingGroupFilter resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::AssetGroupListingGroupFilter.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::Resources::AssetGroupListingGroupFilter === 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::V19::Services::AssetGroupListingGroupFilterOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::AssetSet| ... } ⇒ Google::Ads::GoogleAds::V19::Services::AssetSetOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::AssetSetOperation
A convenience method for creating an AssetSetOperation instance with its “update” field prepopulated with an AssetSet instance, and its “update_mask” field populated as needed to send the updates to the API.
3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 3595 def self.asset_set(resource_or_path, &blk) require "google/ads/google_ads/v19/services/asset_set_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::AssetSet resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::AssetSet.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::Resources::AssetSet === 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::V19::Services::AssetSetOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::Audience| ... } ⇒ Google::Ads::GoogleAds::V19::Services::AudienceOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::AudienceOperation
A convenience method for creating an AudienceOperation instance with its “update” field prepopulated with an Audience instance, and its “update_mask” field populated as needed to send the updates to the API.
3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 3634 def self.audience(resource_or_path, &blk) require "google/ads/google_ads/v19/services/audience_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::Audience resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::Audience.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::Resources::Audience === 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::V19::Services::AudienceOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::BiddingDataExclusion| ... } ⇒ Google::Ads::GoogleAds::V19::Services::BiddingDataExclusionOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::BiddingDataExclusionOperation
A convenience method for creating an BiddingDataExclusionOperation instance with its “update” field prepopulated with an BiddingDataExclusion instance, and its “update_mask” field populated as needed to send the updates to the API.
3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 3673 def self.bidding_data_exclusion(resource_or_path, &blk) require "google/ads/google_ads/v19/services/bidding_data_exclusion_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::BiddingDataExclusion resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::BiddingDataExclusion.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::Resources::BiddingDataExclusion === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:" \ " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V19::Services::BiddingDataExclusionOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::BiddingSeasonalityAdjustment| ... } ⇒ Google::Ads::GoogleAds::V19::Services::BiddingSeasonalityAdjustmentOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::BiddingSeasonalityAdjustmentOperation
A convenience method for creating an BiddingSeasonalityAdjustmentOperation instance with its “update” field prepopulated with an BiddingSeasonalityAdjustment instance, and its “update_mask” field populated as needed to send the updates to the API.
3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 3712 def self.bidding_seasonality_adjustment(resource_or_path, &blk) require "google/ads/google_ads/v19/services/bidding_seasonality_adjustment_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::BiddingSeasonalityAdjustment resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::BiddingSeasonalityAdjustment.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::Resources::BiddingSeasonalityAdjustment === 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::V19::Services::BiddingSeasonalityAdjustmentOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::BiddingStrategy| ... } ⇒ Google::Ads::GoogleAds::V19::Services::BiddingStrategyOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::BiddingStrategyOperation
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.
3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 3751 def self.bidding_strategy(resource_or_path, &blk) require "google/ads/google_ads/v19/services/bidding_strategy_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::BiddingStrategy resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::BiddingStrategy.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::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::V19::Services::BiddingStrategyOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::Campaign| ... } ⇒ Google::Ads::GoogleAds::V19::Services::CampaignOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::CampaignOperation
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.
4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 4063 def self.campaign(resource_or_path, &blk) require "google/ads/google_ads/v19/services/campaign_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::Campaign resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::Campaign.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::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::V19::Services::CampaignOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::CampaignAsset| ... } ⇒ Google::Ads::GoogleAds::V19::Services::CampaignAssetOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::CampaignAssetOperation
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.
3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 3790 def self.campaign_asset(resource_or_path, &blk) require "google/ads/google_ads/v19/services/campaign_asset_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::CampaignAsset resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::CampaignAsset.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::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::V19::Services::CampaignAssetOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::CampaignBidModifier| ... } ⇒ Google::Ads::GoogleAds::V19::Services::CampaignBidModifierOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::CampaignBidModifierOperation
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.
3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 3829 def self.campaign_bid_modifier(resource_or_path, &blk) require "google/ads/google_ads/v19/services/campaign_bid_modifier_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::CampaignBidModifier resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::CampaignBidModifier.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::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::V19::Services::CampaignBidModifierOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::CampaignBudget| ... } ⇒ Google::Ads::GoogleAds::V19::Services::CampaignBudgetOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::CampaignBudgetOperation
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.
3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 3868 def self.campaign_budget(resource_or_path, &blk) require "google/ads/google_ads/v19/services/campaign_budget_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::CampaignBudget resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::CampaignBudget.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::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::V19::Services::CampaignBudgetOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::CampaignConversionGoal| ... } ⇒ Google::Ads::GoogleAds::V19::Services::CampaignConversionGoalOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::CampaignConversionGoalOperation
A convenience method for creating an CampaignConversionGoalOperation instance with its “update” field prepopulated with an CampaignConversionGoal instance, and its “update_mask” field populated as needed to send the updates to the API.
3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 3907 def self.campaign_conversion_goal(resource_or_path, &blk) require "google/ads/google_ads/v19/services/campaign_conversion_goal_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::CampaignConversionGoal resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::CampaignConversionGoal.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::Resources::CampaignConversionGoal === 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::V19::Services::CampaignConversionGoalOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::CampaignCriterion| ... } ⇒ Google::Ads::GoogleAds::V19::Services::CampaignCriterionOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::CampaignCriterionOperation
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.
3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 3946 def self.campaign_criterion(resource_or_path, &blk) require "google/ads/google_ads/v19/services/campaign_criterion_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::CampaignCriterion resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::CampaignCriterion.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::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::V19::Services::CampaignCriterionOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::CampaignDraft| ... } ⇒ Google::Ads::GoogleAds::V19::Services::CampaignDraftOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::CampaignDraftOperation
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.
3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 3985 def self.campaign_draft(resource_or_path, &blk) require "google/ads/google_ads/v19/services/campaign_draft_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::CampaignDraft resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::CampaignDraft.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::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::V19::Services::CampaignDraftOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::CampaignGroup| ... } ⇒ Google::Ads::GoogleAds::V19::Services::CampaignGroupOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::CampaignGroupOperation
A convenience method for creating an CampaignGroupOperation instance with its “update” field prepopulated with an CampaignGroup instance, and its “update_mask” field populated as needed to send the updates to the API.
4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 4024 def self.campaign_group(resource_or_path, &blk) require "google/ads/google_ads/v19/services/campaign_group_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::CampaignGroup resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::CampaignGroup.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::Resources::CampaignGroup === 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::V19::Services::CampaignGroupOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::CampaignLifecycleGoal| ... } ⇒ Google::Ads::GoogleAds::V19::Services::CampaignLifecycleGoalOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::CampaignLifecycleGoalOperation
A convenience method for creating an CampaignLifecycleGoalOperation instance with its “update” field prepopulated with an CampaignLifecycleGoal instance, and its “update_mask” field populated as needed to send the updates to the API.
4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 4960 def self.campaign_lifecycle_goal(resource_or_path, &blk) require "google/ads/google_ads/v19/services/campaign_lifecycle_goal_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::CampaignLifecycleGoal resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::CampaignLifecycleGoal.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::Resources::CampaignLifecycleGoal === 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::V19::Services::CampaignLifecycleGoalOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::ConversionAction| ... } ⇒ Google::Ads::GoogleAds::V19::Services::ConversionActionOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::ConversionActionOperation
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.
4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 4102 def self.conversion_action(resource_or_path, &blk) require "google/ads/google_ads/v19/services/conversion_action_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::ConversionAction resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::ConversionAction.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::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::V19::Services::ConversionActionOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::ConversionCustomVariable| ... } ⇒ Google::Ads::GoogleAds::V19::Services::ConversionCustomVariableOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::ConversionCustomVariableOperation
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.
4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 4141 def self.conversion_custom_variable(resource_or_path, &blk) require "google/ads/google_ads/v19/services/conversion_custom_variable_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::ConversionCustomVariable resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::ConversionCustomVariable.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::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::V19::Services::ConversionCustomVariableOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::ConversionGoalCampaignConfig| ... } ⇒ Google::Ads::GoogleAds::V19::Services::ConversionGoalCampaignConfigOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::ConversionGoalCampaignConfigOperation
A convenience method for creating an ConversionGoalCampaignConfigOperation instance with its “update” field prepopulated with an ConversionGoalCampaignConfig instance, and its “update_mask” field populated as needed to send the updates to the API.
4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 4180 def self.conversion_goal_campaign_config(resource_or_path, &blk) require "google/ads/google_ads/v19/services/conversion_goal_campaign_config_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::ConversionGoalCampaignConfig resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::ConversionGoalCampaignConfig.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::Resources::ConversionGoalCampaignConfig === 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::V19::Services::ConversionGoalCampaignConfigOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::ConversionValueRule| ... } ⇒ Google::Ads::GoogleAds::V19::Services::ConversionValueRuleOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::ConversionValueRuleOperation
A convenience method for creating an ConversionValueRuleOperation instance with its “update” field prepopulated with an ConversionValueRule instance, and its “update_mask” field populated as needed to send the updates to the API.
4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 4219 def self.conversion_value_rule(resource_or_path, &blk) require "google/ads/google_ads/v19/services/conversion_value_rule_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::ConversionValueRule resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::ConversionValueRule.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::Resources::ConversionValueRule === 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::V19::Services::ConversionValueRuleOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::ConversionValueRuleSet| ... } ⇒ Google::Ads::GoogleAds::V19::Services::ConversionValueRuleSetOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::ConversionValueRuleSetOperation
A convenience method for creating an ConversionValueRuleSetOperation instance with its “update” field prepopulated with an ConversionValueRuleSet instance, and its “update_mask” field populated as needed to send the updates to the API.
4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 4258 def self.conversion_value_rule_set(resource_or_path, &blk) require "google/ads/google_ads/v19/services/conversion_value_rule_set_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::ConversionValueRuleSet resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::ConversionValueRuleSet.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::Resources::ConversionValueRuleSet === 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::V19::Services::ConversionValueRuleSetOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::CustomAudience| ... } ⇒ Google::Ads::GoogleAds::V19::Services::CustomAudienceOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::CustomAudienceOperation
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.
4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 4999 def self.custom_audience(resource_or_path, &blk) require "google/ads/google_ads/v19/services/custom_audience_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::CustomAudience resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::CustomAudience.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::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::V19::Services::CustomAudienceOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::CustomConversionGoal| ... } ⇒ Google::Ads::GoogleAds::V19::Services::CustomConversionGoalOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::CustomConversionGoalOperation
A convenience method for creating an CustomConversionGoalOperation instance with its “update” field prepopulated with an CustomConversionGoal instance, and its “update_mask” field populated as needed to send the updates to the API.
4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 4297 def self.custom_conversion_goal(resource_or_path, &blk) require "google/ads/google_ads/v19/services/custom_conversion_goal_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::CustomConversionGoal resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::CustomConversionGoal.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::Resources::CustomConversionGoal === 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::V19::Services::CustomConversionGoalOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::CustomInterest| ... } ⇒ Google::Ads::GoogleAds::V19::Services::CustomInterestOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::CustomInterestOperation
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.
5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 5038 def self.custom_interest(resource_or_path, &blk) require "google/ads/google_ads/v19/services/custom_interest_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::CustomInterest resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::CustomInterest.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::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::V19::Services::CustomInterestOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::Customer| ... } ⇒ Google::Ads::GoogleAds::V19::Services::CustomerOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::CustomerOperation
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.
4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 4414 def self.customer(resource_or_path, &blk) require "google/ads/google_ads/v19/services/customer_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::Customer resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::Customer.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::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::V19::Services::CustomerOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::CustomerAsset| ... } ⇒ Google::Ads::GoogleAds::V19::Services::CustomerAssetOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::CustomerAssetOperation
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.
4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 4336 def self.customer_asset(resource_or_path, &blk) require "google/ads/google_ads/v19/services/customer_asset_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::CustomerAsset resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::CustomerAsset.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::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::V19::Services::CustomerAssetOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::CustomerClientLink| ... } ⇒ Google::Ads::GoogleAds::V19::Services::CustomerClientLinkOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::CustomerClientLinkOperation
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.
5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 5077 def self.customer_client_link(resource_or_path, &blk) require "google/ads/google_ads/v19/services/customer_client_link_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::CustomerClientLink resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::CustomerClientLink.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::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::V19::Services::CustomerClientLinkOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::CustomerConversionGoal| ... } ⇒ Google::Ads::GoogleAds::V19::Services::CustomerConversionGoalOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::CustomerConversionGoalOperation
A convenience method for creating an CustomerConversionGoalOperation instance with its “update” field prepopulated with an CustomerConversionGoal instance, and its “update_mask” field populated as needed to send the updates to the API.
4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 4375 def self.customer_conversion_goal(resource_or_path, &blk) require "google/ads/google_ads/v19/services/customer_conversion_goal_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::CustomerConversionGoal resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::CustomerConversionGoal.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::Resources::CustomerConversionGoal === 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::V19::Services::CustomerConversionGoalOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::CustomerLifecycleGoal| ... } ⇒ Google::Ads::GoogleAds::V19::Services::CustomerLifecycleGoalOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::CustomerLifecycleGoalOperation
A convenience method for creating an CustomerLifecycleGoalOperation instance with its “update” field prepopulated with an CustomerLifecycleGoal instance, and its “update_mask” field populated as needed to send the updates to the API.
5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 5116 def self.customer_lifecycle_goal(resource_or_path, &blk) require "google/ads/google_ads/v19/services/customer_lifecycle_goal_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::CustomerLifecycleGoal resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::CustomerLifecycleGoal.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::Resources::CustomerLifecycleGoal === 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::V19::Services::CustomerLifecycleGoalOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::CustomerManagerLink| ... } ⇒ Google::Ads::GoogleAds::V19::Services::CustomerManagerLinkOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::CustomerManagerLinkOperation
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.
5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 5155 def self.customer_manager_link(resource_or_path, &blk) require "google/ads/google_ads/v19/services/customer_manager_link_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::CustomerManagerLink resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::CustomerManagerLink.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::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::V19::Services::CustomerManagerLinkOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::CustomerSkAdNetworkConversionValueSchema| ... } ⇒ Google::Ads::GoogleAds::V19::Services::CustomerSkAdNetworkConversionValueSchemaOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::CustomerSkAdNetworkConversionValueSchemaOperation
A convenience method for creating an CustomerSkAdNetworkConversionValueSchemaOperation instance with its “update” field prepopulated with an CustomerSkAdNetworkConversionValueSchema instance, and its “update_mask” field populated as needed to send the updates to the API.
5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 5194 def self.customer_sk_ad_network_conversion_value_schema(resource_or_path, &blk) require "google/ads/google_ads/v19/services/customer_sk_ad_network_conversion_value_schema_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::CustomerSkAdNetworkConversionValueSchema resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::CustomerSkAdNetworkConversionValueSchema.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::Resources::CustomerSkAdNetworkConversionValueSchema === 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::V19::Services::CustomerSkAdNetworkConversionValueSchemaOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::CustomerUserAccess| ... } ⇒ Google::Ads::GoogleAds::V19::Services::CustomerUserAccessOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::CustomerUserAccessOperation
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.
5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 5233 def self.customer_user_access(resource_or_path, &blk) require "google/ads/google_ads/v19/services/customer_user_access_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::CustomerUserAccess resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::CustomerUserAccess.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::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::V19::Services::CustomerUserAccessOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::Experiment| ... } ⇒ Google::Ads::GoogleAds::V19::Services::ExperimentOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::ExperimentOperation
A convenience method for creating an ExperimentOperation instance with its “update” field prepopulated with an Experiment instance, and its “update_mask” field populated as needed to send the updates to the API.
4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 4492 def self.experiment(resource_or_path, &blk) require "google/ads/google_ads/v19/services/experiment_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::Experiment resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::Experiment.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::Resources::Experiment === 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::V19::Services::ExperimentOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::ExperimentArm| ... } ⇒ Google::Ads::GoogleAds::V19::Services::ExperimentArmOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::ExperimentArmOperation
A convenience method for creating an ExperimentArmOperation instance with its “update” field prepopulated with an ExperimentArm instance, and its “update_mask” field populated as needed to send the updates to the API.
4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 4453 def self.experiment_arm(resource_or_path, &blk) require "google/ads/google_ads/v19/services/experiment_arm_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::ExperimentArm resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::ExperimentArm.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::Resources::ExperimentArm === 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::V19::Services::ExperimentArmOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::KeywordPlan| ... } ⇒ Google::Ads::GoogleAds::V19::Services::KeywordPlanOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::KeywordPlanOperation
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.
4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 4687 def self.keyword_plan(resource_or_path, &blk) require "google/ads/google_ads/v19/services/keyword_plan_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::KeywordPlan resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::KeywordPlan.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::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::V19::Services::KeywordPlanOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::KeywordPlanAdGroup| ... } ⇒ Google::Ads::GoogleAds::V19::Services::KeywordPlanAdGroupOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::KeywordPlanAdGroupOperation
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.
4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 4570 def self.keyword_plan_ad_group(resource_or_path, &blk) require "google/ads/google_ads/v19/services/keyword_plan_ad_group_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::KeywordPlanAdGroup resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::KeywordPlanAdGroup.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::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::V19::Services::KeywordPlanAdGroupOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::KeywordPlanAdGroupKeyword| ... } ⇒ Google::Ads::GoogleAds::V19::Services::KeywordPlanAdGroupKeywordOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::KeywordPlanAdGroupKeywordOperation
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.
4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 4531 def self.keyword_plan_ad_group_keyword(resource_or_path, &blk) require "google/ads/google_ads/v19/services/keyword_plan_ad_group_keyword_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::KeywordPlanAdGroupKeyword resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::KeywordPlanAdGroupKeyword.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::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::V19::Services::KeywordPlanAdGroupKeywordOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::KeywordPlanCampaign| ... } ⇒ Google::Ads::GoogleAds::V19::Services::KeywordPlanCampaignOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::KeywordPlanCampaignOperation
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.
4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 4648 def self.keyword_plan_campaign(resource_or_path, &blk) require "google/ads/google_ads/v19/services/keyword_plan_campaign_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::KeywordPlanCampaign resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::KeywordPlanCampaign.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::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::V19::Services::KeywordPlanCampaignOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::KeywordPlanCampaignKeyword| ... } ⇒ Google::Ads::GoogleAds::V19::Services::KeywordPlanCampaignKeywordOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::KeywordPlanCampaignKeywordOperation
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.
4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 4609 def self.keyword_plan_campaign_keyword(resource_or_path, &blk) require "google/ads/google_ads/v19/services/keyword_plan_campaign_keyword_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::KeywordPlanCampaignKeyword resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::KeywordPlanCampaignKeyword.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::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::V19::Services::KeywordPlanCampaignKeywordOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::Label| ... } ⇒ Google::Ads::GoogleAds::V19::Services::LabelOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::LabelOperation
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.
4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 4726 def self.label(resource_or_path, &blk) require "google/ads/google_ads/v19/services/label_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::Label resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::Label.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::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::V19::Services::LabelOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::RecommendationSubscription| ... } ⇒ Google::Ads::GoogleAds::V19::Services::RecommendationSubscriptionOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::RecommendationSubscriptionOperation
A convenience method for creating an RecommendationSubscriptionOperation instance with its “update” field prepopulated with an RecommendationSubscription instance, and its “update_mask” field populated as needed to send the updates to the API.
4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 4765 def self.recommendation_subscription(resource_or_path, &blk) require "google/ads/google_ads/v19/services/recommendation_subscription_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::RecommendationSubscription resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::RecommendationSubscription.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::Resources::RecommendationSubscription === 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::V19::Services::RecommendationSubscriptionOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::RemarketingAction| ... } ⇒ Google::Ads::GoogleAds::V19::Services::RemarketingActionOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::RemarketingActionOperation
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.
4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 4804 def self.remarketing_action(resource_or_path, &blk) require "google/ads/google_ads/v19/services/remarketing_action_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::RemarketingAction resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::RemarketingAction.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::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::V19::Services::RemarketingActionOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::SharedSet| ... } ⇒ Google::Ads::GoogleAds::V19::Services::SharedSetOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::SharedSetOperation
A convenience method for creating an SharedSetOperation instance with its “update” field prepopulated with an SharedSet instance, and its “update_mask” field populated as needed to send the updates to the API.
4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 4843 def self.shared_set(resource_or_path, &blk) require "google/ads/google_ads/v19/services/shared_set_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::SharedSet resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::SharedSet.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::Resources::SharedSet === res raise ArgumentError.new( "Called #{__method__} with instance of wrong type:" \ " #{res.class} want #{operation.update_class}" \ " or String representing resource name" ) end end op = Google::Ads::GoogleAds::V19::Services::SharedSetOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::SmartCampaignSetting| ... } ⇒ Google::Ads::GoogleAds::V19::Services::SmartCampaignSettingOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::SmartCampaignSettingOperation
A convenience method for creating an SmartCampaignSettingOperation instance with its “update” field prepopulated with an SmartCampaignSetting instance, and its “update_mask” field populated as needed to send the updates to the API.
4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 4882 def self.smart_campaign_setting(resource_or_path, &blk) require "google/ads/google_ads/v19/services/smart_campaign_setting_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::SmartCampaignSetting resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::SmartCampaignSetting.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::Resources::SmartCampaignSetting === 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::V19::Services::SmartCampaignSettingOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |
. {|Google::Ads::GoogleAds::V19::Resources::UserList| ... } ⇒ Google::Ads::GoogleAds::V19::Services::UserListOperation . { ... } ⇒ Google::Ads::GoogleAds::V19::Services::UserListOperation
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.
4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 |
# File 'lib/google/ads/google_ads/factories/v19/operations.rb', line 4921 def self.user_list(resource_or_path, &blk) require "google/ads/google_ads/v19/services/user_list_service_pb" res = case resource_or_path when Google::Ads::GoogleAds::V19::Resources::UserList resource_or_path # got a resource path when String obj = Google::Ads::GoogleAds::V19::Resources::UserList.new obj.resource_name = resource_or_path obj else unless Google::Ads::GoogleAds::V19::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::V19::Services::UserListOperation.new op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &blk) op["update"] = res op end |