lib/google/ads/google_ads/factories/v6/operations.rb in google-ads-googleads-8.0.0 vs lib/google/ads/google_ads/factories/v6/operations.rb in google-ads-googleads-8.1.0
- old
+ new
@@ -7,523 +7,913 @@
# Create a new FeedAttributeOperation
#
# @return [Google::Ads::GoogleAds::V6::Resources::FeedAttributeOperation] the operation
def self.feed_attribute
require "google/ads/google_ads/v6/resources/feed_pb"
- Google::Ads::GoogleAds::V6::Resources::FeedAttributeOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Resources::FeedAttributeOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Resources::FeedAttributeOperation.new
+ end
end
# Create a new TargetRestrictionOperation
#
# @return [Google::Ads::GoogleAds::V6::Common::TargetRestrictionOperation] the operation
def self.target_restriction
require "google/ads/google_ads/v6/common/targeting_setting_pb"
- Google::Ads::GoogleAds::V6::Common::TargetRestrictionOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Common::TargetRestrictionOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Common::TargetRestrictionOperation.new
+ end
end
# Create a new CustomerClientLinkOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::CustomerClientLinkOperation] the operation
def self.customer_client_link
require "google/ads/google_ads/v6/services/customer_client_link_service_pb"
- Google::Ads::GoogleAds::V6::Services::CustomerClientLinkOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::CustomerClientLinkOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::CustomerClientLinkOperation.new
+ end
end
# Create a new CustomInterestOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::CustomInterestOperation] the operation
def self.custom_interest
require "google/ads/google_ads/v6/services/custom_interest_service_pb"
- Google::Ads::GoogleAds::V6::Services::CustomInterestOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::CustomInterestOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::CustomInterestOperation.new
+ end
end
# Create a new CustomerNegativeCriterionOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::CustomerNegativeCriterionOperation] the operation
def self.customer_negative_criterion
require "google/ads/google_ads/v6/services/customer_negative_criterion_service_pb"
- Google::Ads::GoogleAds::V6::Services::CustomerNegativeCriterionOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::CustomerNegativeCriterionOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::CustomerNegativeCriterionOperation.new
+ end
end
# Create a new SharedCriterionOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::SharedCriterionOperation] the operation
def self.shared_criterion
require "google/ads/google_ads/v6/services/shared_criterion_service_pb"
- Google::Ads::GoogleAds::V6::Services::SharedCriterionOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::SharedCriterionOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::SharedCriterionOperation.new
+ end
end
# Create a new KeywordPlanAdGroupKeywordOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupKeywordOperation] the operation
def self.keyword_plan_ad_group_keyword
require "google/ads/google_ads/v6/services/keyword_plan_ad_group_keyword_service_pb"
- Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupKeywordOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupKeywordOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupKeywordOperation.new
+ end
end
# Create a new FeedMappingOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::FeedMappingOperation] the operation
def self.feed_mapping
require "google/ads/google_ads/v6/services/feed_mapping_service_pb"
- Google::Ads::GoogleAds::V6::Services::FeedMappingOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::FeedMappingOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::FeedMappingOperation.new
+ end
end
# Create a new FeedItemSetLinkOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::FeedItemSetLinkOperation] the operation
def self.feed_item_set_link
require "google/ads/google_ads/v6/services/feed_item_set_link_service_pb"
- Google::Ads::GoogleAds::V6::Services::FeedItemSetLinkOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::FeedItemSetLinkOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::FeedItemSetLinkOperation.new
+ end
end
# Create a new AdGroupOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::AdGroupOperation] the operation
def self.ad_group
require "google/ads/google_ads/v6/services/ad_group_service_pb"
- Google::Ads::GoogleAds::V6::Services::AdGroupOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::AdGroupOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::AdGroupOperation.new
+ end
end
# Create a new FeedItemSetOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::FeedItemSetOperation] the operation
def self.feed_item_set
require "google/ads/google_ads/v6/services/feed_item_set_service_pb"
- Google::Ads::GoogleAds::V6::Services::FeedItemSetOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::FeedItemSetOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::FeedItemSetOperation.new
+ end
end
# Create a new CampaignBidModifierOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::CampaignBidModifierOperation] the operation
def self.campaign_bid_modifier
require "google/ads/google_ads/v6/services/campaign_bid_modifier_service_pb"
- Google::Ads::GoogleAds::V6::Services::CampaignBidModifierOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::CampaignBidModifierOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::CampaignBidModifierOperation.new
+ end
end
# Create a new CustomerManagerLinkOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::CustomerManagerLinkOperation] the operation
def self.customer_manager_link
require "google/ads/google_ads/v6/services/customer_manager_link_service_pb"
- Google::Ads::GoogleAds::V6::Services::CustomerManagerLinkOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::CustomerManagerLinkOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::CustomerManagerLinkOperation.new
+ end
end
# Create a new CampaignDraftOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::CampaignDraftOperation] the operation
def self.campaign_draft
require "google/ads/google_ads/v6/services/campaign_draft_service_pb"
- Google::Ads::GoogleAds::V6::Services::CampaignDraftOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::CampaignDraftOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::CampaignDraftOperation.new
+ end
end
# Create a new UserListOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::UserListOperation] the operation
def self.user_list
require "google/ads/google_ads/v6/services/user_list_service_pb"
- Google::Ads::GoogleAds::V6::Services::UserListOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::UserListOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::UserListOperation.new
+ end
end
# Create a new CustomerOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::CustomerOperation] the operation
def self.customer
require "google/ads/google_ads/v6/services/customer_service_pb"
- Google::Ads::GoogleAds::V6::Services::CustomerOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::CustomerOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::CustomerOperation.new
+ end
end
# Create a new SharedSetOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::SharedSetOperation] the operation
def self.shared_set
require "google/ads/google_ads/v6/services/shared_set_service_pb"
- Google::Ads::GoogleAds::V6::Services::SharedSetOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::SharedSetOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::SharedSetOperation.new
+ end
end
# Create a new AdGroupCriterionLabelOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::AdGroupCriterionLabelOperation] the operation
def self.ad_group_criterion_label
require "google/ads/google_ads/v6/services/ad_group_criterion_label_service_pb"
- Google::Ads::GoogleAds::V6::Services::AdGroupCriterionLabelOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::AdGroupCriterionLabelOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::AdGroupCriterionLabelOperation.new
+ end
end
# Create a new LabelOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::LabelOperation] the operation
def self.label
require "google/ads/google_ads/v6/services/label_service_pb"
- Google::Ads::GoogleAds::V6::Services::LabelOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::LabelOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::LabelOperation.new
+ end
end
# Create a new AdGroupAdLabelOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::AdGroupAdLabelOperation] the operation
def self.ad_group_ad_label
require "google/ads/google_ads/v6/services/ad_group_ad_label_service_pb"
- Google::Ads::GoogleAds::V6::Services::AdGroupAdLabelOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::AdGroupAdLabelOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::AdGroupAdLabelOperation.new
+ end
end
# Create a new AdGroupAdOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::AdGroupAdOperation] the operation
def self.ad_group_ad
require "google/ads/google_ads/v6/services/ad_group_ad_service_pb"
- Google::Ads::GoogleAds::V6::Services::AdGroupAdOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::AdGroupAdOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::AdGroupAdOperation.new
+ end
end
# Create a new AdGroupBidModifierOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::AdGroupBidModifierOperation] the operation
def self.ad_group_bid_modifier
require "google/ads/google_ads/v6/services/ad_group_bid_modifier_service_pb"
- Google::Ads::GoogleAds::V6::Services::AdGroupBidModifierOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::AdGroupBidModifierOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::AdGroupBidModifierOperation.new
+ end
end
# Create a new AdGroupCriterionOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::AdGroupCriterionOperation] the operation
def self.ad_group_criterion
require "google/ads/google_ads/v6/services/ad_group_criterion_service_pb"
- Google::Ads::GoogleAds::V6::Services::AdGroupCriterionOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::AdGroupCriterionOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::AdGroupCriterionOperation.new
+ end
end
# Create a new AdGroupExtensionSettingOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::AdGroupExtensionSettingOperation] the operation
def self.ad_group_extension_setting
require "google/ads/google_ads/v6/services/ad_group_extension_setting_service_pb"
- Google::Ads::GoogleAds::V6::Services::AdGroupExtensionSettingOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::AdGroupExtensionSettingOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::AdGroupExtensionSettingOperation.new
+ end
end
# Create a new AdGroupFeedOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::AdGroupFeedOperation] the operation
def self.ad_group_feed
require "google/ads/google_ads/v6/services/ad_group_feed_service_pb"
- Google::Ads::GoogleAds::V6::Services::AdGroupFeedOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::AdGroupFeedOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::AdGroupFeedOperation.new
+ end
end
# Create a new AdGroupLabelOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::AdGroupLabelOperation] the operation
def self.ad_group_label
require "google/ads/google_ads/v6/services/ad_group_label_service_pb"
- Google::Ads::GoogleAds::V6::Services::AdGroupLabelOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::AdGroupLabelOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::AdGroupLabelOperation.new
+ end
end
# Create a new AdParameterOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::AdParameterOperation] the operation
def self.ad_parameter
require "google/ads/google_ads/v6/services/ad_parameter_service_pb"
- Google::Ads::GoogleAds::V6::Services::AdParameterOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::AdParameterOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::AdParameterOperation.new
+ end
end
# Create a new AdOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::AdOperation] the operation
def self.ad
require "google/ads/google_ads/v6/services/ad_service_pb"
- Google::Ads::GoogleAds::V6::Services::AdOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::AdOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::AdOperation.new
+ end
end
# Create a new AssetOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::AssetOperation] the operation
def self.asset
require "google/ads/google_ads/v6/services/asset_service_pb"
- Google::Ads::GoogleAds::V6::Services::AssetOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::AssetOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::AssetOperation.new
+ end
end
# Create a new BiddingStrategyOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::BiddingStrategyOperation] the operation
def self.bidding_strategy
require "google/ads/google_ads/v6/services/bidding_strategy_service_pb"
- Google::Ads::GoogleAds::V6::Services::BiddingStrategyOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::BiddingStrategyOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::BiddingStrategyOperation.new
+ end
end
# Create a new CampaignAssetOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::CampaignAssetOperation] the operation
def self.campaign_asset
require "google/ads/google_ads/v6/services/campaign_asset_service_pb"
- Google::Ads::GoogleAds::V6::Services::CampaignAssetOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::CampaignAssetOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::CampaignAssetOperation.new
+ end
end
# Create a new CampaignBudgetOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::CampaignBudgetOperation] the operation
def self.campaign_budget
require "google/ads/google_ads/v6/services/campaign_budget_service_pb"
- Google::Ads::GoogleAds::V6::Services::CampaignBudgetOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::CampaignBudgetOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::CampaignBudgetOperation.new
+ end
end
# Create a new CampaignCriterionOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::CampaignCriterionOperation] the operation
def self.campaign_criterion
require "google/ads/google_ads/v6/services/campaign_criterion_service_pb"
- Google::Ads::GoogleAds::V6::Services::CampaignCriterionOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::CampaignCriterionOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::CampaignCriterionOperation.new
+ end
end
# Create a new CampaignExperimentOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::CampaignExperimentOperation] the operation
def self.campaign_experiment
require "google/ads/google_ads/v6/services/campaign_experiment_service_pb"
- Google::Ads::GoogleAds::V6::Services::CampaignExperimentOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::CampaignExperimentOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::CampaignExperimentOperation.new
+ end
end
# Create a new CampaignExtensionSettingOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::CampaignExtensionSettingOperation] the operation
def self.campaign_extension_setting
require "google/ads/google_ads/v6/services/campaign_extension_setting_service_pb"
- Google::Ads::GoogleAds::V6::Services::CampaignExtensionSettingOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::CampaignExtensionSettingOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::CampaignExtensionSettingOperation.new
+ end
end
# Create a new CampaignFeedOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::CampaignFeedOperation] the operation
def self.campaign_feed
require "google/ads/google_ads/v6/services/campaign_feed_service_pb"
- Google::Ads::GoogleAds::V6::Services::CampaignFeedOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::CampaignFeedOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::CampaignFeedOperation.new
+ end
end
# Create a new CampaignLabelOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::CampaignLabelOperation] the operation
def self.campaign_label
require "google/ads/google_ads/v6/services/campaign_label_service_pb"
- Google::Ads::GoogleAds::V6::Services::CampaignLabelOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::CampaignLabelOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::CampaignLabelOperation.new
+ end
end
# Create a new CampaignOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::CampaignOperation] the operation
def self.campaign
require "google/ads/google_ads/v6/services/campaign_service_pb"
- Google::Ads::GoogleAds::V6::Services::CampaignOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::CampaignOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::CampaignOperation.new
+ end
end
# Create a new CampaignSharedSetOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::CampaignSharedSetOperation] the operation
def self.campaign_shared_set
require "google/ads/google_ads/v6/services/campaign_shared_set_service_pb"
- Google::Ads::GoogleAds::V6::Services::CampaignSharedSetOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::CampaignSharedSetOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::CampaignSharedSetOperation.new
+ end
end
# Create a new ConversionActionOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::ConversionActionOperation] the operation
def self.conversion_action
require "google/ads/google_ads/v6/services/conversion_action_service_pb"
- Google::Ads::GoogleAds::V6::Services::ConversionActionOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::ConversionActionOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::ConversionActionOperation.new
+ end
end
# Create a new CustomerExtensionSettingOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::CustomerExtensionSettingOperation] the operation
def self.customer_extension_setting
require "google/ads/google_ads/v6/services/customer_extension_setting_service_pb"
- Google::Ads::GoogleAds::V6::Services::CustomerExtensionSettingOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::CustomerExtensionSettingOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::CustomerExtensionSettingOperation.new
+ end
end
# Create a new CustomerFeedOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::CustomerFeedOperation] the operation
def self.customer_feed
require "google/ads/google_ads/v6/services/customer_feed_service_pb"
- Google::Ads::GoogleAds::V6::Services::CustomerFeedOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::CustomerFeedOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::CustomerFeedOperation.new
+ end
end
# Create a new CustomerLabelOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::CustomerLabelOperation] the operation
def self.customer_label
require "google/ads/google_ads/v6/services/customer_label_service_pb"
- Google::Ads::GoogleAds::V6::Services::CustomerLabelOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::CustomerLabelOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::CustomerLabelOperation.new
+ end
end
# Create a new ExtensionFeedItemOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::ExtensionFeedItemOperation] the operation
def self.extension_feed_item
require "google/ads/google_ads/v6/services/extension_feed_item_service_pb"
- Google::Ads::GoogleAds::V6::Services::ExtensionFeedItemOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::ExtensionFeedItemOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::ExtensionFeedItemOperation.new
+ end
end
# Create a new FeedItemOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::FeedItemOperation] the operation
def self.feed_item
require "google/ads/google_ads/v6/services/feed_item_service_pb"
- Google::Ads::GoogleAds::V6::Services::FeedItemOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::FeedItemOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::FeedItemOperation.new
+ end
end
# Create a new FeedItemTargetOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::FeedItemTargetOperation] the operation
def self.feed_item_target
require "google/ads/google_ads/v6/services/feed_item_target_service_pb"
- Google::Ads::GoogleAds::V6::Services::FeedItemTargetOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::FeedItemTargetOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::FeedItemTargetOperation.new
+ end
end
# Create a new FeedOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::FeedOperation] the operation
def self.feed
require "google/ads/google_ads/v6/services/feed_service_pb"
- Google::Ads::GoogleAds::V6::Services::FeedOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::FeedOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::FeedOperation.new
+ end
end
# Create a new KeywordPlanAdGroupOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupOperation] the operation
def self.keyword_plan_ad_group
require "google/ads/google_ads/v6/services/keyword_plan_ad_group_service_pb"
- Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupOperation.new
+ end
end
# Create a new KeywordPlanCampaignKeywordOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::KeywordPlanCampaignKeywordOperation] the operation
def self.keyword_plan_campaign_keyword
require "google/ads/google_ads/v6/services/keyword_plan_campaign_keyword_service_pb"
- Google::Ads::GoogleAds::V6::Services::KeywordPlanCampaignKeywordOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::KeywordPlanCampaignKeywordOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::KeywordPlanCampaignKeywordOperation.new
+ end
end
# Create a new KeywordPlanCampaignOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::KeywordPlanCampaignOperation] the operation
def self.keyword_plan_campaign
require "google/ads/google_ads/v6/services/keyword_plan_campaign_service_pb"
- Google::Ads::GoogleAds::V6::Services::KeywordPlanCampaignOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::KeywordPlanCampaignOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::KeywordPlanCampaignOperation.new
+ end
end
# Create a new KeywordPlanOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::KeywordPlanOperation] the operation
def self.keyword_plan
require "google/ads/google_ads/v6/services/keyword_plan_service_pb"
- Google::Ads::GoogleAds::V6::Services::KeywordPlanOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::KeywordPlanOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::KeywordPlanOperation.new
+ end
end
# Create a new MediaFileOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::MediaFileOperation] the operation
def self.media_file
require "google/ads/google_ads/v6/services/media_file_service_pb"
- Google::Ads::GoogleAds::V6::Services::MediaFileOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::MediaFileOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::MediaFileOperation.new
+ end
end
# Create a new RemarketingActionOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::RemarketingActionOperation] the operation
def self.remarketing_action
require "google/ads/google_ads/v6/services/remarketing_action_service_pb"
- Google::Ads::GoogleAds::V6::Services::RemarketingActionOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::RemarketingActionOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::RemarketingActionOperation.new
+ end
end
# Create a new MutateOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::MutateOperation] the operation
def self.mutate
require "google/ads/google_ads/v6/services/google_ads_service_pb"
- Google::Ads::GoogleAds::V6::Services::MutateOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::MutateOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::MutateOperation.new
+ end
end
# Create a new BatchJobOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::BatchJobOperation] the operation
def self.batch_job
require "google/ads/google_ads/v6/services/batch_job_service_pb"
- Google::Ads::GoogleAds::V6::Services::BatchJobOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::BatchJobOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::BatchJobOperation.new
+ end
end
# Create a new OfflineUserDataJobOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::OfflineUserDataJobOperation] the operation
def self.offline_user_data_job
require "google/ads/google_ads/v6/services/offline_user_data_job_service_pb"
- Google::Ads::GoogleAds::V6::Services::OfflineUserDataJobOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::OfflineUserDataJobOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::OfflineUserDataJobOperation.new
+ end
end
# Create a new UserDataOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::UserDataOperation] the operation
def self.user_data
require "google/ads/google_ads/v6/services/user_data_service_pb"
- Google::Ads::GoogleAds::V6::Services::UserDataOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::UserDataOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::UserDataOperation.new
+ end
end
# Create a new AccountBudgetProposalOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::AccountBudgetProposalOperation] the operation
def self.account_budget_proposal
require "google/ads/google_ads/v6/services/account_budget_proposal_service_pb"
- Google::Ads::GoogleAds::V6::Services::AccountBudgetProposalOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::AccountBudgetProposalOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::AccountBudgetProposalOperation.new
+ end
end
# Create a new ApplyRecommendationOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::ApplyRecommendationOperation] the operation
def self.apply_recommendation
require "google/ads/google_ads/v6/services/recommendation_service_pb"
- Google::Ads::GoogleAds::V6::Services::ApplyRecommendationOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::ApplyRecommendationOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::ApplyRecommendationOperation.new
+ end
end
# Create a new DismissRecommendationOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::DismissRecommendationRequest::DismissRecommendationOperation] the operation
def self.dismiss_recommendation
require "google/ads/google_ads/v6/services/recommendation_service_pb"
- Google::Ads::GoogleAds::V6::Services::DismissRecommendationRequest::DismissRecommendationOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::DismissRecommendationRequest::DismissRecommendationOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::DismissRecommendationRequest::DismissRecommendationOperation.new
+ end
end
# Create a new AccountLinkOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::AccountLinkOperation] the operation
def self.account_link
require "google/ads/google_ads/v6/services/account_link_service_pb"
- Google::Ads::GoogleAds::V6::Services::AccountLinkOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::AccountLinkOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::AccountLinkOperation.new
+ end
end
# Create a new CustomAudienceOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::CustomAudienceOperation] the operation
def self.custom_audience
require "google/ads/google_ads/v6/services/custom_audience_service_pb"
- Google::Ads::GoogleAds::V6::Services::CustomAudienceOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::CustomAudienceOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::CustomAudienceOperation.new
+ end
end
# Create a new CustomerUserAccessOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::CustomerUserAccessOperation] the operation
def self.customer_user_access
require "google/ads/google_ads/v6/services/customer_user_access_service_pb"
- Google::Ads::GoogleAds::V6::Services::CustomerUserAccessOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::CustomerUserAccessOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::CustomerUserAccessOperation.new
+ end
end
# Create a new MerchantCenterLinkOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::MerchantCenterLinkOperation] the operation
def self.merchant_center_link
require "google/ads/google_ads/v6/services/merchant_center_link_service_pb"
- Google::Ads::GoogleAds::V6::Services::MerchantCenterLinkOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::MerchantCenterLinkOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::MerchantCenterLinkOperation.new
+ end
end
# Create a new BillingSetupOperation
#
# @return [Google::Ads::GoogleAds::V6::Services::BillingSetupOperation] the operation
def self.billing_setup
require "google/ads/google_ads/v6/services/billing_setup_service_pb"
- Google::Ads::GoogleAds::V6::Services::BillingSetupOperation.new
+ if block_given?
+ op = Google::Ads::GoogleAds::V6::Services::BillingSetupOperation.new
+ yield op
+ op
+ else
+ Google::Ads::GoogleAds::V6::Services::BillingSetupOperation.new
+ end
end
# Get a reference module containing convenience methods for creating
# resources
#
@@ -560,17 +950,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::CustomerClientLink]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::CustomerClientLinkOperation] instance that will create the resource
- def self.customer_client_link(res=nil, &blk)
+ def self.customer_client_link(res = nil, &blk)
require "google/ads/google_ads/v6/services/customer_client_link_service_pb"
op = Google::Ads::GoogleAds::V6::Services::CustomerClientLinkOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.customer_client_link(&blk)
+ Factories::V6::Resources.customer_client_link(&blk)
+ else
+ Factories::V6::Resources.customer_client_link
end
op
end
@@ -585,17 +977,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::CustomInterest]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::CustomInterestOperation] instance that will create the resource
- def self.custom_interest(res=nil, &blk)
+ def self.custom_interest(res = nil, &blk)
require "google/ads/google_ads/v6/services/custom_interest_service_pb"
op = Google::Ads::GoogleAds::V6::Services::CustomInterestOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.custom_interest(&blk)
+ Factories::V6::Resources.custom_interest(&blk)
+ else
+ Factories::V6::Resources.custom_interest
end
op
end
@@ -610,17 +1004,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::CustomerNegativeCriterion]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::CustomerNegativeCriterionOperation] instance that will create the resource
- def self.customer_negative_criterion(res=nil, &blk)
+ def self.customer_negative_criterion(res = nil, &blk)
require "google/ads/google_ads/v6/services/customer_negative_criterion_service_pb"
op = Google::Ads::GoogleAds::V6::Services::CustomerNegativeCriterionOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.customer_negative_criterion(&blk)
+ Factories::V6::Resources.customer_negative_criterion(&blk)
+ else
+ Factories::V6::Resources.customer_negative_criterion
end
op
end
@@ -635,17 +1031,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::SharedCriterion]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::SharedCriterionOperation] instance that will create the resource
- def self.shared_criterion(res=nil, &blk)
+ def self.shared_criterion(res = nil, &blk)
require "google/ads/google_ads/v6/services/shared_criterion_service_pb"
op = Google::Ads::GoogleAds::V6::Services::SharedCriterionOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.shared_criterion(&blk)
+ Factories::V6::Resources.shared_criterion(&blk)
+ else
+ Factories::V6::Resources.shared_criterion
end
op
end
@@ -660,17 +1058,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::KeywordPlanAdGroupKeyword]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupKeywordOperation] instance that will create the resource
- def self.keyword_plan_ad_group_keyword(res=nil, &blk)
+ def self.keyword_plan_ad_group_keyword(res = nil, &blk)
require "google/ads/google_ads/v6/services/keyword_plan_ad_group_keyword_service_pb"
op = Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupKeywordOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.keyword_plan_ad_group_keyword(&blk)
+ Factories::V6::Resources.keyword_plan_ad_group_keyword(&blk)
+ else
+ Factories::V6::Resources.keyword_plan_ad_group_keyword
end
op
end
@@ -685,17 +1085,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::FeedMapping]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::FeedMappingOperation] instance that will create the resource
- def self.feed_mapping(res=nil, &blk)
+ def self.feed_mapping(res = nil, &blk)
require "google/ads/google_ads/v6/services/feed_mapping_service_pb"
op = Google::Ads::GoogleAds::V6::Services::FeedMappingOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.feed_mapping(&blk)
+ Factories::V6::Resources.feed_mapping(&blk)
+ else
+ Factories::V6::Resources.feed_mapping
end
op
end
@@ -710,17 +1112,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::FeedItemSetLink]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::FeedItemSetLinkOperation] instance that will create the resource
- def self.feed_item_set_link(res=nil, &blk)
+ def self.feed_item_set_link(res = nil, &blk)
require "google/ads/google_ads/v6/services/feed_item_set_link_service_pb"
op = Google::Ads::GoogleAds::V6::Services::FeedItemSetLinkOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.feed_item_set_link(&blk)
+ Factories::V6::Resources.feed_item_set_link(&blk)
+ else
+ Factories::V6::Resources.feed_item_set_link
end
op
end
@@ -735,17 +1139,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::AdGroup]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::AdGroupOperation] instance that will create the resource
- def self.ad_group(res=nil, &blk)
+ def self.ad_group(res = nil, &blk)
require "google/ads/google_ads/v6/services/ad_group_service_pb"
op = Google::Ads::GoogleAds::V6::Services::AdGroupOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.ad_group(&blk)
+ Factories::V6::Resources.ad_group(&blk)
+ else
+ Factories::V6::Resources.ad_group
end
op
end
@@ -760,17 +1166,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::FeedItemSet]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::FeedItemSetOperation] instance that will create the resource
- def self.feed_item_set(res=nil, &blk)
+ def self.feed_item_set(res = nil, &blk)
require "google/ads/google_ads/v6/services/feed_item_set_service_pb"
op = Google::Ads::GoogleAds::V6::Services::FeedItemSetOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.feed_item_set(&blk)
+ Factories::V6::Resources.feed_item_set(&blk)
+ else
+ Factories::V6::Resources.feed_item_set
end
op
end
@@ -785,17 +1193,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::CampaignBidModifier]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::CampaignBidModifierOperation] instance that will create the resource
- def self.campaign_bid_modifier(res=nil, &blk)
+ def self.campaign_bid_modifier(res = nil, &blk)
require "google/ads/google_ads/v6/services/campaign_bid_modifier_service_pb"
op = Google::Ads::GoogleAds::V6::Services::CampaignBidModifierOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.campaign_bid_modifier(&blk)
+ Factories::V6::Resources.campaign_bid_modifier(&blk)
+ else
+ Factories::V6::Resources.campaign_bid_modifier
end
op
end
@@ -810,17 +1220,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::CampaignDraft]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::CampaignDraftOperation] instance that will create the resource
- def self.campaign_draft(res=nil, &blk)
+ def self.campaign_draft(res = nil, &blk)
require "google/ads/google_ads/v6/services/campaign_draft_service_pb"
op = Google::Ads::GoogleAds::V6::Services::CampaignDraftOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.campaign_draft(&blk)
+ Factories::V6::Resources.campaign_draft(&blk)
+ else
+ Factories::V6::Resources.campaign_draft
end
op
end
@@ -835,17 +1247,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::UserList]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::UserListOperation] instance that will create the resource
- def self.user_list(res=nil, &blk)
+ def self.user_list(res = nil, &blk)
require "google/ads/google_ads/v6/services/user_list_service_pb"
op = Google::Ads::GoogleAds::V6::Services::UserListOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.user_list(&blk)
+ Factories::V6::Resources.user_list(&blk)
+ else
+ Factories::V6::Resources.user_list
end
op
end
@@ -860,17 +1274,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::SharedSet]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::SharedSetOperation] instance that will create the resource
- def self.shared_set(res=nil, &blk)
+ def self.shared_set(res = nil, &blk)
require "google/ads/google_ads/v6/services/shared_set_service_pb"
op = Google::Ads::GoogleAds::V6::Services::SharedSetOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.shared_set(&blk)
+ Factories::V6::Resources.shared_set(&blk)
+ else
+ Factories::V6::Resources.shared_set
end
op
end
@@ -885,17 +1301,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::AdGroupCriterionLabel]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::AdGroupCriterionLabelOperation] instance that will create the resource
- def self.ad_group_criterion_label(res=nil, &blk)
+ def self.ad_group_criterion_label(res = nil, &blk)
require "google/ads/google_ads/v6/services/ad_group_criterion_label_service_pb"
op = Google::Ads::GoogleAds::V6::Services::AdGroupCriterionLabelOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.ad_group_criterion_label(&blk)
+ Factories::V6::Resources.ad_group_criterion_label(&blk)
+ else
+ Factories::V6::Resources.ad_group_criterion_label
end
op
end
@@ -910,17 +1328,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::Label]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::LabelOperation] instance that will create the resource
- def self.label(res=nil, &blk)
+ def self.label(res = nil, &blk)
require "google/ads/google_ads/v6/services/label_service_pb"
op = Google::Ads::GoogleAds::V6::Services::LabelOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.label(&blk)
+ Factories::V6::Resources.label(&blk)
+ else
+ Factories::V6::Resources.label
end
op
end
@@ -935,17 +1355,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::AdGroupAdLabel]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::AdGroupAdLabelOperation] instance that will create the resource
- def self.ad_group_ad_label(res=nil, &blk)
+ def self.ad_group_ad_label(res = nil, &blk)
require "google/ads/google_ads/v6/services/ad_group_ad_label_service_pb"
op = Google::Ads::GoogleAds::V6::Services::AdGroupAdLabelOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.ad_group_ad_label(&blk)
+ Factories::V6::Resources.ad_group_ad_label(&blk)
+ else
+ Factories::V6::Resources.ad_group_ad_label
end
op
end
@@ -960,17 +1382,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::AdGroupAd]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::AdGroupAdOperation] instance that will create the resource
- def self.ad_group_ad(res=nil, &blk)
+ def self.ad_group_ad(res = nil, &blk)
require "google/ads/google_ads/v6/services/ad_group_ad_service_pb"
op = Google::Ads::GoogleAds::V6::Services::AdGroupAdOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.ad_group_ad(&blk)
+ Factories::V6::Resources.ad_group_ad(&blk)
+ else
+ Factories::V6::Resources.ad_group_ad
end
op
end
@@ -985,17 +1409,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::AdGroupBidModifier]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::AdGroupBidModifierOperation] instance that will create the resource
- def self.ad_group_bid_modifier(res=nil, &blk)
+ def self.ad_group_bid_modifier(res = nil, &blk)
require "google/ads/google_ads/v6/services/ad_group_bid_modifier_service_pb"
op = Google::Ads::GoogleAds::V6::Services::AdGroupBidModifierOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.ad_group_bid_modifier(&blk)
+ Factories::V6::Resources.ad_group_bid_modifier(&blk)
+ else
+ Factories::V6::Resources.ad_group_bid_modifier
end
op
end
@@ -1010,17 +1436,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::AdGroupCriterion]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::AdGroupCriterionOperation] instance that will create the resource
- def self.ad_group_criterion(res=nil, &blk)
+ def self.ad_group_criterion(res = nil, &blk)
require "google/ads/google_ads/v6/services/ad_group_criterion_service_pb"
op = Google::Ads::GoogleAds::V6::Services::AdGroupCriterionOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.ad_group_criterion(&blk)
+ Factories::V6::Resources.ad_group_criterion(&blk)
+ else
+ Factories::V6::Resources.ad_group_criterion
end
op
end
@@ -1035,17 +1463,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::AdGroupExtensionSetting]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::AdGroupExtensionSettingOperation] instance that will create the resource
- def self.ad_group_extension_setting(res=nil, &blk)
+ def self.ad_group_extension_setting(res = nil, &blk)
require "google/ads/google_ads/v6/services/ad_group_extension_setting_service_pb"
op = Google::Ads::GoogleAds::V6::Services::AdGroupExtensionSettingOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.ad_group_extension_setting(&blk)
+ Factories::V6::Resources.ad_group_extension_setting(&blk)
+ else
+ Factories::V6::Resources.ad_group_extension_setting
end
op
end
@@ -1060,17 +1490,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::AdGroupFeed]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::AdGroupFeedOperation] instance that will create the resource
- def self.ad_group_feed(res=nil, &blk)
+ def self.ad_group_feed(res = nil, &blk)
require "google/ads/google_ads/v6/services/ad_group_feed_service_pb"
op = Google::Ads::GoogleAds::V6::Services::AdGroupFeedOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.ad_group_feed(&blk)
+ Factories::V6::Resources.ad_group_feed(&blk)
+ else
+ Factories::V6::Resources.ad_group_feed
end
op
end
@@ -1085,17 +1517,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::AdGroupLabel]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::AdGroupLabelOperation] instance that will create the resource
- def self.ad_group_label(res=nil, &blk)
+ def self.ad_group_label(res = nil, &blk)
require "google/ads/google_ads/v6/services/ad_group_label_service_pb"
op = Google::Ads::GoogleAds::V6::Services::AdGroupLabelOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.ad_group_label(&blk)
+ Factories::V6::Resources.ad_group_label(&blk)
+ else
+ Factories::V6::Resources.ad_group_label
end
op
end
@@ -1110,17 +1544,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::AdParameter]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::AdParameterOperation] instance that will create the resource
- def self.ad_parameter(res=nil, &blk)
+ def self.ad_parameter(res = nil, &blk)
require "google/ads/google_ads/v6/services/ad_parameter_service_pb"
op = Google::Ads::GoogleAds::V6::Services::AdParameterOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.ad_parameter(&blk)
+ Factories::V6::Resources.ad_parameter(&blk)
+ else
+ Factories::V6::Resources.ad_parameter
end
op
end
@@ -1135,17 +1571,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::Asset]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::AssetOperation] instance that will create the resource
- def self.asset(res=nil, &blk)
+ def self.asset(res = nil, &blk)
require "google/ads/google_ads/v6/services/asset_service_pb"
op = Google::Ads::GoogleAds::V6::Services::AssetOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.asset(&blk)
+ Factories::V6::Resources.asset(&blk)
+ else
+ Factories::V6::Resources.asset
end
op
end
@@ -1160,17 +1598,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::BiddingStrategy]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::BiddingStrategyOperation] instance that will create the resource
- def self.bidding_strategy(res=nil, &blk)
+ def self.bidding_strategy(res = nil, &blk)
require "google/ads/google_ads/v6/services/bidding_strategy_service_pb"
op = Google::Ads::GoogleAds::V6::Services::BiddingStrategyOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.bidding_strategy(&blk)
+ Factories::V6::Resources.bidding_strategy(&blk)
+ else
+ Factories::V6::Resources.bidding_strategy
end
op
end
@@ -1185,17 +1625,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::CampaignAsset]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::CampaignAssetOperation] instance that will create the resource
- def self.campaign_asset(res=nil, &blk)
+ def self.campaign_asset(res = nil, &blk)
require "google/ads/google_ads/v6/services/campaign_asset_service_pb"
op = Google::Ads::GoogleAds::V6::Services::CampaignAssetOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.campaign_asset(&blk)
+ Factories::V6::Resources.campaign_asset(&blk)
+ else
+ Factories::V6::Resources.campaign_asset
end
op
end
@@ -1210,17 +1652,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::CampaignBudget]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::CampaignBudgetOperation] instance that will create the resource
- def self.campaign_budget(res=nil, &blk)
+ def self.campaign_budget(res = nil, &blk)
require "google/ads/google_ads/v6/services/campaign_budget_service_pb"
op = Google::Ads::GoogleAds::V6::Services::CampaignBudgetOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.campaign_budget(&blk)
+ Factories::V6::Resources.campaign_budget(&blk)
+ else
+ Factories::V6::Resources.campaign_budget
end
op
end
@@ -1235,17 +1679,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::CampaignCriterion]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::CampaignCriterionOperation] instance that will create the resource
- def self.campaign_criterion(res=nil, &blk)
+ def self.campaign_criterion(res = nil, &blk)
require "google/ads/google_ads/v6/services/campaign_criterion_service_pb"
op = Google::Ads::GoogleAds::V6::Services::CampaignCriterionOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.campaign_criterion(&blk)
+ Factories::V6::Resources.campaign_criterion(&blk)
+ else
+ Factories::V6::Resources.campaign_criterion
end
op
end
@@ -1260,17 +1706,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::CampaignExtensionSetting]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::CampaignExtensionSettingOperation] instance that will create the resource
- def self.campaign_extension_setting(res=nil, &blk)
+ def self.campaign_extension_setting(res = nil, &blk)
require "google/ads/google_ads/v6/services/campaign_extension_setting_service_pb"
op = Google::Ads::GoogleAds::V6::Services::CampaignExtensionSettingOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.campaign_extension_setting(&blk)
+ Factories::V6::Resources.campaign_extension_setting(&blk)
+ else
+ Factories::V6::Resources.campaign_extension_setting
end
op
end
@@ -1285,17 +1733,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::CampaignFeed]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::CampaignFeedOperation] instance that will create the resource
- def self.campaign_feed(res=nil, &blk)
+ def self.campaign_feed(res = nil, &blk)
require "google/ads/google_ads/v6/services/campaign_feed_service_pb"
op = Google::Ads::GoogleAds::V6::Services::CampaignFeedOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.campaign_feed(&blk)
+ Factories::V6::Resources.campaign_feed(&blk)
+ else
+ Factories::V6::Resources.campaign_feed
end
op
end
@@ -1310,17 +1760,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::CampaignLabel]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::CampaignLabelOperation] instance that will create the resource
- def self.campaign_label(res=nil, &blk)
+ def self.campaign_label(res = nil, &blk)
require "google/ads/google_ads/v6/services/campaign_label_service_pb"
op = Google::Ads::GoogleAds::V6::Services::CampaignLabelOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.campaign_label(&blk)
+ Factories::V6::Resources.campaign_label(&blk)
+ else
+ Factories::V6::Resources.campaign_label
end
op
end
@@ -1335,17 +1787,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::Campaign]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::CampaignOperation] instance that will create the resource
- def self.campaign(res=nil, &blk)
+ def self.campaign(res = nil, &blk)
require "google/ads/google_ads/v6/services/campaign_service_pb"
op = Google::Ads::GoogleAds::V6::Services::CampaignOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.campaign(&blk)
+ Factories::V6::Resources.campaign(&blk)
+ else
+ Factories::V6::Resources.campaign
end
op
end
@@ -1360,17 +1814,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::CampaignSharedSet]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::CampaignSharedSetOperation] instance that will create the resource
- def self.campaign_shared_set(res=nil, &blk)
+ def self.campaign_shared_set(res = nil, &blk)
require "google/ads/google_ads/v6/services/campaign_shared_set_service_pb"
op = Google::Ads::GoogleAds::V6::Services::CampaignSharedSetOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.campaign_shared_set(&blk)
+ Factories::V6::Resources.campaign_shared_set(&blk)
+ else
+ Factories::V6::Resources.campaign_shared_set
end
op
end
@@ -1385,17 +1841,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::ConversionAction]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::ConversionActionOperation] instance that will create the resource
- def self.conversion_action(res=nil, &blk)
+ def self.conversion_action(res = nil, &blk)
require "google/ads/google_ads/v6/services/conversion_action_service_pb"
op = Google::Ads::GoogleAds::V6::Services::ConversionActionOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.conversion_action(&blk)
+ Factories::V6::Resources.conversion_action(&blk)
+ else
+ Factories::V6::Resources.conversion_action
end
op
end
@@ -1410,17 +1868,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::CustomerExtensionSetting]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::CustomerExtensionSettingOperation] instance that will create the resource
- def self.customer_extension_setting(res=nil, &blk)
+ def self.customer_extension_setting(res = nil, &blk)
require "google/ads/google_ads/v6/services/customer_extension_setting_service_pb"
op = Google::Ads::GoogleAds::V6::Services::CustomerExtensionSettingOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.customer_extension_setting(&blk)
+ Factories::V6::Resources.customer_extension_setting(&blk)
+ else
+ Factories::V6::Resources.customer_extension_setting
end
op
end
@@ -1435,17 +1895,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::CustomerFeed]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::CustomerFeedOperation] instance that will create the resource
- def self.customer_feed(res=nil, &blk)
+ def self.customer_feed(res = nil, &blk)
require "google/ads/google_ads/v6/services/customer_feed_service_pb"
op = Google::Ads::GoogleAds::V6::Services::CustomerFeedOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.customer_feed(&blk)
+ Factories::V6::Resources.customer_feed(&blk)
+ else
+ Factories::V6::Resources.customer_feed
end
op
end
@@ -1460,17 +1922,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::CustomerLabel]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::CustomerLabelOperation] instance that will create the resource
- def self.customer_label(res=nil, &blk)
+ def self.customer_label(res = nil, &blk)
require "google/ads/google_ads/v6/services/customer_label_service_pb"
op = Google::Ads::GoogleAds::V6::Services::CustomerLabelOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.customer_label(&blk)
+ Factories::V6::Resources.customer_label(&blk)
+ else
+ Factories::V6::Resources.customer_label
end
op
end
@@ -1485,17 +1949,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::ExtensionFeedItem]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::ExtensionFeedItemOperation] instance that will create the resource
- def self.extension_feed_item(res=nil, &blk)
+ def self.extension_feed_item(res = nil, &blk)
require "google/ads/google_ads/v6/services/extension_feed_item_service_pb"
op = Google::Ads::GoogleAds::V6::Services::ExtensionFeedItemOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.extension_feed_item(&blk)
+ Factories::V6::Resources.extension_feed_item(&blk)
+ else
+ Factories::V6::Resources.extension_feed_item
end
op
end
@@ -1510,17 +1976,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::FeedItem]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::FeedItemOperation] instance that will create the resource
- def self.feed_item(res=nil, &blk)
+ def self.feed_item(res = nil, &blk)
require "google/ads/google_ads/v6/services/feed_item_service_pb"
op = Google::Ads::GoogleAds::V6::Services::FeedItemOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.feed_item(&blk)
+ Factories::V6::Resources.feed_item(&blk)
+ else
+ Factories::V6::Resources.feed_item
end
op
end
@@ -1535,17 +2003,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::FeedItemTarget]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::FeedItemTargetOperation] instance that will create the resource
- def self.feed_item_target(res=nil, &blk)
+ def self.feed_item_target(res = nil, &blk)
require "google/ads/google_ads/v6/services/feed_item_target_service_pb"
op = Google::Ads::GoogleAds::V6::Services::FeedItemTargetOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.feed_item_target(&blk)
+ Factories::V6::Resources.feed_item_target(&blk)
+ else
+ Factories::V6::Resources.feed_item_target
end
op
end
@@ -1560,17 +2030,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::Feed]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::FeedOperation] instance that will create the resource
- def self.feed(res=nil, &blk)
+ def self.feed(res = nil, &blk)
require "google/ads/google_ads/v6/services/feed_service_pb"
op = Google::Ads::GoogleAds::V6::Services::FeedOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.feed(&blk)
+ Factories::V6::Resources.feed(&blk)
+ else
+ Factories::V6::Resources.feed
end
op
end
@@ -1585,17 +2057,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::KeywordPlanAdGroup]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupOperation] instance that will create the resource
- def self.keyword_plan_ad_group(res=nil, &blk)
+ def self.keyword_plan_ad_group(res = nil, &blk)
require "google/ads/google_ads/v6/services/keyword_plan_ad_group_service_pb"
op = Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.keyword_plan_ad_group(&blk)
+ Factories::V6::Resources.keyword_plan_ad_group(&blk)
+ else
+ Factories::V6::Resources.keyword_plan_ad_group
end
op
end
@@ -1610,17 +2084,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::KeywordPlanCampaignKeyword]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::KeywordPlanCampaignKeywordOperation] instance that will create the resource
- def self.keyword_plan_campaign_keyword(res=nil, &blk)
+ def self.keyword_plan_campaign_keyword(res = nil, &blk)
require "google/ads/google_ads/v6/services/keyword_plan_campaign_keyword_service_pb"
op = Google::Ads::GoogleAds::V6::Services::KeywordPlanCampaignKeywordOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.keyword_plan_campaign_keyword(&blk)
+ Factories::V6::Resources.keyword_plan_campaign_keyword(&blk)
+ else
+ Factories::V6::Resources.keyword_plan_campaign_keyword
end
op
end
@@ -1635,17 +2111,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::KeywordPlanCampaign]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::KeywordPlanCampaignOperation] instance that will create the resource
- def self.keyword_plan_campaign(res=nil, &blk)
+ def self.keyword_plan_campaign(res = nil, &blk)
require "google/ads/google_ads/v6/services/keyword_plan_campaign_service_pb"
op = Google::Ads::GoogleAds::V6::Services::KeywordPlanCampaignOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.keyword_plan_campaign(&blk)
+ Factories::V6::Resources.keyword_plan_campaign(&blk)
+ else
+ Factories::V6::Resources.keyword_plan_campaign
end
op
end
@@ -1660,17 +2138,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::KeywordPlan]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::KeywordPlanOperation] instance that will create the resource
- def self.keyword_plan(res=nil, &blk)
+ def self.keyword_plan(res = nil, &blk)
require "google/ads/google_ads/v6/services/keyword_plan_service_pb"
op = Google::Ads::GoogleAds::V6::Services::KeywordPlanOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.keyword_plan(&blk)
+ Factories::V6::Resources.keyword_plan(&blk)
+ else
+ Factories::V6::Resources.keyword_plan
end
op
end
@@ -1685,17 +2165,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::MediaFile]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::MediaFileOperation] instance that will create the resource
- def self.media_file(res=nil, &blk)
+ def self.media_file(res = nil, &blk)
require "google/ads/google_ads/v6/services/media_file_service_pb"
op = Google::Ads::GoogleAds::V6::Services::MediaFileOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.media_file(&blk)
+ Factories::V6::Resources.media_file(&blk)
+ else
+ Factories::V6::Resources.media_file
end
op
end
@@ -1710,17 +2192,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::RemarketingAction]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::RemarketingActionOperation] instance that will create the resource
- def self.remarketing_action(res=nil, &blk)
+ def self.remarketing_action(res = nil, &blk)
require "google/ads/google_ads/v6/services/remarketing_action_service_pb"
op = Google::Ads::GoogleAds::V6::Services::RemarketingActionOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.remarketing_action(&blk)
+ Factories::V6::Resources.remarketing_action(&blk)
+ else
+ Factories::V6::Resources.remarketing_action
end
op
end
@@ -1735,17 +2219,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::BatchJob]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::BatchJobOperation] instance that will create the resource
- def self.batch_job(res=nil, &blk)
+ def self.batch_job(res = nil, &blk)
require "google/ads/google_ads/v6/services/batch_job_service_pb"
op = Google::Ads::GoogleAds::V6::Services::BatchJobOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.batch_job(&blk)
+ Factories::V6::Resources.batch_job(&blk)
+ else
+ Factories::V6::Resources.batch_job
end
op
end
@@ -1760,17 +2246,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Common::UserData]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::OfflineUserDataJobOperation] instance that will create the resource
- def self.offline_user_data_job(res=nil, &blk)
+ def self.offline_user_data_job(res = nil, &blk)
require "google/ads/google_ads/v6/services/offline_user_data_job_service_pb"
op = Google::Ads::GoogleAds::V6::Services::OfflineUserDataJobOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.user_data(&blk)
+ Factories::V6::Resources.user_data(&blk)
+ else
+ Factories::V6::Resources.user_data
end
op
end
@@ -1785,17 +2273,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Common::UserData]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::UserDataOperation] instance that will create the resource
- def self.user_data(res=nil, &blk)
+ def self.user_data(res = nil, &blk)
require "google/ads/google_ads/v6/services/user_data_service_pb"
op = Google::Ads::GoogleAds::V6::Services::UserDataOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.user_data(&blk)
+ Factories::V6::Resources.user_data(&blk)
+ else
+ Factories::V6::Resources.user_data
end
op
end
@@ -1810,17 +2300,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::AccountBudgetProposal]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::AccountBudgetProposalOperation] instance that will create the resource
- def self.account_budget_proposal(res=nil, &blk)
+ def self.account_budget_proposal(res = nil, &blk)
require "google/ads/google_ads/v6/services/account_budget_proposal_service_pb"
op = Google::Ads::GoogleAds::V6::Services::AccountBudgetProposalOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.account_budget_proposal(&blk)
+ Factories::V6::Resources.account_budget_proposal(&blk)
+ else
+ Factories::V6::Resources.account_budget_proposal
end
op
end
@@ -1835,17 +2327,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::CustomAudience]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::CustomAudienceOperation] instance that will create the resource
- def self.custom_audience(res=nil, &blk)
+ def self.custom_audience(res = nil, &blk)
require "google/ads/google_ads/v6/services/custom_audience_service_pb"
op = Google::Ads::GoogleAds::V6::Services::CustomAudienceOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.custom_audience(&blk)
+ Factories::V6::Resources.custom_audience(&blk)
+ else
+ Factories::V6::Resources.custom_audience
end
op
end
@@ -1860,17 +2354,19 @@
# set to the passed value (res)
# @param res [Google::Ads::GoogleAds::V6::Resources::BillingSetup]
# a resource instance to be used for creation in this operation.
#
# @return [Google::Ads::GoogleAds::V6::Services::BillingSetupOperation] instance that will create the resource
- def self.billing_setup(res=nil, &blk)
+ def self.billing_setup(res = nil, &blk)
require "google/ads/google_ads/v6/services/billing_setup_service_pb"
op = Google::Ads::GoogleAds::V6::Services::BillingSetupOperation.new
- if !res.nil?
- op["create"] = res
+ op["create"] = if !res.nil?
+ res
elsif !blk.nil?
- op["create"] = Factories::V6::Resources.billing_setup(&blk)
+ Factories::V6::Resources.billing_setup(&blk)
+ else
+ Factories::V6::Resources.billing_setup
end
op
end
end
@@ -3514,714 +4010,714 @@
op
end
end
module RemoveResource
- # A convenience method for creationg an FeedAttributeOperation instance with
+ # A convenience method for creating an FeedAttributeOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.feed_attribute(path)
require "google/ads/google_ads/v6/resources/feed_pb"
op = Google::Ads::GoogleAds::V6::Resources::FeedAttributeOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an TargetRestrictionOperation instance with
+ # A convenience method for creating an TargetRestrictionOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.target_restriction(path)
require "google/ads/google_ads/v6/common/targeting_setting_pb"
op = Google::Ads::GoogleAds::V6::Common::TargetRestrictionOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an CustomerClientLinkOperation instance with
+ # A convenience method for creating an CustomerClientLinkOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.customer_client_link(path)
require "google/ads/google_ads/v6/services/customer_client_link_service_pb"
op = Google::Ads::GoogleAds::V6::Services::CustomerClientLinkOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an CustomInterestOperation instance with
+ # A convenience method for creating an CustomInterestOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.custom_interest(path)
require "google/ads/google_ads/v6/services/custom_interest_service_pb"
op = Google::Ads::GoogleAds::V6::Services::CustomInterestOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an CustomerNegativeCriterionOperation instance with
+ # A convenience method for creating an CustomerNegativeCriterionOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.customer_negative_criterion(path)
require "google/ads/google_ads/v6/services/customer_negative_criterion_service_pb"
op = Google::Ads::GoogleAds::V6::Services::CustomerNegativeCriterionOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an SharedCriterionOperation instance with
+ # A convenience method for creating an SharedCriterionOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.shared_criterion(path)
require "google/ads/google_ads/v6/services/shared_criterion_service_pb"
op = Google::Ads::GoogleAds::V6::Services::SharedCriterionOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an KeywordPlanAdGroupKeywordOperation instance with
+ # A convenience method for creating an KeywordPlanAdGroupKeywordOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.keyword_plan_ad_group_keyword(path)
require "google/ads/google_ads/v6/services/keyword_plan_ad_group_keyword_service_pb"
op = Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupKeywordOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an FeedMappingOperation instance with
+ # A convenience method for creating an FeedMappingOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.feed_mapping(path)
require "google/ads/google_ads/v6/services/feed_mapping_service_pb"
op = Google::Ads::GoogleAds::V6::Services::FeedMappingOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an FeedItemSetLinkOperation instance with
+ # A convenience method for creating an FeedItemSetLinkOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.feed_item_set_link(path)
require "google/ads/google_ads/v6/services/feed_item_set_link_service_pb"
op = Google::Ads::GoogleAds::V6::Services::FeedItemSetLinkOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an AdGroupOperation instance with
+ # A convenience method for creating an AdGroupOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.ad_group(path)
require "google/ads/google_ads/v6/services/ad_group_service_pb"
op = Google::Ads::GoogleAds::V6::Services::AdGroupOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an FeedItemSetOperation instance with
+ # A convenience method for creating an FeedItemSetOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.feed_item_set(path)
require "google/ads/google_ads/v6/services/feed_item_set_service_pb"
op = Google::Ads::GoogleAds::V6::Services::FeedItemSetOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an CampaignBidModifierOperation instance with
+ # A convenience method for creating an CampaignBidModifierOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.campaign_bid_modifier(path)
require "google/ads/google_ads/v6/services/campaign_bid_modifier_service_pb"
op = Google::Ads::GoogleAds::V6::Services::CampaignBidModifierOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an CustomerManagerLinkOperation instance with
+ # A convenience method for creating an CustomerManagerLinkOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.customer_manager_link(path)
require "google/ads/google_ads/v6/services/customer_manager_link_service_pb"
op = Google::Ads::GoogleAds::V6::Services::CustomerManagerLinkOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an CampaignDraftOperation instance with
+ # A convenience method for creating an CampaignDraftOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.campaign_draft(path)
require "google/ads/google_ads/v6/services/campaign_draft_service_pb"
op = Google::Ads::GoogleAds::V6::Services::CampaignDraftOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an UserListOperation instance with
+ # A convenience method for creating an UserListOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.user_list(path)
require "google/ads/google_ads/v6/services/user_list_service_pb"
op = Google::Ads::GoogleAds::V6::Services::UserListOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an CustomerOperation instance with
+ # A convenience method for creating an CustomerOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.customer(path)
require "google/ads/google_ads/v6/services/customer_service_pb"
op = Google::Ads::GoogleAds::V6::Services::CustomerOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an SharedSetOperation instance with
+ # A convenience method for creating an SharedSetOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.shared_set(path)
require "google/ads/google_ads/v6/services/shared_set_service_pb"
op = Google::Ads::GoogleAds::V6::Services::SharedSetOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an AdGroupCriterionLabelOperation instance with
+ # A convenience method for creating an AdGroupCriterionLabelOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.ad_group_criterion_label(path)
require "google/ads/google_ads/v6/services/ad_group_criterion_label_service_pb"
op = Google::Ads::GoogleAds::V6::Services::AdGroupCriterionLabelOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an LabelOperation instance with
+ # A convenience method for creating an LabelOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.label(path)
require "google/ads/google_ads/v6/services/label_service_pb"
op = Google::Ads::GoogleAds::V6::Services::LabelOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an AdGroupAdLabelOperation instance with
+ # A convenience method for creating an AdGroupAdLabelOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.ad_group_ad_label(path)
require "google/ads/google_ads/v6/services/ad_group_ad_label_service_pb"
op = Google::Ads::GoogleAds::V6::Services::AdGroupAdLabelOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an AdGroupAdOperation instance with
+ # A convenience method for creating an AdGroupAdOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.ad_group_ad(path)
require "google/ads/google_ads/v6/services/ad_group_ad_service_pb"
op = Google::Ads::GoogleAds::V6::Services::AdGroupAdOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an AdGroupBidModifierOperation instance with
+ # A convenience method for creating an AdGroupBidModifierOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.ad_group_bid_modifier(path)
require "google/ads/google_ads/v6/services/ad_group_bid_modifier_service_pb"
op = Google::Ads::GoogleAds::V6::Services::AdGroupBidModifierOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an AdGroupCriterionOperation instance with
+ # A convenience method for creating an AdGroupCriterionOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.ad_group_criterion(path)
require "google/ads/google_ads/v6/services/ad_group_criterion_service_pb"
op = Google::Ads::GoogleAds::V6::Services::AdGroupCriterionOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an AdGroupExtensionSettingOperation instance with
+ # A convenience method for creating an AdGroupExtensionSettingOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.ad_group_extension_setting(path)
require "google/ads/google_ads/v6/services/ad_group_extension_setting_service_pb"
op = Google::Ads::GoogleAds::V6::Services::AdGroupExtensionSettingOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an AdGroupFeedOperation instance with
+ # A convenience method for creating an AdGroupFeedOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.ad_group_feed(path)
require "google/ads/google_ads/v6/services/ad_group_feed_service_pb"
op = Google::Ads::GoogleAds::V6::Services::AdGroupFeedOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an AdGroupLabelOperation instance with
+ # A convenience method for creating an AdGroupLabelOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.ad_group_label(path)
require "google/ads/google_ads/v6/services/ad_group_label_service_pb"
op = Google::Ads::GoogleAds::V6::Services::AdGroupLabelOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an AdParameterOperation instance with
+ # A convenience method for creating an AdParameterOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.ad_parameter(path)
require "google/ads/google_ads/v6/services/ad_parameter_service_pb"
op = Google::Ads::GoogleAds::V6::Services::AdParameterOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an AdOperation instance with
+ # A convenience method for creating an AdOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.ad(path)
require "google/ads/google_ads/v6/services/ad_service_pb"
op = Google::Ads::GoogleAds::V6::Services::AdOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an AssetOperation instance with
+ # A convenience method for creating an AssetOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.asset(path)
require "google/ads/google_ads/v6/services/asset_service_pb"
op = Google::Ads::GoogleAds::V6::Services::AssetOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an BiddingStrategyOperation instance with
+ # A convenience method for creating an BiddingStrategyOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.bidding_strategy(path)
require "google/ads/google_ads/v6/services/bidding_strategy_service_pb"
op = Google::Ads::GoogleAds::V6::Services::BiddingStrategyOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an CampaignAssetOperation instance with
+ # A convenience method for creating an CampaignAssetOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.campaign_asset(path)
require "google/ads/google_ads/v6/services/campaign_asset_service_pb"
op = Google::Ads::GoogleAds::V6::Services::CampaignAssetOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an CampaignBudgetOperation instance with
+ # A convenience method for creating an CampaignBudgetOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.campaign_budget(path)
require "google/ads/google_ads/v6/services/campaign_budget_service_pb"
op = Google::Ads::GoogleAds::V6::Services::CampaignBudgetOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an CampaignCriterionOperation instance with
+ # A convenience method for creating an CampaignCriterionOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.campaign_criterion(path)
require "google/ads/google_ads/v6/services/campaign_criterion_service_pb"
op = Google::Ads::GoogleAds::V6::Services::CampaignCriterionOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an CampaignExperimentOperation instance with
+ # A convenience method for creating an CampaignExperimentOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.campaign_experiment(path)
require "google/ads/google_ads/v6/services/campaign_experiment_service_pb"
op = Google::Ads::GoogleAds::V6::Services::CampaignExperimentOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an CampaignExtensionSettingOperation instance with
+ # A convenience method for creating an CampaignExtensionSettingOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.campaign_extension_setting(path)
require "google/ads/google_ads/v6/services/campaign_extension_setting_service_pb"
op = Google::Ads::GoogleAds::V6::Services::CampaignExtensionSettingOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an CampaignFeedOperation instance with
+ # A convenience method for creating an CampaignFeedOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.campaign_feed(path)
require "google/ads/google_ads/v6/services/campaign_feed_service_pb"
op = Google::Ads::GoogleAds::V6::Services::CampaignFeedOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an CampaignLabelOperation instance with
+ # A convenience method for creating an CampaignLabelOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.campaign_label(path)
require "google/ads/google_ads/v6/services/campaign_label_service_pb"
op = Google::Ads::GoogleAds::V6::Services::CampaignLabelOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an CampaignOperation instance with
+ # A convenience method for creating an CampaignOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.campaign(path)
require "google/ads/google_ads/v6/services/campaign_service_pb"
op = Google::Ads::GoogleAds::V6::Services::CampaignOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an CampaignSharedSetOperation instance with
+ # A convenience method for creating an CampaignSharedSetOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.campaign_shared_set(path)
require "google/ads/google_ads/v6/services/campaign_shared_set_service_pb"
op = Google::Ads::GoogleAds::V6::Services::CampaignSharedSetOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an ConversionActionOperation instance with
+ # A convenience method for creating an ConversionActionOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.conversion_action(path)
require "google/ads/google_ads/v6/services/conversion_action_service_pb"
op = Google::Ads::GoogleAds::V6::Services::ConversionActionOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an CustomerExtensionSettingOperation instance with
+ # A convenience method for creating an CustomerExtensionSettingOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.customer_extension_setting(path)
require "google/ads/google_ads/v6/services/customer_extension_setting_service_pb"
op = Google::Ads::GoogleAds::V6::Services::CustomerExtensionSettingOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an CustomerFeedOperation instance with
+ # A convenience method for creating an CustomerFeedOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.customer_feed(path)
require "google/ads/google_ads/v6/services/customer_feed_service_pb"
op = Google::Ads::GoogleAds::V6::Services::CustomerFeedOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an CustomerLabelOperation instance with
+ # A convenience method for creating an CustomerLabelOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.customer_label(path)
require "google/ads/google_ads/v6/services/customer_label_service_pb"
op = Google::Ads::GoogleAds::V6::Services::CustomerLabelOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an ExtensionFeedItemOperation instance with
+ # A convenience method for creating an ExtensionFeedItemOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.extension_feed_item(path)
require "google/ads/google_ads/v6/services/extension_feed_item_service_pb"
op = Google::Ads::GoogleAds::V6::Services::ExtensionFeedItemOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an FeedItemOperation instance with
+ # A convenience method for creating an FeedItemOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.feed_item(path)
require "google/ads/google_ads/v6/services/feed_item_service_pb"
op = Google::Ads::GoogleAds::V6::Services::FeedItemOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an FeedItemTargetOperation instance with
+ # A convenience method for creating an FeedItemTargetOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.feed_item_target(path)
require "google/ads/google_ads/v6/services/feed_item_target_service_pb"
op = Google::Ads::GoogleAds::V6::Services::FeedItemTargetOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an FeedOperation instance with
+ # A convenience method for creating an FeedOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.feed(path)
require "google/ads/google_ads/v6/services/feed_service_pb"
op = Google::Ads::GoogleAds::V6::Services::FeedOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an KeywordPlanAdGroupOperation instance with
+ # A convenience method for creating an KeywordPlanAdGroupOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.keyword_plan_ad_group(path)
require "google/ads/google_ads/v6/services/keyword_plan_ad_group_service_pb"
op = Google::Ads::GoogleAds::V6::Services::KeywordPlanAdGroupOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an KeywordPlanCampaignKeywordOperation instance with
+ # A convenience method for creating an KeywordPlanCampaignKeywordOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.keyword_plan_campaign_keyword(path)
require "google/ads/google_ads/v6/services/keyword_plan_campaign_keyword_service_pb"
op = Google::Ads::GoogleAds::V6::Services::KeywordPlanCampaignKeywordOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an KeywordPlanCampaignOperation instance with
+ # A convenience method for creating an KeywordPlanCampaignOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.keyword_plan_campaign(path)
require "google/ads/google_ads/v6/services/keyword_plan_campaign_service_pb"
op = Google::Ads::GoogleAds::V6::Services::KeywordPlanCampaignOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an KeywordPlanOperation instance with
+ # A convenience method for creating an KeywordPlanOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.keyword_plan(path)
require "google/ads/google_ads/v6/services/keyword_plan_service_pb"
op = Google::Ads::GoogleAds::V6::Services::KeywordPlanOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an MediaFileOperation instance with
+ # A convenience method for creating an MediaFileOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.media_file(path)
require "google/ads/google_ads/v6/services/media_file_service_pb"
op = Google::Ads::GoogleAds::V6::Services::MediaFileOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an RemarketingActionOperation instance with
+ # A convenience method for creating an RemarketingActionOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.remarketing_action(path)
require "google/ads/google_ads/v6/services/remarketing_action_service_pb"
op = Google::Ads::GoogleAds::V6::Services::RemarketingActionOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an MutateOperation instance with
+ # A convenience method for creating an MutateOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.mutate(path)
require "google/ads/google_ads/v6/services/google_ads_service_pb"
op = Google::Ads::GoogleAds::V6::Services::MutateOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an BatchJobOperation instance with
+ # A convenience method for creating an BatchJobOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.batch_job(path)
require "google/ads/google_ads/v6/services/batch_job_service_pb"
op = Google::Ads::GoogleAds::V6::Services::BatchJobOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an OfflineUserDataJobOperation instance with
+ # A convenience method for creating an OfflineUserDataJobOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.offline_user_data_job(path)
require "google/ads/google_ads/v6/services/offline_user_data_job_service_pb"
op = Google::Ads::GoogleAds::V6::Services::OfflineUserDataJobOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an UserDataOperation instance with
+ # A convenience method for creating an UserDataOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.user_data(path)
require "google/ads/google_ads/v6/services/user_data_service_pb"
op = Google::Ads::GoogleAds::V6::Services::UserDataOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an AccountBudgetProposalOperation instance with
+ # A convenience method for creating an AccountBudgetProposalOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.account_budget_proposal(path)
require "google/ads/google_ads/v6/services/account_budget_proposal_service_pb"
op = Google::Ads::GoogleAds::V6::Services::AccountBudgetProposalOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an ApplyRecommendationOperation instance with
+ # A convenience method for creating an ApplyRecommendationOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.apply_recommendation(path)
require "google/ads/google_ads/v6/services/recommendation_service_pb"
op = Google::Ads::GoogleAds::V6::Services::ApplyRecommendationOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an DismissRecommendationOperation instance with
+ # A convenience method for creating an DismissRecommendationOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.dismiss_recommendation(path)
require "google/ads/google_ads/v6/services/recommendation_service_pb"
op = Google::Ads::GoogleAds::V6::Services::DismissRecommendationRequest::DismissRecommendationOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an AccountLinkOperation instance with
+ # A convenience method for creating an AccountLinkOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.account_link(path)
require "google/ads/google_ads/v6/services/account_link_service_pb"
op = Google::Ads::GoogleAds::V6::Services::AccountLinkOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an CustomAudienceOperation instance with
+ # A convenience method for creating an CustomAudienceOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.custom_audience(path)
require "google/ads/google_ads/v6/services/custom_audience_service_pb"
op = Google::Ads::GoogleAds::V6::Services::CustomAudienceOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an CustomerUserAccessOperation instance with
+ # A convenience method for creating an CustomerUserAccessOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.customer_user_access(path)
require "google/ads/google_ads/v6/services/customer_user_access_service_pb"
op = Google::Ads::GoogleAds::V6::Services::CustomerUserAccessOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an MerchantCenterLinkOperation instance with
+ # A convenience method for creating an MerchantCenterLinkOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.merchant_center_link(path)
require "google/ads/google_ads/v6/services/merchant_center_link_service_pb"
op = Google::Ads::GoogleAds::V6::Services::MerchantCenterLinkOperation.new
op["remove"] = path
op
end
- # A convenience method for creationg an BillingSetupOperation instance with
+ # A convenience method for creating an BillingSetupOperation instance with
# its "remove" field preopulated with a resource path corresponding to the resource to be removed.
#
# @param path [String] the resource name of the resource to delete.
def self.billing_setup(path)
require "google/ads/google_ads/v6/services/billing_setup_service_pb"