google-ads-googleads 29.0.0 → 30.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/ads/google_ads/factories/v15/operations.rb +252 -252
- data/lib/google/ads/google_ads/factories/v16/operations.rb +260 -260
- data/lib/google/ads/google_ads/factories/v17/enums.rb +40 -0
- data/lib/google/ads/google_ads/factories/v17/operations.rb +260 -260
- data/lib/google/ads/google_ads/factories/v17/resources.rb +169 -0
- data/lib/google/ads/google_ads/factories/v17/services.rb +26 -2
- data/lib/google/ads/google_ads/v17/common/bidding_pb.rb +6 -1
- data/lib/google/ads/google_ads/v17/common/segments_pb.rb +2 -1
- data/lib/google/ads/google_ads/v17/enums/ad_format_type_pb.rb +45 -0
- data/lib/google/ads/google_ads/v17/enums/bidding_strategy_type_pb.rb +1 -1
- data/lib/google/ads/google_ads/v17/enums/change_status_resource_type_pb.rb +1 -1
- data/lib/google/ads/google_ads/v17/enums/fixed_cpm_goal_pb.rb +45 -0
- data/lib/google/ads/google_ads/v17/enums/fixed_cpm_target_frequency_time_unit_pb.rb +45 -0
- data/lib/google/ads/google_ads/v17/enums/user_list_customer_type_category_pb.rb +1 -1
- data/lib/google/ads/google_ads/v17/errors/automatically_created_asset_removal_error_pb.rb +45 -0
- data/lib/google/ads/google_ads/v17/errors/errors_pb.rb +3 -1
- data/lib/google/ads/google_ads/v17/errors/shareable_preview_error_pb.rb +45 -0
- data/lib/google/ads/google_ads/v17/resources/ad_group_pb.rb +1 -1
- data/lib/google/ads/google_ads/v17/resources/campaign_pb.rb +3 -1
- data/lib/google/ads/google_ads/v17/resources/change_status_pb.rb +1 -1
- data/lib/google/ads/google_ads/v17/resources/offline_conversion_upload_client_summary_pb.rb +1 -1
- data/lib/google/ads/google_ads/v17/resources/offline_conversion_upload_conversion_action_summary_pb.rb +51 -0
- data/lib/google/ads/google_ads/v17/services/ad_group_ad_service/client.rb +109 -0
- data/lib/google/ads/google_ads/v17/services/ad_group_ad_service/paths.rb +17 -0
- data/lib/google/ads/google_ads/v17/services/ad_group_ad_service_pb.rb +5 -1
- data/lib/google/ads/google_ads/v17/services/ad_group_ad_service_services_pb.rb +13 -0
- data/lib/google/ads/google_ads/v17/services/audience_insights_service/client.rb +128 -1
- data/lib/google/ads/google_ads/v17/services/audience_insights_service_pb.rb +5 -1
- data/lib/google/ads/google_ads/v17/services/audience_insights_service_services_pb.rb +15 -0
- data/lib/google/ads/google_ads/v17/services/google_ads_service/paths.rb +19 -0
- data/lib/google/ads/google_ads/v17/services/google_ads_service_pb.rb +3 -1
- data/lib/google/ads/google_ads/v17/services/shareable_preview_service/client.rb +428 -0
- data/lib/google/ads/google_ads/v17/services/shareable_preview_service/credentials.rb +38 -0
- data/lib/google/ads/google_ads/v17/services/shareable_preview_service.rb +50 -0
- data/lib/google/ads/google_ads/v17/services/shareable_preview_service_pb.rb +55 -0
- data/lib/google/ads/google_ads/v17/services/shareable_preview_service_services_pb.rb +47 -0
- data/lib/google/ads/google_ads/v17/services.rb +1 -0
- data/lib/google/ads/google_ads/version.rb +1 -1
- metadata +14 -3
@@ -3657,7 +3657,7 @@ module Google
|
|
3657
3657
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::AccountLink] a resource instance to update
|
3658
3658
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3659
3659
|
# @return [Google::Ads::GoogleAds::V17::Services::AccountLinkOperation] the operation instance to update the resource
|
3660
|
-
def self.account_link(resource_or_path, &
|
3660
|
+
def self.account_link(resource_or_path, &)
|
3661
3661
|
require "google/ads/google_ads/v17/services/account_link_service_pb"
|
3662
3662
|
res = case resource_or_path
|
3663
3663
|
when Google::Ads::GoogleAds::V17::Resources::AccountLink
|
@@ -3670,15 +3670,15 @@ module Google
|
|
3670
3670
|
else
|
3671
3671
|
unless Google::Ads::GoogleAds::V17::Resources::AccountLink === res
|
3672
3672
|
raise ArgumentError.new(
|
3673
|
-
"Called #{__method__} with instance of wrong type:"\
|
3674
|
-
" #{res.class} want #{operation.update_class}"\
|
3673
|
+
"Called #{__method__} with instance of wrong type:" \
|
3674
|
+
" #{res.class} want #{operation.update_class}" \
|
3675
3675
|
" or String representing resource name"
|
3676
3676
|
)
|
3677
3677
|
end
|
3678
3678
|
end
|
3679
3679
|
|
3680
3680
|
op = Google::Ads::GoogleAds::V17::Services::AccountLinkOperation.new
|
3681
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
3681
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
3682
3682
|
op["update"] = res
|
3683
3683
|
op
|
3684
3684
|
end
|
@@ -3696,7 +3696,7 @@ module Google
|
|
3696
3696
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::AdGroupAd] a resource instance to update
|
3697
3697
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3698
3698
|
# @return [Google::Ads::GoogleAds::V17::Services::AdGroupAdOperation] the operation instance to update the resource
|
3699
|
-
def self.ad_group_ad(resource_or_path, &
|
3699
|
+
def self.ad_group_ad(resource_or_path, &)
|
3700
3700
|
require "google/ads/google_ads/v17/services/ad_group_ad_service_pb"
|
3701
3701
|
res = case resource_or_path
|
3702
3702
|
when Google::Ads::GoogleAds::V17::Resources::AdGroupAd
|
@@ -3709,15 +3709,15 @@ module Google
|
|
3709
3709
|
else
|
3710
3710
|
unless Google::Ads::GoogleAds::V17::Resources::AdGroupAd === res
|
3711
3711
|
raise ArgumentError.new(
|
3712
|
-
"Called #{__method__} with instance of wrong type:"\
|
3713
|
-
" #{res.class} want #{operation.update_class}"\
|
3712
|
+
"Called #{__method__} with instance of wrong type:" \
|
3713
|
+
" #{res.class} want #{operation.update_class}" \
|
3714
3714
|
" or String representing resource name"
|
3715
3715
|
)
|
3716
3716
|
end
|
3717
3717
|
end
|
3718
3718
|
|
3719
3719
|
op = Google::Ads::GoogleAds::V17::Services::AdGroupAdOperation.new
|
3720
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
3720
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
3721
3721
|
op["update"] = res
|
3722
3722
|
op
|
3723
3723
|
end
|
@@ -3735,7 +3735,7 @@ module Google
|
|
3735
3735
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::AdGroupAsset] a resource instance to update
|
3736
3736
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3737
3737
|
# @return [Google::Ads::GoogleAds::V17::Services::AdGroupAssetOperation] the operation instance to update the resource
|
3738
|
-
def self.ad_group_asset(resource_or_path, &
|
3738
|
+
def self.ad_group_asset(resource_or_path, &)
|
3739
3739
|
require "google/ads/google_ads/v17/services/ad_group_asset_service_pb"
|
3740
3740
|
res = case resource_or_path
|
3741
3741
|
when Google::Ads::GoogleAds::V17::Resources::AdGroupAsset
|
@@ -3748,15 +3748,15 @@ module Google
|
|
3748
3748
|
else
|
3749
3749
|
unless Google::Ads::GoogleAds::V17::Resources::AdGroupAsset === res
|
3750
3750
|
raise ArgumentError.new(
|
3751
|
-
"Called #{__method__} with instance of wrong type:"\
|
3752
|
-
" #{res.class} want #{operation.update_class}"\
|
3751
|
+
"Called #{__method__} with instance of wrong type:" \
|
3752
|
+
" #{res.class} want #{operation.update_class}" \
|
3753
3753
|
" or String representing resource name"
|
3754
3754
|
)
|
3755
3755
|
end
|
3756
3756
|
end
|
3757
3757
|
|
3758
3758
|
op = Google::Ads::GoogleAds::V17::Services::AdGroupAssetOperation.new
|
3759
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
3759
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
3760
3760
|
op["update"] = res
|
3761
3761
|
op
|
3762
3762
|
end
|
@@ -3774,7 +3774,7 @@ module Google
|
|
3774
3774
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::AdGroupBidModifier] a resource instance to update
|
3775
3775
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3776
3776
|
# @return [Google::Ads::GoogleAds::V17::Services::AdGroupBidModifierOperation] the operation instance to update the resource
|
3777
|
-
def self.ad_group_bid_modifier(resource_or_path, &
|
3777
|
+
def self.ad_group_bid_modifier(resource_or_path, &)
|
3778
3778
|
require "google/ads/google_ads/v17/services/ad_group_bid_modifier_service_pb"
|
3779
3779
|
res = case resource_or_path
|
3780
3780
|
when Google::Ads::GoogleAds::V17::Resources::AdGroupBidModifier
|
@@ -3787,15 +3787,15 @@ module Google
|
|
3787
3787
|
else
|
3788
3788
|
unless Google::Ads::GoogleAds::V17::Resources::AdGroupBidModifier === res
|
3789
3789
|
raise ArgumentError.new(
|
3790
|
-
"Called #{__method__} with instance of wrong type:"\
|
3791
|
-
" #{res.class} want #{operation.update_class}"\
|
3790
|
+
"Called #{__method__} with instance of wrong type:" \
|
3791
|
+
" #{res.class} want #{operation.update_class}" \
|
3792
3792
|
" or String representing resource name"
|
3793
3793
|
)
|
3794
3794
|
end
|
3795
3795
|
end
|
3796
3796
|
|
3797
3797
|
op = Google::Ads::GoogleAds::V17::Services::AdGroupBidModifierOperation.new
|
3798
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
3798
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
3799
3799
|
op["update"] = res
|
3800
3800
|
op
|
3801
3801
|
end
|
@@ -3813,7 +3813,7 @@ module Google
|
|
3813
3813
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::AdGroupCriterion] a resource instance to update
|
3814
3814
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3815
3815
|
# @return [Google::Ads::GoogleAds::V17::Services::AdGroupCriterionOperation] the operation instance to update the resource
|
3816
|
-
def self.ad_group_criterion(resource_or_path, &
|
3816
|
+
def self.ad_group_criterion(resource_or_path, &)
|
3817
3817
|
require "google/ads/google_ads/v17/services/ad_group_criterion_service_pb"
|
3818
3818
|
res = case resource_or_path
|
3819
3819
|
when Google::Ads::GoogleAds::V17::Resources::AdGroupCriterion
|
@@ -3826,15 +3826,15 @@ module Google
|
|
3826
3826
|
else
|
3827
3827
|
unless Google::Ads::GoogleAds::V17::Resources::AdGroupCriterion === res
|
3828
3828
|
raise ArgumentError.new(
|
3829
|
-
"Called #{__method__} with instance of wrong type:"\
|
3830
|
-
" #{res.class} want #{operation.update_class}"\
|
3829
|
+
"Called #{__method__} with instance of wrong type:" \
|
3830
|
+
" #{res.class} want #{operation.update_class}" \
|
3831
3831
|
" or String representing resource name"
|
3832
3832
|
)
|
3833
3833
|
end
|
3834
3834
|
end
|
3835
3835
|
|
3836
3836
|
op = Google::Ads::GoogleAds::V17::Services::AdGroupCriterionOperation.new
|
3837
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
3837
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
3838
3838
|
op["update"] = res
|
3839
3839
|
op
|
3840
3840
|
end
|
@@ -3852,7 +3852,7 @@ module Google
|
|
3852
3852
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::AdGroupExtensionSetting] a resource instance to update
|
3853
3853
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3854
3854
|
# @return [Google::Ads::GoogleAds::V17::Services::AdGroupExtensionSettingOperation] the operation instance to update the resource
|
3855
|
-
def self.ad_group_extension_setting(resource_or_path, &
|
3855
|
+
def self.ad_group_extension_setting(resource_or_path, &)
|
3856
3856
|
require "google/ads/google_ads/v17/services/ad_group_extension_setting_service_pb"
|
3857
3857
|
res = case resource_or_path
|
3858
3858
|
when Google::Ads::GoogleAds::V17::Resources::AdGroupExtensionSetting
|
@@ -3865,15 +3865,15 @@ module Google
|
|
3865
3865
|
else
|
3866
3866
|
unless Google::Ads::GoogleAds::V17::Resources::AdGroupExtensionSetting === res
|
3867
3867
|
raise ArgumentError.new(
|
3868
|
-
"Called #{__method__} with instance of wrong type:"\
|
3869
|
-
" #{res.class} want #{operation.update_class}"\
|
3868
|
+
"Called #{__method__} with instance of wrong type:" \
|
3869
|
+
" #{res.class} want #{operation.update_class}" \
|
3870
3870
|
" or String representing resource name"
|
3871
3871
|
)
|
3872
3872
|
end
|
3873
3873
|
end
|
3874
3874
|
|
3875
3875
|
op = Google::Ads::GoogleAds::V17::Services::AdGroupExtensionSettingOperation.new
|
3876
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
3876
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
3877
3877
|
op["update"] = res
|
3878
3878
|
op
|
3879
3879
|
end
|
@@ -3891,7 +3891,7 @@ module Google
|
|
3891
3891
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::AdGroupFeed] a resource instance to update
|
3892
3892
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3893
3893
|
# @return [Google::Ads::GoogleAds::V17::Services::AdGroupFeedOperation] the operation instance to update the resource
|
3894
|
-
def self.ad_group_feed(resource_or_path, &
|
3894
|
+
def self.ad_group_feed(resource_or_path, &)
|
3895
3895
|
require "google/ads/google_ads/v17/services/ad_group_feed_service_pb"
|
3896
3896
|
res = case resource_or_path
|
3897
3897
|
when Google::Ads::GoogleAds::V17::Resources::AdGroupFeed
|
@@ -3904,15 +3904,15 @@ module Google
|
|
3904
3904
|
else
|
3905
3905
|
unless Google::Ads::GoogleAds::V17::Resources::AdGroupFeed === res
|
3906
3906
|
raise ArgumentError.new(
|
3907
|
-
"Called #{__method__} with instance of wrong type:"\
|
3908
|
-
" #{res.class} want #{operation.update_class}"\
|
3907
|
+
"Called #{__method__} with instance of wrong type:" \
|
3908
|
+
" #{res.class} want #{operation.update_class}" \
|
3909
3909
|
" or String representing resource name"
|
3910
3910
|
)
|
3911
3911
|
end
|
3912
3912
|
end
|
3913
3913
|
|
3914
3914
|
op = Google::Ads::GoogleAds::V17::Services::AdGroupFeedOperation.new
|
3915
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
3915
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
3916
3916
|
op["update"] = res
|
3917
3917
|
op
|
3918
3918
|
end
|
@@ -3930,7 +3930,7 @@ module Google
|
|
3930
3930
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::AdGroup] a resource instance to update
|
3931
3931
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3932
3932
|
# @return [Google::Ads::GoogleAds::V17::Services::AdGroupOperation] the operation instance to update the resource
|
3933
|
-
def self.ad_group(resource_or_path, &
|
3933
|
+
def self.ad_group(resource_or_path, &)
|
3934
3934
|
require "google/ads/google_ads/v17/services/ad_group_service_pb"
|
3935
3935
|
res = case resource_or_path
|
3936
3936
|
when Google::Ads::GoogleAds::V17::Resources::AdGroup
|
@@ -3943,15 +3943,15 @@ module Google
|
|
3943
3943
|
else
|
3944
3944
|
unless Google::Ads::GoogleAds::V17::Resources::AdGroup === res
|
3945
3945
|
raise ArgumentError.new(
|
3946
|
-
"Called #{__method__} with instance of wrong type:"\
|
3947
|
-
" #{res.class} want #{operation.update_class}"\
|
3946
|
+
"Called #{__method__} with instance of wrong type:" \
|
3947
|
+
" #{res.class} want #{operation.update_class}" \
|
3948
3948
|
" or String representing resource name"
|
3949
3949
|
)
|
3950
3950
|
end
|
3951
3951
|
end
|
3952
3952
|
|
3953
3953
|
op = Google::Ads::GoogleAds::V17::Services::AdGroupOperation.new
|
3954
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
3954
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
3955
3955
|
op["update"] = res
|
3956
3956
|
op
|
3957
3957
|
end
|
@@ -3969,7 +3969,7 @@ module Google
|
|
3969
3969
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::AdParameter] a resource instance to update
|
3970
3970
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3971
3971
|
# @return [Google::Ads::GoogleAds::V17::Services::AdParameterOperation] the operation instance to update the resource
|
3972
|
-
def self.ad_parameter(resource_or_path, &
|
3972
|
+
def self.ad_parameter(resource_or_path, &)
|
3973
3973
|
require "google/ads/google_ads/v17/services/ad_parameter_service_pb"
|
3974
3974
|
res = case resource_or_path
|
3975
3975
|
when Google::Ads::GoogleAds::V17::Resources::AdParameter
|
@@ -3982,15 +3982,15 @@ module Google
|
|
3982
3982
|
else
|
3983
3983
|
unless Google::Ads::GoogleAds::V17::Resources::AdParameter === res
|
3984
3984
|
raise ArgumentError.new(
|
3985
|
-
"Called #{__method__} with instance of wrong type:"\
|
3986
|
-
" #{res.class} want #{operation.update_class}"\
|
3985
|
+
"Called #{__method__} with instance of wrong type:" \
|
3986
|
+
" #{res.class} want #{operation.update_class}" \
|
3987
3987
|
" or String representing resource name"
|
3988
3988
|
)
|
3989
3989
|
end
|
3990
3990
|
end
|
3991
3991
|
|
3992
3992
|
op = Google::Ads::GoogleAds::V17::Services::AdParameterOperation.new
|
3993
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
3993
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
3994
3994
|
op["update"] = res
|
3995
3995
|
op
|
3996
3996
|
end
|
@@ -4008,7 +4008,7 @@ module Google
|
|
4008
4008
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::Ad] a resource instance to update
|
4009
4009
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4010
4010
|
# @return [Google::Ads::GoogleAds::V17::Services::AdOperation] the operation instance to update the resource
|
4011
|
-
def self.ad(resource_or_path, &
|
4011
|
+
def self.ad(resource_or_path, &)
|
4012
4012
|
require "google/ads/google_ads/v17/services/ad_service_pb"
|
4013
4013
|
res = case resource_or_path
|
4014
4014
|
when Google::Ads::GoogleAds::V17::Resources::Ad
|
@@ -4021,15 +4021,15 @@ module Google
|
|
4021
4021
|
else
|
4022
4022
|
unless Google::Ads::GoogleAds::V17::Resources::Ad === res
|
4023
4023
|
raise ArgumentError.new(
|
4024
|
-
"Called #{__method__} with instance of wrong type:"\
|
4025
|
-
" #{res.class} want #{operation.update_class}"\
|
4024
|
+
"Called #{__method__} with instance of wrong type:" \
|
4025
|
+
" #{res.class} want #{operation.update_class}" \
|
4026
4026
|
" or String representing resource name"
|
4027
4027
|
)
|
4028
4028
|
end
|
4029
4029
|
end
|
4030
4030
|
|
4031
4031
|
op = Google::Ads::GoogleAds::V17::Services::AdOperation.new
|
4032
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4032
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4033
4033
|
op["update"] = res
|
4034
4034
|
op
|
4035
4035
|
end
|
@@ -4047,7 +4047,7 @@ module Google
|
|
4047
4047
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::AssetGroupAsset] a resource instance to update
|
4048
4048
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4049
4049
|
# @return [Google::Ads::GoogleAds::V17::Services::AssetGroupAssetOperation] the operation instance to update the resource
|
4050
|
-
def self.asset_group_asset(resource_or_path, &
|
4050
|
+
def self.asset_group_asset(resource_or_path, &)
|
4051
4051
|
require "google/ads/google_ads/v17/services/asset_group_asset_service_pb"
|
4052
4052
|
res = case resource_or_path
|
4053
4053
|
when Google::Ads::GoogleAds::V17::Resources::AssetGroupAsset
|
@@ -4060,15 +4060,15 @@ module Google
|
|
4060
4060
|
else
|
4061
4061
|
unless Google::Ads::GoogleAds::V17::Resources::AssetGroupAsset === res
|
4062
4062
|
raise ArgumentError.new(
|
4063
|
-
"Called #{__method__} with instance of wrong type:"\
|
4064
|
-
" #{res.class} want #{operation.update_class}"\
|
4063
|
+
"Called #{__method__} with instance of wrong type:" \
|
4064
|
+
" #{res.class} want #{operation.update_class}" \
|
4065
4065
|
" or String representing resource name"
|
4066
4066
|
)
|
4067
4067
|
end
|
4068
4068
|
end
|
4069
4069
|
|
4070
4070
|
op = Google::Ads::GoogleAds::V17::Services::AssetGroupAssetOperation.new
|
4071
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4071
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4072
4072
|
op["update"] = res
|
4073
4073
|
op
|
4074
4074
|
end
|
@@ -4086,7 +4086,7 @@ module Google
|
|
4086
4086
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::AssetGroupListingGroupFilter] a resource instance to update
|
4087
4087
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4088
4088
|
# @return [Google::Ads::GoogleAds::V17::Services::AssetGroupListingGroupFilterOperation] the operation instance to update the resource
|
4089
|
-
def self.asset_group_listing_group_filter(resource_or_path, &
|
4089
|
+
def self.asset_group_listing_group_filter(resource_or_path, &)
|
4090
4090
|
require "google/ads/google_ads/v17/services/asset_group_listing_group_filter_service_pb"
|
4091
4091
|
res = case resource_or_path
|
4092
4092
|
when Google::Ads::GoogleAds::V17::Resources::AssetGroupListingGroupFilter
|
@@ -4099,15 +4099,15 @@ module Google
|
|
4099
4099
|
else
|
4100
4100
|
unless Google::Ads::GoogleAds::V17::Resources::AssetGroupListingGroupFilter === res
|
4101
4101
|
raise ArgumentError.new(
|
4102
|
-
"Called #{__method__} with instance of wrong type:"\
|
4103
|
-
" #{res.class} want #{operation.update_class}"\
|
4102
|
+
"Called #{__method__} with instance of wrong type:" \
|
4103
|
+
" #{res.class} want #{operation.update_class}" \
|
4104
4104
|
" or String representing resource name"
|
4105
4105
|
)
|
4106
4106
|
end
|
4107
4107
|
end
|
4108
4108
|
|
4109
4109
|
op = Google::Ads::GoogleAds::V17::Services::AssetGroupListingGroupFilterOperation.new
|
4110
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4110
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4111
4111
|
op["update"] = res
|
4112
4112
|
op
|
4113
4113
|
end
|
@@ -4125,7 +4125,7 @@ module Google
|
|
4125
4125
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::AssetGroup] a resource instance to update
|
4126
4126
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4127
4127
|
# @return [Google::Ads::GoogleAds::V17::Services::AssetGroupOperation] the operation instance to update the resource
|
4128
|
-
def self.asset_group(resource_or_path, &
|
4128
|
+
def self.asset_group(resource_or_path, &)
|
4129
4129
|
require "google/ads/google_ads/v17/services/asset_group_service_pb"
|
4130
4130
|
res = case resource_or_path
|
4131
4131
|
when Google::Ads::GoogleAds::V17::Resources::AssetGroup
|
@@ -4138,15 +4138,15 @@ module Google
|
|
4138
4138
|
else
|
4139
4139
|
unless Google::Ads::GoogleAds::V17::Resources::AssetGroup === res
|
4140
4140
|
raise ArgumentError.new(
|
4141
|
-
"Called #{__method__} with instance of wrong type:"\
|
4142
|
-
" #{res.class} want #{operation.update_class}"\
|
4141
|
+
"Called #{__method__} with instance of wrong type:" \
|
4142
|
+
" #{res.class} want #{operation.update_class}" \
|
4143
4143
|
" or String representing resource name"
|
4144
4144
|
)
|
4145
4145
|
end
|
4146
4146
|
end
|
4147
4147
|
|
4148
4148
|
op = Google::Ads::GoogleAds::V17::Services::AssetGroupOperation.new
|
4149
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4149
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4150
4150
|
op["update"] = res
|
4151
4151
|
op
|
4152
4152
|
end
|
@@ -4164,7 +4164,7 @@ module Google
|
|
4164
4164
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::Asset] a resource instance to update
|
4165
4165
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4166
4166
|
# @return [Google::Ads::GoogleAds::V17::Services::AssetOperation] the operation instance to update the resource
|
4167
|
-
def self.asset(resource_or_path, &
|
4167
|
+
def self.asset(resource_or_path, &)
|
4168
4168
|
require "google/ads/google_ads/v17/services/asset_service_pb"
|
4169
4169
|
res = case resource_or_path
|
4170
4170
|
when Google::Ads::GoogleAds::V17::Resources::Asset
|
@@ -4177,15 +4177,15 @@ module Google
|
|
4177
4177
|
else
|
4178
4178
|
unless Google::Ads::GoogleAds::V17::Resources::Asset === res
|
4179
4179
|
raise ArgumentError.new(
|
4180
|
-
"Called #{__method__} with instance of wrong type:"\
|
4181
|
-
" #{res.class} want #{operation.update_class}"\
|
4180
|
+
"Called #{__method__} with instance of wrong type:" \
|
4181
|
+
" #{res.class} want #{operation.update_class}" \
|
4182
4182
|
" or String representing resource name"
|
4183
4183
|
)
|
4184
4184
|
end
|
4185
4185
|
end
|
4186
4186
|
|
4187
4187
|
op = Google::Ads::GoogleAds::V17::Services::AssetOperation.new
|
4188
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4188
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4189
4189
|
op["update"] = res
|
4190
4190
|
op
|
4191
4191
|
end
|
@@ -4203,7 +4203,7 @@ module Google
|
|
4203
4203
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::AssetSet] a resource instance to update
|
4204
4204
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4205
4205
|
# @return [Google::Ads::GoogleAds::V17::Services::AssetSetOperation] the operation instance to update the resource
|
4206
|
-
def self.asset_set(resource_or_path, &
|
4206
|
+
def self.asset_set(resource_or_path, &)
|
4207
4207
|
require "google/ads/google_ads/v17/services/asset_set_service_pb"
|
4208
4208
|
res = case resource_or_path
|
4209
4209
|
when Google::Ads::GoogleAds::V17::Resources::AssetSet
|
@@ -4216,15 +4216,15 @@ module Google
|
|
4216
4216
|
else
|
4217
4217
|
unless Google::Ads::GoogleAds::V17::Resources::AssetSet === res
|
4218
4218
|
raise ArgumentError.new(
|
4219
|
-
"Called #{__method__} with instance of wrong type:"\
|
4220
|
-
" #{res.class} want #{operation.update_class}"\
|
4219
|
+
"Called #{__method__} with instance of wrong type:" \
|
4220
|
+
" #{res.class} want #{operation.update_class}" \
|
4221
4221
|
" or String representing resource name"
|
4222
4222
|
)
|
4223
4223
|
end
|
4224
4224
|
end
|
4225
4225
|
|
4226
4226
|
op = Google::Ads::GoogleAds::V17::Services::AssetSetOperation.new
|
4227
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4227
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4228
4228
|
op["update"] = res
|
4229
4229
|
op
|
4230
4230
|
end
|
@@ -4242,7 +4242,7 @@ module Google
|
|
4242
4242
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::Audience] a resource instance to update
|
4243
4243
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4244
4244
|
# @return [Google::Ads::GoogleAds::V17::Services::AudienceOperation] the operation instance to update the resource
|
4245
|
-
def self.audience(resource_or_path, &
|
4245
|
+
def self.audience(resource_or_path, &)
|
4246
4246
|
require "google/ads/google_ads/v17/services/audience_service_pb"
|
4247
4247
|
res = case resource_or_path
|
4248
4248
|
when Google::Ads::GoogleAds::V17::Resources::Audience
|
@@ -4255,15 +4255,15 @@ module Google
|
|
4255
4255
|
else
|
4256
4256
|
unless Google::Ads::GoogleAds::V17::Resources::Audience === res
|
4257
4257
|
raise ArgumentError.new(
|
4258
|
-
"Called #{__method__} with instance of wrong type:"\
|
4259
|
-
" #{res.class} want #{operation.update_class}"\
|
4258
|
+
"Called #{__method__} with instance of wrong type:" \
|
4259
|
+
" #{res.class} want #{operation.update_class}" \
|
4260
4260
|
" or String representing resource name"
|
4261
4261
|
)
|
4262
4262
|
end
|
4263
4263
|
end
|
4264
4264
|
|
4265
4265
|
op = Google::Ads::GoogleAds::V17::Services::AudienceOperation.new
|
4266
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4266
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4267
4267
|
op["update"] = res
|
4268
4268
|
op
|
4269
4269
|
end
|
@@ -4281,7 +4281,7 @@ module Google
|
|
4281
4281
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::BiddingDataExclusion] a resource instance to update
|
4282
4282
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4283
4283
|
# @return [Google::Ads::GoogleAds::V17::Services::BiddingDataExclusionOperation] the operation instance to update the resource
|
4284
|
-
def self.bidding_data_exclusion(resource_or_path, &
|
4284
|
+
def self.bidding_data_exclusion(resource_or_path, &)
|
4285
4285
|
require "google/ads/google_ads/v17/services/bidding_data_exclusion_service_pb"
|
4286
4286
|
res = case resource_or_path
|
4287
4287
|
when Google::Ads::GoogleAds::V17::Resources::BiddingDataExclusion
|
@@ -4294,15 +4294,15 @@ module Google
|
|
4294
4294
|
else
|
4295
4295
|
unless Google::Ads::GoogleAds::V17::Resources::BiddingDataExclusion === res
|
4296
4296
|
raise ArgumentError.new(
|
4297
|
-
"Called #{__method__} with instance of wrong type:"\
|
4298
|
-
" #{res.class} want #{operation.update_class}"\
|
4297
|
+
"Called #{__method__} with instance of wrong type:" \
|
4298
|
+
" #{res.class} want #{operation.update_class}" \
|
4299
4299
|
" or String representing resource name"
|
4300
4300
|
)
|
4301
4301
|
end
|
4302
4302
|
end
|
4303
4303
|
|
4304
4304
|
op = Google::Ads::GoogleAds::V17::Services::BiddingDataExclusionOperation.new
|
4305
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4305
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4306
4306
|
op["update"] = res
|
4307
4307
|
op
|
4308
4308
|
end
|
@@ -4320,7 +4320,7 @@ module Google
|
|
4320
4320
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::BiddingSeasonalityAdjustment] a resource instance to update
|
4321
4321
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4322
4322
|
# @return [Google::Ads::GoogleAds::V17::Services::BiddingSeasonalityAdjustmentOperation] the operation instance to update the resource
|
4323
|
-
def self.bidding_seasonality_adjustment(resource_or_path, &
|
4323
|
+
def self.bidding_seasonality_adjustment(resource_or_path, &)
|
4324
4324
|
require "google/ads/google_ads/v17/services/bidding_seasonality_adjustment_service_pb"
|
4325
4325
|
res = case resource_or_path
|
4326
4326
|
when Google::Ads::GoogleAds::V17::Resources::BiddingSeasonalityAdjustment
|
@@ -4333,15 +4333,15 @@ module Google
|
|
4333
4333
|
else
|
4334
4334
|
unless Google::Ads::GoogleAds::V17::Resources::BiddingSeasonalityAdjustment === res
|
4335
4335
|
raise ArgumentError.new(
|
4336
|
-
"Called #{__method__} with instance of wrong type:"\
|
4337
|
-
" #{res.class} want #{operation.update_class}"\
|
4336
|
+
"Called #{__method__} with instance of wrong type:" \
|
4337
|
+
" #{res.class} want #{operation.update_class}" \
|
4338
4338
|
" or String representing resource name"
|
4339
4339
|
)
|
4340
4340
|
end
|
4341
4341
|
end
|
4342
4342
|
|
4343
4343
|
op = Google::Ads::GoogleAds::V17::Services::BiddingSeasonalityAdjustmentOperation.new
|
4344
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4344
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4345
4345
|
op["update"] = res
|
4346
4346
|
op
|
4347
4347
|
end
|
@@ -4359,7 +4359,7 @@ module Google
|
|
4359
4359
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::BiddingStrategy] a resource instance to update
|
4360
4360
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4361
4361
|
# @return [Google::Ads::GoogleAds::V17::Services::BiddingStrategyOperation] the operation instance to update the resource
|
4362
|
-
def self.bidding_strategy(resource_or_path, &
|
4362
|
+
def self.bidding_strategy(resource_or_path, &)
|
4363
4363
|
require "google/ads/google_ads/v17/services/bidding_strategy_service_pb"
|
4364
4364
|
res = case resource_or_path
|
4365
4365
|
when Google::Ads::GoogleAds::V17::Resources::BiddingStrategy
|
@@ -4372,15 +4372,15 @@ module Google
|
|
4372
4372
|
else
|
4373
4373
|
unless Google::Ads::GoogleAds::V17::Resources::BiddingStrategy === res
|
4374
4374
|
raise ArgumentError.new(
|
4375
|
-
"Called #{__method__} with instance of wrong type:"\
|
4376
|
-
" #{res.class} want #{operation.update_class}"\
|
4375
|
+
"Called #{__method__} with instance of wrong type:" \
|
4376
|
+
" #{res.class} want #{operation.update_class}" \
|
4377
4377
|
" or String representing resource name"
|
4378
4378
|
)
|
4379
4379
|
end
|
4380
4380
|
end
|
4381
4381
|
|
4382
4382
|
op = Google::Ads::GoogleAds::V17::Services::BiddingStrategyOperation.new
|
4383
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4383
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4384
4384
|
op["update"] = res
|
4385
4385
|
op
|
4386
4386
|
end
|
@@ -4398,7 +4398,7 @@ module Google
|
|
4398
4398
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::CampaignAsset] a resource instance to update
|
4399
4399
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4400
4400
|
# @return [Google::Ads::GoogleAds::V17::Services::CampaignAssetOperation] the operation instance to update the resource
|
4401
|
-
def self.campaign_asset(resource_or_path, &
|
4401
|
+
def self.campaign_asset(resource_or_path, &)
|
4402
4402
|
require "google/ads/google_ads/v17/services/campaign_asset_service_pb"
|
4403
4403
|
res = case resource_or_path
|
4404
4404
|
when Google::Ads::GoogleAds::V17::Resources::CampaignAsset
|
@@ -4411,15 +4411,15 @@ module Google
|
|
4411
4411
|
else
|
4412
4412
|
unless Google::Ads::GoogleAds::V17::Resources::CampaignAsset === res
|
4413
4413
|
raise ArgumentError.new(
|
4414
|
-
"Called #{__method__} with instance of wrong type:"\
|
4415
|
-
" #{res.class} want #{operation.update_class}"\
|
4414
|
+
"Called #{__method__} with instance of wrong type:" \
|
4415
|
+
" #{res.class} want #{operation.update_class}" \
|
4416
4416
|
" or String representing resource name"
|
4417
4417
|
)
|
4418
4418
|
end
|
4419
4419
|
end
|
4420
4420
|
|
4421
4421
|
op = Google::Ads::GoogleAds::V17::Services::CampaignAssetOperation.new
|
4422
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4422
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4423
4423
|
op["update"] = res
|
4424
4424
|
op
|
4425
4425
|
end
|
@@ -4437,7 +4437,7 @@ module Google
|
|
4437
4437
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::CampaignBidModifier] a resource instance to update
|
4438
4438
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4439
4439
|
# @return [Google::Ads::GoogleAds::V17::Services::CampaignBidModifierOperation] the operation instance to update the resource
|
4440
|
-
def self.campaign_bid_modifier(resource_or_path, &
|
4440
|
+
def self.campaign_bid_modifier(resource_or_path, &)
|
4441
4441
|
require "google/ads/google_ads/v17/services/campaign_bid_modifier_service_pb"
|
4442
4442
|
res = case resource_or_path
|
4443
4443
|
when Google::Ads::GoogleAds::V17::Resources::CampaignBidModifier
|
@@ -4450,15 +4450,15 @@ module Google
|
|
4450
4450
|
else
|
4451
4451
|
unless Google::Ads::GoogleAds::V17::Resources::CampaignBidModifier === res
|
4452
4452
|
raise ArgumentError.new(
|
4453
|
-
"Called #{__method__} with instance of wrong type:"\
|
4454
|
-
" #{res.class} want #{operation.update_class}"\
|
4453
|
+
"Called #{__method__} with instance of wrong type:" \
|
4454
|
+
" #{res.class} want #{operation.update_class}" \
|
4455
4455
|
" or String representing resource name"
|
4456
4456
|
)
|
4457
4457
|
end
|
4458
4458
|
end
|
4459
4459
|
|
4460
4460
|
op = Google::Ads::GoogleAds::V17::Services::CampaignBidModifierOperation.new
|
4461
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4461
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4462
4462
|
op["update"] = res
|
4463
4463
|
op
|
4464
4464
|
end
|
@@ -4476,7 +4476,7 @@ module Google
|
|
4476
4476
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::CampaignBudget] a resource instance to update
|
4477
4477
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4478
4478
|
# @return [Google::Ads::GoogleAds::V17::Services::CampaignBudgetOperation] the operation instance to update the resource
|
4479
|
-
def self.campaign_budget(resource_or_path, &
|
4479
|
+
def self.campaign_budget(resource_or_path, &)
|
4480
4480
|
require "google/ads/google_ads/v17/services/campaign_budget_service_pb"
|
4481
4481
|
res = case resource_or_path
|
4482
4482
|
when Google::Ads::GoogleAds::V17::Resources::CampaignBudget
|
@@ -4489,15 +4489,15 @@ module Google
|
|
4489
4489
|
else
|
4490
4490
|
unless Google::Ads::GoogleAds::V17::Resources::CampaignBudget === res
|
4491
4491
|
raise ArgumentError.new(
|
4492
|
-
"Called #{__method__} with instance of wrong type:"\
|
4493
|
-
" #{res.class} want #{operation.update_class}"\
|
4492
|
+
"Called #{__method__} with instance of wrong type:" \
|
4493
|
+
" #{res.class} want #{operation.update_class}" \
|
4494
4494
|
" or String representing resource name"
|
4495
4495
|
)
|
4496
4496
|
end
|
4497
4497
|
end
|
4498
4498
|
|
4499
4499
|
op = Google::Ads::GoogleAds::V17::Services::CampaignBudgetOperation.new
|
4500
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4500
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4501
4501
|
op["update"] = res
|
4502
4502
|
op
|
4503
4503
|
end
|
@@ -4515,7 +4515,7 @@ module Google
|
|
4515
4515
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::CampaignConversionGoal] a resource instance to update
|
4516
4516
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4517
4517
|
# @return [Google::Ads::GoogleAds::V17::Services::CampaignConversionGoalOperation] the operation instance to update the resource
|
4518
|
-
def self.campaign_conversion_goal(resource_or_path, &
|
4518
|
+
def self.campaign_conversion_goal(resource_or_path, &)
|
4519
4519
|
require "google/ads/google_ads/v17/services/campaign_conversion_goal_service_pb"
|
4520
4520
|
res = case resource_or_path
|
4521
4521
|
when Google::Ads::GoogleAds::V17::Resources::CampaignConversionGoal
|
@@ -4528,15 +4528,15 @@ module Google
|
|
4528
4528
|
else
|
4529
4529
|
unless Google::Ads::GoogleAds::V17::Resources::CampaignConversionGoal === res
|
4530
4530
|
raise ArgumentError.new(
|
4531
|
-
"Called #{__method__} with instance of wrong type:"\
|
4532
|
-
" #{res.class} want #{operation.update_class}"\
|
4531
|
+
"Called #{__method__} with instance of wrong type:" \
|
4532
|
+
" #{res.class} want #{operation.update_class}" \
|
4533
4533
|
" or String representing resource name"
|
4534
4534
|
)
|
4535
4535
|
end
|
4536
4536
|
end
|
4537
4537
|
|
4538
4538
|
op = Google::Ads::GoogleAds::V17::Services::CampaignConversionGoalOperation.new
|
4539
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4539
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4540
4540
|
op["update"] = res
|
4541
4541
|
op
|
4542
4542
|
end
|
@@ -4554,7 +4554,7 @@ module Google
|
|
4554
4554
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::CampaignCriterion] a resource instance to update
|
4555
4555
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4556
4556
|
# @return [Google::Ads::GoogleAds::V17::Services::CampaignCriterionOperation] the operation instance to update the resource
|
4557
|
-
def self.campaign_criterion(resource_or_path, &
|
4557
|
+
def self.campaign_criterion(resource_or_path, &)
|
4558
4558
|
require "google/ads/google_ads/v17/services/campaign_criterion_service_pb"
|
4559
4559
|
res = case resource_or_path
|
4560
4560
|
when Google::Ads::GoogleAds::V17::Resources::CampaignCriterion
|
@@ -4567,15 +4567,15 @@ module Google
|
|
4567
4567
|
else
|
4568
4568
|
unless Google::Ads::GoogleAds::V17::Resources::CampaignCriterion === res
|
4569
4569
|
raise ArgumentError.new(
|
4570
|
-
"Called #{__method__} with instance of wrong type:"\
|
4571
|
-
" #{res.class} want #{operation.update_class}"\
|
4570
|
+
"Called #{__method__} with instance of wrong type:" \
|
4571
|
+
" #{res.class} want #{operation.update_class}" \
|
4572
4572
|
" or String representing resource name"
|
4573
4573
|
)
|
4574
4574
|
end
|
4575
4575
|
end
|
4576
4576
|
|
4577
4577
|
op = Google::Ads::GoogleAds::V17::Services::CampaignCriterionOperation.new
|
4578
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4578
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4579
4579
|
op["update"] = res
|
4580
4580
|
op
|
4581
4581
|
end
|
@@ -4593,7 +4593,7 @@ module Google
|
|
4593
4593
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::CampaignDraft] a resource instance to update
|
4594
4594
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4595
4595
|
# @return [Google::Ads::GoogleAds::V17::Services::CampaignDraftOperation] the operation instance to update the resource
|
4596
|
-
def self.campaign_draft(resource_or_path, &
|
4596
|
+
def self.campaign_draft(resource_or_path, &)
|
4597
4597
|
require "google/ads/google_ads/v17/services/campaign_draft_service_pb"
|
4598
4598
|
res = case resource_or_path
|
4599
4599
|
when Google::Ads::GoogleAds::V17::Resources::CampaignDraft
|
@@ -4606,15 +4606,15 @@ module Google
|
|
4606
4606
|
else
|
4607
4607
|
unless Google::Ads::GoogleAds::V17::Resources::CampaignDraft === res
|
4608
4608
|
raise ArgumentError.new(
|
4609
|
-
"Called #{__method__} with instance of wrong type:"\
|
4610
|
-
" #{res.class} want #{operation.update_class}"\
|
4609
|
+
"Called #{__method__} with instance of wrong type:" \
|
4610
|
+
" #{res.class} want #{operation.update_class}" \
|
4611
4611
|
" or String representing resource name"
|
4612
4612
|
)
|
4613
4613
|
end
|
4614
4614
|
end
|
4615
4615
|
|
4616
4616
|
op = Google::Ads::GoogleAds::V17::Services::CampaignDraftOperation.new
|
4617
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4617
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4618
4618
|
op["update"] = res
|
4619
4619
|
op
|
4620
4620
|
end
|
@@ -4632,7 +4632,7 @@ module Google
|
|
4632
4632
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::CampaignExtensionSetting] a resource instance to update
|
4633
4633
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4634
4634
|
# @return [Google::Ads::GoogleAds::V17::Services::CampaignExtensionSettingOperation] the operation instance to update the resource
|
4635
|
-
def self.campaign_extension_setting(resource_or_path, &
|
4635
|
+
def self.campaign_extension_setting(resource_or_path, &)
|
4636
4636
|
require "google/ads/google_ads/v17/services/campaign_extension_setting_service_pb"
|
4637
4637
|
res = case resource_or_path
|
4638
4638
|
when Google::Ads::GoogleAds::V17::Resources::CampaignExtensionSetting
|
@@ -4645,15 +4645,15 @@ module Google
|
|
4645
4645
|
else
|
4646
4646
|
unless Google::Ads::GoogleAds::V17::Resources::CampaignExtensionSetting === res
|
4647
4647
|
raise ArgumentError.new(
|
4648
|
-
"Called #{__method__} with instance of wrong type:"\
|
4649
|
-
" #{res.class} want #{operation.update_class}"\
|
4648
|
+
"Called #{__method__} with instance of wrong type:" \
|
4649
|
+
" #{res.class} want #{operation.update_class}" \
|
4650
4650
|
" or String representing resource name"
|
4651
4651
|
)
|
4652
4652
|
end
|
4653
4653
|
end
|
4654
4654
|
|
4655
4655
|
op = Google::Ads::GoogleAds::V17::Services::CampaignExtensionSettingOperation.new
|
4656
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4656
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4657
4657
|
op["update"] = res
|
4658
4658
|
op
|
4659
4659
|
end
|
@@ -4671,7 +4671,7 @@ module Google
|
|
4671
4671
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::CampaignFeed] a resource instance to update
|
4672
4672
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4673
4673
|
# @return [Google::Ads::GoogleAds::V17::Services::CampaignFeedOperation] the operation instance to update the resource
|
4674
|
-
def self.campaign_feed(resource_or_path, &
|
4674
|
+
def self.campaign_feed(resource_or_path, &)
|
4675
4675
|
require "google/ads/google_ads/v17/services/campaign_feed_service_pb"
|
4676
4676
|
res = case resource_or_path
|
4677
4677
|
when Google::Ads::GoogleAds::V17::Resources::CampaignFeed
|
@@ -4684,15 +4684,15 @@ module Google
|
|
4684
4684
|
else
|
4685
4685
|
unless Google::Ads::GoogleAds::V17::Resources::CampaignFeed === res
|
4686
4686
|
raise ArgumentError.new(
|
4687
|
-
"Called #{__method__} with instance of wrong type:"\
|
4688
|
-
" #{res.class} want #{operation.update_class}"\
|
4687
|
+
"Called #{__method__} with instance of wrong type:" \
|
4688
|
+
" #{res.class} want #{operation.update_class}" \
|
4689
4689
|
" or String representing resource name"
|
4690
4690
|
)
|
4691
4691
|
end
|
4692
4692
|
end
|
4693
4693
|
|
4694
4694
|
op = Google::Ads::GoogleAds::V17::Services::CampaignFeedOperation.new
|
4695
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4695
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4696
4696
|
op["update"] = res
|
4697
4697
|
op
|
4698
4698
|
end
|
@@ -4710,7 +4710,7 @@ module Google
|
|
4710
4710
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::CampaignGroup] a resource instance to update
|
4711
4711
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4712
4712
|
# @return [Google::Ads::GoogleAds::V17::Services::CampaignGroupOperation] the operation instance to update the resource
|
4713
|
-
def self.campaign_group(resource_or_path, &
|
4713
|
+
def self.campaign_group(resource_or_path, &)
|
4714
4714
|
require "google/ads/google_ads/v17/services/campaign_group_service_pb"
|
4715
4715
|
res = case resource_or_path
|
4716
4716
|
when Google::Ads::GoogleAds::V17::Resources::CampaignGroup
|
@@ -4723,15 +4723,15 @@ module Google
|
|
4723
4723
|
else
|
4724
4724
|
unless Google::Ads::GoogleAds::V17::Resources::CampaignGroup === res
|
4725
4725
|
raise ArgumentError.new(
|
4726
|
-
"Called #{__method__} with instance of wrong type:"\
|
4727
|
-
" #{res.class} want #{operation.update_class}"\
|
4726
|
+
"Called #{__method__} with instance of wrong type:" \
|
4727
|
+
" #{res.class} want #{operation.update_class}" \
|
4728
4728
|
" or String representing resource name"
|
4729
4729
|
)
|
4730
4730
|
end
|
4731
4731
|
end
|
4732
4732
|
|
4733
4733
|
op = Google::Ads::GoogleAds::V17::Services::CampaignGroupOperation.new
|
4734
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4734
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4735
4735
|
op["update"] = res
|
4736
4736
|
op
|
4737
4737
|
end
|
@@ -4749,7 +4749,7 @@ module Google
|
|
4749
4749
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::Campaign] a resource instance to update
|
4750
4750
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4751
4751
|
# @return [Google::Ads::GoogleAds::V17::Services::CampaignOperation] the operation instance to update the resource
|
4752
|
-
def self.campaign(resource_or_path, &
|
4752
|
+
def self.campaign(resource_or_path, &)
|
4753
4753
|
require "google/ads/google_ads/v17/services/campaign_service_pb"
|
4754
4754
|
res = case resource_or_path
|
4755
4755
|
when Google::Ads::GoogleAds::V17::Resources::Campaign
|
@@ -4762,15 +4762,15 @@ module Google
|
|
4762
4762
|
else
|
4763
4763
|
unless Google::Ads::GoogleAds::V17::Resources::Campaign === res
|
4764
4764
|
raise ArgumentError.new(
|
4765
|
-
"Called #{__method__} with instance of wrong type:"\
|
4766
|
-
" #{res.class} want #{operation.update_class}"\
|
4765
|
+
"Called #{__method__} with instance of wrong type:" \
|
4766
|
+
" #{res.class} want #{operation.update_class}" \
|
4767
4767
|
" or String representing resource name"
|
4768
4768
|
)
|
4769
4769
|
end
|
4770
4770
|
end
|
4771
4771
|
|
4772
4772
|
op = Google::Ads::GoogleAds::V17::Services::CampaignOperation.new
|
4773
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4773
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4774
4774
|
op["update"] = res
|
4775
4775
|
op
|
4776
4776
|
end
|
@@ -4788,7 +4788,7 @@ module Google
|
|
4788
4788
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::ConversionAction] a resource instance to update
|
4789
4789
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4790
4790
|
# @return [Google::Ads::GoogleAds::V17::Services::ConversionActionOperation] the operation instance to update the resource
|
4791
|
-
def self.conversion_action(resource_or_path, &
|
4791
|
+
def self.conversion_action(resource_or_path, &)
|
4792
4792
|
require "google/ads/google_ads/v17/services/conversion_action_service_pb"
|
4793
4793
|
res = case resource_or_path
|
4794
4794
|
when Google::Ads::GoogleAds::V17::Resources::ConversionAction
|
@@ -4801,15 +4801,15 @@ module Google
|
|
4801
4801
|
else
|
4802
4802
|
unless Google::Ads::GoogleAds::V17::Resources::ConversionAction === res
|
4803
4803
|
raise ArgumentError.new(
|
4804
|
-
"Called #{__method__} with instance of wrong type:"\
|
4805
|
-
" #{res.class} want #{operation.update_class}"\
|
4804
|
+
"Called #{__method__} with instance of wrong type:" \
|
4805
|
+
" #{res.class} want #{operation.update_class}" \
|
4806
4806
|
" or String representing resource name"
|
4807
4807
|
)
|
4808
4808
|
end
|
4809
4809
|
end
|
4810
4810
|
|
4811
4811
|
op = Google::Ads::GoogleAds::V17::Services::ConversionActionOperation.new
|
4812
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4812
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4813
4813
|
op["update"] = res
|
4814
4814
|
op
|
4815
4815
|
end
|
@@ -4827,7 +4827,7 @@ module Google
|
|
4827
4827
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::ConversionCustomVariable] a resource instance to update
|
4828
4828
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4829
4829
|
# @return [Google::Ads::GoogleAds::V17::Services::ConversionCustomVariableOperation] the operation instance to update the resource
|
4830
|
-
def self.conversion_custom_variable(resource_or_path, &
|
4830
|
+
def self.conversion_custom_variable(resource_or_path, &)
|
4831
4831
|
require "google/ads/google_ads/v17/services/conversion_custom_variable_service_pb"
|
4832
4832
|
res = case resource_or_path
|
4833
4833
|
when Google::Ads::GoogleAds::V17::Resources::ConversionCustomVariable
|
@@ -4840,15 +4840,15 @@ module Google
|
|
4840
4840
|
else
|
4841
4841
|
unless Google::Ads::GoogleAds::V17::Resources::ConversionCustomVariable === res
|
4842
4842
|
raise ArgumentError.new(
|
4843
|
-
"Called #{__method__} with instance of wrong type:"\
|
4844
|
-
" #{res.class} want #{operation.update_class}"\
|
4843
|
+
"Called #{__method__} with instance of wrong type:" \
|
4844
|
+
" #{res.class} want #{operation.update_class}" \
|
4845
4845
|
" or String representing resource name"
|
4846
4846
|
)
|
4847
4847
|
end
|
4848
4848
|
end
|
4849
4849
|
|
4850
4850
|
op = Google::Ads::GoogleAds::V17::Services::ConversionCustomVariableOperation.new
|
4851
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4851
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4852
4852
|
op["update"] = res
|
4853
4853
|
op
|
4854
4854
|
end
|
@@ -4866,7 +4866,7 @@ module Google
|
|
4866
4866
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::ConversionGoalCampaignConfig] a resource instance to update
|
4867
4867
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4868
4868
|
# @return [Google::Ads::GoogleAds::V17::Services::ConversionGoalCampaignConfigOperation] the operation instance to update the resource
|
4869
|
-
def self.conversion_goal_campaign_config(resource_or_path, &
|
4869
|
+
def self.conversion_goal_campaign_config(resource_or_path, &)
|
4870
4870
|
require "google/ads/google_ads/v17/services/conversion_goal_campaign_config_service_pb"
|
4871
4871
|
res = case resource_or_path
|
4872
4872
|
when Google::Ads::GoogleAds::V17::Resources::ConversionGoalCampaignConfig
|
@@ -4879,15 +4879,15 @@ module Google
|
|
4879
4879
|
else
|
4880
4880
|
unless Google::Ads::GoogleAds::V17::Resources::ConversionGoalCampaignConfig === res
|
4881
4881
|
raise ArgumentError.new(
|
4882
|
-
"Called #{__method__} with instance of wrong type:"\
|
4883
|
-
" #{res.class} want #{operation.update_class}"\
|
4882
|
+
"Called #{__method__} with instance of wrong type:" \
|
4883
|
+
" #{res.class} want #{operation.update_class}" \
|
4884
4884
|
" or String representing resource name"
|
4885
4885
|
)
|
4886
4886
|
end
|
4887
4887
|
end
|
4888
4888
|
|
4889
4889
|
op = Google::Ads::GoogleAds::V17::Services::ConversionGoalCampaignConfigOperation.new
|
4890
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4890
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4891
4891
|
op["update"] = res
|
4892
4892
|
op
|
4893
4893
|
end
|
@@ -4905,7 +4905,7 @@ module Google
|
|
4905
4905
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::ConversionValueRule] a resource instance to update
|
4906
4906
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4907
4907
|
# @return [Google::Ads::GoogleAds::V17::Services::ConversionValueRuleOperation] the operation instance to update the resource
|
4908
|
-
def self.conversion_value_rule(resource_or_path, &
|
4908
|
+
def self.conversion_value_rule(resource_or_path, &)
|
4909
4909
|
require "google/ads/google_ads/v17/services/conversion_value_rule_service_pb"
|
4910
4910
|
res = case resource_or_path
|
4911
4911
|
when Google::Ads::GoogleAds::V17::Resources::ConversionValueRule
|
@@ -4918,15 +4918,15 @@ module Google
|
|
4918
4918
|
else
|
4919
4919
|
unless Google::Ads::GoogleAds::V17::Resources::ConversionValueRule === res
|
4920
4920
|
raise ArgumentError.new(
|
4921
|
-
"Called #{__method__} with instance of wrong type:"\
|
4922
|
-
" #{res.class} want #{operation.update_class}"\
|
4921
|
+
"Called #{__method__} with instance of wrong type:" \
|
4922
|
+
" #{res.class} want #{operation.update_class}" \
|
4923
4923
|
" or String representing resource name"
|
4924
4924
|
)
|
4925
4925
|
end
|
4926
4926
|
end
|
4927
4927
|
|
4928
4928
|
op = Google::Ads::GoogleAds::V17::Services::ConversionValueRuleOperation.new
|
4929
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4929
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4930
4930
|
op["update"] = res
|
4931
4931
|
op
|
4932
4932
|
end
|
@@ -4944,7 +4944,7 @@ module Google
|
|
4944
4944
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::ConversionValueRuleSet] a resource instance to update
|
4945
4945
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4946
4946
|
# @return [Google::Ads::GoogleAds::V17::Services::ConversionValueRuleSetOperation] the operation instance to update the resource
|
4947
|
-
def self.conversion_value_rule_set(resource_or_path, &
|
4947
|
+
def self.conversion_value_rule_set(resource_or_path, &)
|
4948
4948
|
require "google/ads/google_ads/v17/services/conversion_value_rule_set_service_pb"
|
4949
4949
|
res = case resource_or_path
|
4950
4950
|
when Google::Ads::GoogleAds::V17::Resources::ConversionValueRuleSet
|
@@ -4957,15 +4957,15 @@ module Google
|
|
4957
4957
|
else
|
4958
4958
|
unless Google::Ads::GoogleAds::V17::Resources::ConversionValueRuleSet === res
|
4959
4959
|
raise ArgumentError.new(
|
4960
|
-
"Called #{__method__} with instance of wrong type:"\
|
4961
|
-
" #{res.class} want #{operation.update_class}"\
|
4960
|
+
"Called #{__method__} with instance of wrong type:" \
|
4961
|
+
" #{res.class} want #{operation.update_class}" \
|
4962
4962
|
" or String representing resource name"
|
4963
4963
|
)
|
4964
4964
|
end
|
4965
4965
|
end
|
4966
4966
|
|
4967
4967
|
op = Google::Ads::GoogleAds::V17::Services::ConversionValueRuleSetOperation.new
|
4968
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4968
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4969
4969
|
op["update"] = res
|
4970
4970
|
op
|
4971
4971
|
end
|
@@ -4983,7 +4983,7 @@ module Google
|
|
4983
4983
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::CustomConversionGoal] a resource instance to update
|
4984
4984
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4985
4985
|
# @return [Google::Ads::GoogleAds::V17::Services::CustomConversionGoalOperation] the operation instance to update the resource
|
4986
|
-
def self.custom_conversion_goal(resource_or_path, &
|
4986
|
+
def self.custom_conversion_goal(resource_or_path, &)
|
4987
4987
|
require "google/ads/google_ads/v17/services/custom_conversion_goal_service_pb"
|
4988
4988
|
res = case resource_or_path
|
4989
4989
|
when Google::Ads::GoogleAds::V17::Resources::CustomConversionGoal
|
@@ -4996,15 +4996,15 @@ module Google
|
|
4996
4996
|
else
|
4997
4997
|
unless Google::Ads::GoogleAds::V17::Resources::CustomConversionGoal === res
|
4998
4998
|
raise ArgumentError.new(
|
4999
|
-
"Called #{__method__} with instance of wrong type:"\
|
5000
|
-
" #{res.class} want #{operation.update_class}"\
|
4999
|
+
"Called #{__method__} with instance of wrong type:" \
|
5000
|
+
" #{res.class} want #{operation.update_class}" \
|
5001
5001
|
" or String representing resource name"
|
5002
5002
|
)
|
5003
5003
|
end
|
5004
5004
|
end
|
5005
5005
|
|
5006
5006
|
op = Google::Ads::GoogleAds::V17::Services::CustomConversionGoalOperation.new
|
5007
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5007
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5008
5008
|
op["update"] = res
|
5009
5009
|
op
|
5010
5010
|
end
|
@@ -5022,7 +5022,7 @@ module Google
|
|
5022
5022
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::CustomerAsset] a resource instance to update
|
5023
5023
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5024
5024
|
# @return [Google::Ads::GoogleAds::V17::Services::CustomerAssetOperation] the operation instance to update the resource
|
5025
|
-
def self.customer_asset(resource_or_path, &
|
5025
|
+
def self.customer_asset(resource_or_path, &)
|
5026
5026
|
require "google/ads/google_ads/v17/services/customer_asset_service_pb"
|
5027
5027
|
res = case resource_or_path
|
5028
5028
|
when Google::Ads::GoogleAds::V17::Resources::CustomerAsset
|
@@ -5035,15 +5035,15 @@ module Google
|
|
5035
5035
|
else
|
5036
5036
|
unless Google::Ads::GoogleAds::V17::Resources::CustomerAsset === res
|
5037
5037
|
raise ArgumentError.new(
|
5038
|
-
"Called #{__method__} with instance of wrong type:"\
|
5039
|
-
" #{res.class} want #{operation.update_class}"\
|
5038
|
+
"Called #{__method__} with instance of wrong type:" \
|
5039
|
+
" #{res.class} want #{operation.update_class}" \
|
5040
5040
|
" or String representing resource name"
|
5041
5041
|
)
|
5042
5042
|
end
|
5043
5043
|
end
|
5044
5044
|
|
5045
5045
|
op = Google::Ads::GoogleAds::V17::Services::CustomerAssetOperation.new
|
5046
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5046
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5047
5047
|
op["update"] = res
|
5048
5048
|
op
|
5049
5049
|
end
|
@@ -5061,7 +5061,7 @@ module Google
|
|
5061
5061
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::CustomerConversionGoal] a resource instance to update
|
5062
5062
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5063
5063
|
# @return [Google::Ads::GoogleAds::V17::Services::CustomerConversionGoalOperation] the operation instance to update the resource
|
5064
|
-
def self.customer_conversion_goal(resource_or_path, &
|
5064
|
+
def self.customer_conversion_goal(resource_or_path, &)
|
5065
5065
|
require "google/ads/google_ads/v17/services/customer_conversion_goal_service_pb"
|
5066
5066
|
res = case resource_or_path
|
5067
5067
|
when Google::Ads::GoogleAds::V17::Resources::CustomerConversionGoal
|
@@ -5074,15 +5074,15 @@ module Google
|
|
5074
5074
|
else
|
5075
5075
|
unless Google::Ads::GoogleAds::V17::Resources::CustomerConversionGoal === res
|
5076
5076
|
raise ArgumentError.new(
|
5077
|
-
"Called #{__method__} with instance of wrong type:"\
|
5078
|
-
" #{res.class} want #{operation.update_class}"\
|
5077
|
+
"Called #{__method__} with instance of wrong type:" \
|
5078
|
+
" #{res.class} want #{operation.update_class}" \
|
5079
5079
|
" or String representing resource name"
|
5080
5080
|
)
|
5081
5081
|
end
|
5082
5082
|
end
|
5083
5083
|
|
5084
5084
|
op = Google::Ads::GoogleAds::V17::Services::CustomerConversionGoalOperation.new
|
5085
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5085
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5086
5086
|
op["update"] = res
|
5087
5087
|
op
|
5088
5088
|
end
|
@@ -5100,7 +5100,7 @@ module Google
|
|
5100
5100
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::CustomerExtensionSetting] a resource instance to update
|
5101
5101
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5102
5102
|
# @return [Google::Ads::GoogleAds::V17::Services::CustomerExtensionSettingOperation] the operation instance to update the resource
|
5103
|
-
def self.customer_extension_setting(resource_or_path, &
|
5103
|
+
def self.customer_extension_setting(resource_or_path, &)
|
5104
5104
|
require "google/ads/google_ads/v17/services/customer_extension_setting_service_pb"
|
5105
5105
|
res = case resource_or_path
|
5106
5106
|
when Google::Ads::GoogleAds::V17::Resources::CustomerExtensionSetting
|
@@ -5113,15 +5113,15 @@ module Google
|
|
5113
5113
|
else
|
5114
5114
|
unless Google::Ads::GoogleAds::V17::Resources::CustomerExtensionSetting === res
|
5115
5115
|
raise ArgumentError.new(
|
5116
|
-
"Called #{__method__} with instance of wrong type:"\
|
5117
|
-
" #{res.class} want #{operation.update_class}"\
|
5116
|
+
"Called #{__method__} with instance of wrong type:" \
|
5117
|
+
" #{res.class} want #{operation.update_class}" \
|
5118
5118
|
" or String representing resource name"
|
5119
5119
|
)
|
5120
5120
|
end
|
5121
5121
|
end
|
5122
5122
|
|
5123
5123
|
op = Google::Ads::GoogleAds::V17::Services::CustomerExtensionSettingOperation.new
|
5124
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5124
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5125
5125
|
op["update"] = res
|
5126
5126
|
op
|
5127
5127
|
end
|
@@ -5139,7 +5139,7 @@ module Google
|
|
5139
5139
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::CustomerFeed] a resource instance to update
|
5140
5140
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5141
5141
|
# @return [Google::Ads::GoogleAds::V17::Services::CustomerFeedOperation] the operation instance to update the resource
|
5142
|
-
def self.customer_feed(resource_or_path, &
|
5142
|
+
def self.customer_feed(resource_or_path, &)
|
5143
5143
|
require "google/ads/google_ads/v17/services/customer_feed_service_pb"
|
5144
5144
|
res = case resource_or_path
|
5145
5145
|
when Google::Ads::GoogleAds::V17::Resources::CustomerFeed
|
@@ -5152,15 +5152,15 @@ module Google
|
|
5152
5152
|
else
|
5153
5153
|
unless Google::Ads::GoogleAds::V17::Resources::CustomerFeed === res
|
5154
5154
|
raise ArgumentError.new(
|
5155
|
-
"Called #{__method__} with instance of wrong type:"\
|
5156
|
-
" #{res.class} want #{operation.update_class}"\
|
5155
|
+
"Called #{__method__} with instance of wrong type:" \
|
5156
|
+
" #{res.class} want #{operation.update_class}" \
|
5157
5157
|
" or String representing resource name"
|
5158
5158
|
)
|
5159
5159
|
end
|
5160
5160
|
end
|
5161
5161
|
|
5162
5162
|
op = Google::Ads::GoogleAds::V17::Services::CustomerFeedOperation.new
|
5163
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5163
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5164
5164
|
op["update"] = res
|
5165
5165
|
op
|
5166
5166
|
end
|
@@ -5178,7 +5178,7 @@ module Google
|
|
5178
5178
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::Customer] a resource instance to update
|
5179
5179
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5180
5180
|
# @return [Google::Ads::GoogleAds::V17::Services::CustomerOperation] the operation instance to update the resource
|
5181
|
-
def self.customer(resource_or_path, &
|
5181
|
+
def self.customer(resource_or_path, &)
|
5182
5182
|
require "google/ads/google_ads/v17/services/customer_service_pb"
|
5183
5183
|
res = case resource_or_path
|
5184
5184
|
when Google::Ads::GoogleAds::V17::Resources::Customer
|
@@ -5191,15 +5191,15 @@ module Google
|
|
5191
5191
|
else
|
5192
5192
|
unless Google::Ads::GoogleAds::V17::Resources::Customer === res
|
5193
5193
|
raise ArgumentError.new(
|
5194
|
-
"Called #{__method__} with instance of wrong type:"\
|
5195
|
-
" #{res.class} want #{operation.update_class}"\
|
5194
|
+
"Called #{__method__} with instance of wrong type:" \
|
5195
|
+
" #{res.class} want #{operation.update_class}" \
|
5196
5196
|
" or String representing resource name"
|
5197
5197
|
)
|
5198
5198
|
end
|
5199
5199
|
end
|
5200
5200
|
|
5201
5201
|
op = Google::Ads::GoogleAds::V17::Services::CustomerOperation.new
|
5202
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5202
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5203
5203
|
op["update"] = res
|
5204
5204
|
op
|
5205
5205
|
end
|
@@ -5217,7 +5217,7 @@ module Google
|
|
5217
5217
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::ExperimentArm] a resource instance to update
|
5218
5218
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5219
5219
|
# @return [Google::Ads::GoogleAds::V17::Services::ExperimentArmOperation] the operation instance to update the resource
|
5220
|
-
def self.experiment_arm(resource_or_path, &
|
5220
|
+
def self.experiment_arm(resource_or_path, &)
|
5221
5221
|
require "google/ads/google_ads/v17/services/experiment_arm_service_pb"
|
5222
5222
|
res = case resource_or_path
|
5223
5223
|
when Google::Ads::GoogleAds::V17::Resources::ExperimentArm
|
@@ -5230,15 +5230,15 @@ module Google
|
|
5230
5230
|
else
|
5231
5231
|
unless Google::Ads::GoogleAds::V17::Resources::ExperimentArm === res
|
5232
5232
|
raise ArgumentError.new(
|
5233
|
-
"Called #{__method__} with instance of wrong type:"\
|
5234
|
-
" #{res.class} want #{operation.update_class}"\
|
5233
|
+
"Called #{__method__} with instance of wrong type:" \
|
5234
|
+
" #{res.class} want #{operation.update_class}" \
|
5235
5235
|
" or String representing resource name"
|
5236
5236
|
)
|
5237
5237
|
end
|
5238
5238
|
end
|
5239
5239
|
|
5240
5240
|
op = Google::Ads::GoogleAds::V17::Services::ExperimentArmOperation.new
|
5241
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5241
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5242
5242
|
op["update"] = res
|
5243
5243
|
op
|
5244
5244
|
end
|
@@ -5256,7 +5256,7 @@ module Google
|
|
5256
5256
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::Experiment] a resource instance to update
|
5257
5257
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5258
5258
|
# @return [Google::Ads::GoogleAds::V17::Services::ExperimentOperation] the operation instance to update the resource
|
5259
|
-
def self.experiment(resource_or_path, &
|
5259
|
+
def self.experiment(resource_or_path, &)
|
5260
5260
|
require "google/ads/google_ads/v17/services/experiment_service_pb"
|
5261
5261
|
res = case resource_or_path
|
5262
5262
|
when Google::Ads::GoogleAds::V17::Resources::Experiment
|
@@ -5269,15 +5269,15 @@ module Google
|
|
5269
5269
|
else
|
5270
5270
|
unless Google::Ads::GoogleAds::V17::Resources::Experiment === res
|
5271
5271
|
raise ArgumentError.new(
|
5272
|
-
"Called #{__method__} with instance of wrong type:"\
|
5273
|
-
" #{res.class} want #{operation.update_class}"\
|
5272
|
+
"Called #{__method__} with instance of wrong type:" \
|
5273
|
+
" #{res.class} want #{operation.update_class}" \
|
5274
5274
|
" or String representing resource name"
|
5275
5275
|
)
|
5276
5276
|
end
|
5277
5277
|
end
|
5278
5278
|
|
5279
5279
|
op = Google::Ads::GoogleAds::V17::Services::ExperimentOperation.new
|
5280
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5280
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5281
5281
|
op["update"] = res
|
5282
5282
|
op
|
5283
5283
|
end
|
@@ -5295,7 +5295,7 @@ module Google
|
|
5295
5295
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::ExtensionFeedItem] a resource instance to update
|
5296
5296
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5297
5297
|
# @return [Google::Ads::GoogleAds::V17::Services::ExtensionFeedItemOperation] the operation instance to update the resource
|
5298
|
-
def self.extension_feed_item(resource_or_path, &
|
5298
|
+
def self.extension_feed_item(resource_or_path, &)
|
5299
5299
|
require "google/ads/google_ads/v17/services/extension_feed_item_service_pb"
|
5300
5300
|
res = case resource_or_path
|
5301
5301
|
when Google::Ads::GoogleAds::V17::Resources::ExtensionFeedItem
|
@@ -5308,15 +5308,15 @@ module Google
|
|
5308
5308
|
else
|
5309
5309
|
unless Google::Ads::GoogleAds::V17::Resources::ExtensionFeedItem === res
|
5310
5310
|
raise ArgumentError.new(
|
5311
|
-
"Called #{__method__} with instance of wrong type:"\
|
5312
|
-
" #{res.class} want #{operation.update_class}"\
|
5311
|
+
"Called #{__method__} with instance of wrong type:" \
|
5312
|
+
" #{res.class} want #{operation.update_class}" \
|
5313
5313
|
" or String representing resource name"
|
5314
5314
|
)
|
5315
5315
|
end
|
5316
5316
|
end
|
5317
5317
|
|
5318
5318
|
op = Google::Ads::GoogleAds::V17::Services::ExtensionFeedItemOperation.new
|
5319
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5319
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5320
5320
|
op["update"] = res
|
5321
5321
|
op
|
5322
5322
|
end
|
@@ -5334,7 +5334,7 @@ module Google
|
|
5334
5334
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::FeedItem] a resource instance to update
|
5335
5335
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5336
5336
|
# @return [Google::Ads::GoogleAds::V17::Services::FeedItemOperation] the operation instance to update the resource
|
5337
|
-
def self.feed_item(resource_or_path, &
|
5337
|
+
def self.feed_item(resource_or_path, &)
|
5338
5338
|
require "google/ads/google_ads/v17/services/feed_item_service_pb"
|
5339
5339
|
res = case resource_or_path
|
5340
5340
|
when Google::Ads::GoogleAds::V17::Resources::FeedItem
|
@@ -5347,15 +5347,15 @@ module Google
|
|
5347
5347
|
else
|
5348
5348
|
unless Google::Ads::GoogleAds::V17::Resources::FeedItem === res
|
5349
5349
|
raise ArgumentError.new(
|
5350
|
-
"Called #{__method__} with instance of wrong type:"\
|
5351
|
-
" #{res.class} want #{operation.update_class}"\
|
5350
|
+
"Called #{__method__} with instance of wrong type:" \
|
5351
|
+
" #{res.class} want #{operation.update_class}" \
|
5352
5352
|
" or String representing resource name"
|
5353
5353
|
)
|
5354
5354
|
end
|
5355
5355
|
end
|
5356
5356
|
|
5357
5357
|
op = Google::Ads::GoogleAds::V17::Services::FeedItemOperation.new
|
5358
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5358
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5359
5359
|
op["update"] = res
|
5360
5360
|
op
|
5361
5361
|
end
|
@@ -5373,7 +5373,7 @@ module Google
|
|
5373
5373
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::FeedItemSet] a resource instance to update
|
5374
5374
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5375
5375
|
# @return [Google::Ads::GoogleAds::V17::Services::FeedItemSetOperation] the operation instance to update the resource
|
5376
|
-
def self.feed_item_set(resource_or_path, &
|
5376
|
+
def self.feed_item_set(resource_or_path, &)
|
5377
5377
|
require "google/ads/google_ads/v17/services/feed_item_set_service_pb"
|
5378
5378
|
res = case resource_or_path
|
5379
5379
|
when Google::Ads::GoogleAds::V17::Resources::FeedItemSet
|
@@ -5386,15 +5386,15 @@ module Google
|
|
5386
5386
|
else
|
5387
5387
|
unless Google::Ads::GoogleAds::V17::Resources::FeedItemSet === res
|
5388
5388
|
raise ArgumentError.new(
|
5389
|
-
"Called #{__method__} with instance of wrong type:"\
|
5390
|
-
" #{res.class} want #{operation.update_class}"\
|
5389
|
+
"Called #{__method__} with instance of wrong type:" \
|
5390
|
+
" #{res.class} want #{operation.update_class}" \
|
5391
5391
|
" or String representing resource name"
|
5392
5392
|
)
|
5393
5393
|
end
|
5394
5394
|
end
|
5395
5395
|
|
5396
5396
|
op = Google::Ads::GoogleAds::V17::Services::FeedItemSetOperation.new
|
5397
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5397
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5398
5398
|
op["update"] = res
|
5399
5399
|
op
|
5400
5400
|
end
|
@@ -5412,7 +5412,7 @@ module Google
|
|
5412
5412
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::Feed] a resource instance to update
|
5413
5413
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5414
5414
|
# @return [Google::Ads::GoogleAds::V17::Services::FeedOperation] the operation instance to update the resource
|
5415
|
-
def self.feed(resource_or_path, &
|
5415
|
+
def self.feed(resource_or_path, &)
|
5416
5416
|
require "google/ads/google_ads/v17/services/feed_service_pb"
|
5417
5417
|
res = case resource_or_path
|
5418
5418
|
when Google::Ads::GoogleAds::V17::Resources::Feed
|
@@ -5425,15 +5425,15 @@ module Google
|
|
5425
5425
|
else
|
5426
5426
|
unless Google::Ads::GoogleAds::V17::Resources::Feed === res
|
5427
5427
|
raise ArgumentError.new(
|
5428
|
-
"Called #{__method__} with instance of wrong type:"\
|
5429
|
-
" #{res.class} want #{operation.update_class}"\
|
5428
|
+
"Called #{__method__} with instance of wrong type:" \
|
5429
|
+
" #{res.class} want #{operation.update_class}" \
|
5430
5430
|
" or String representing resource name"
|
5431
5431
|
)
|
5432
5432
|
end
|
5433
5433
|
end
|
5434
5434
|
|
5435
5435
|
op = Google::Ads::GoogleAds::V17::Services::FeedOperation.new
|
5436
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5436
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5437
5437
|
op["update"] = res
|
5438
5438
|
op
|
5439
5439
|
end
|
@@ -5451,7 +5451,7 @@ module Google
|
|
5451
5451
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::KeywordPlanAdGroupKeyword] a resource instance to update
|
5452
5452
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5453
5453
|
# @return [Google::Ads::GoogleAds::V17::Services::KeywordPlanAdGroupKeywordOperation] the operation instance to update the resource
|
5454
|
-
def self.keyword_plan_ad_group_keyword(resource_or_path, &
|
5454
|
+
def self.keyword_plan_ad_group_keyword(resource_or_path, &)
|
5455
5455
|
require "google/ads/google_ads/v17/services/keyword_plan_ad_group_keyword_service_pb"
|
5456
5456
|
res = case resource_or_path
|
5457
5457
|
when Google::Ads::GoogleAds::V17::Resources::KeywordPlanAdGroupKeyword
|
@@ -5464,15 +5464,15 @@ module Google
|
|
5464
5464
|
else
|
5465
5465
|
unless Google::Ads::GoogleAds::V17::Resources::KeywordPlanAdGroupKeyword === res
|
5466
5466
|
raise ArgumentError.new(
|
5467
|
-
"Called #{__method__} with instance of wrong type:"\
|
5468
|
-
" #{res.class} want #{operation.update_class}"\
|
5467
|
+
"Called #{__method__} with instance of wrong type:" \
|
5468
|
+
" #{res.class} want #{operation.update_class}" \
|
5469
5469
|
" or String representing resource name"
|
5470
5470
|
)
|
5471
5471
|
end
|
5472
5472
|
end
|
5473
5473
|
|
5474
5474
|
op = Google::Ads::GoogleAds::V17::Services::KeywordPlanAdGroupKeywordOperation.new
|
5475
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5475
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5476
5476
|
op["update"] = res
|
5477
5477
|
op
|
5478
5478
|
end
|
@@ -5490,7 +5490,7 @@ module Google
|
|
5490
5490
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::KeywordPlanAdGroup] a resource instance to update
|
5491
5491
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5492
5492
|
# @return [Google::Ads::GoogleAds::V17::Services::KeywordPlanAdGroupOperation] the operation instance to update the resource
|
5493
|
-
def self.keyword_plan_ad_group(resource_or_path, &
|
5493
|
+
def self.keyword_plan_ad_group(resource_or_path, &)
|
5494
5494
|
require "google/ads/google_ads/v17/services/keyword_plan_ad_group_service_pb"
|
5495
5495
|
res = case resource_or_path
|
5496
5496
|
when Google::Ads::GoogleAds::V17::Resources::KeywordPlanAdGroup
|
@@ -5503,15 +5503,15 @@ module Google
|
|
5503
5503
|
else
|
5504
5504
|
unless Google::Ads::GoogleAds::V17::Resources::KeywordPlanAdGroup === res
|
5505
5505
|
raise ArgumentError.new(
|
5506
|
-
"Called #{__method__} with instance of wrong type:"\
|
5507
|
-
" #{res.class} want #{operation.update_class}"\
|
5506
|
+
"Called #{__method__} with instance of wrong type:" \
|
5507
|
+
" #{res.class} want #{operation.update_class}" \
|
5508
5508
|
" or String representing resource name"
|
5509
5509
|
)
|
5510
5510
|
end
|
5511
5511
|
end
|
5512
5512
|
|
5513
5513
|
op = Google::Ads::GoogleAds::V17::Services::KeywordPlanAdGroupOperation.new
|
5514
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5514
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5515
5515
|
op["update"] = res
|
5516
5516
|
op
|
5517
5517
|
end
|
@@ -5529,7 +5529,7 @@ module Google
|
|
5529
5529
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::KeywordPlanCampaignKeyword] a resource instance to update
|
5530
5530
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5531
5531
|
# @return [Google::Ads::GoogleAds::V17::Services::KeywordPlanCampaignKeywordOperation] the operation instance to update the resource
|
5532
|
-
def self.keyword_plan_campaign_keyword(resource_or_path, &
|
5532
|
+
def self.keyword_plan_campaign_keyword(resource_or_path, &)
|
5533
5533
|
require "google/ads/google_ads/v17/services/keyword_plan_campaign_keyword_service_pb"
|
5534
5534
|
res = case resource_or_path
|
5535
5535
|
when Google::Ads::GoogleAds::V17::Resources::KeywordPlanCampaignKeyword
|
@@ -5542,15 +5542,15 @@ module Google
|
|
5542
5542
|
else
|
5543
5543
|
unless Google::Ads::GoogleAds::V17::Resources::KeywordPlanCampaignKeyword === res
|
5544
5544
|
raise ArgumentError.new(
|
5545
|
-
"Called #{__method__} with instance of wrong type:"\
|
5546
|
-
" #{res.class} want #{operation.update_class}"\
|
5545
|
+
"Called #{__method__} with instance of wrong type:" \
|
5546
|
+
" #{res.class} want #{operation.update_class}" \
|
5547
5547
|
" or String representing resource name"
|
5548
5548
|
)
|
5549
5549
|
end
|
5550
5550
|
end
|
5551
5551
|
|
5552
5552
|
op = Google::Ads::GoogleAds::V17::Services::KeywordPlanCampaignKeywordOperation.new
|
5553
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5553
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5554
5554
|
op["update"] = res
|
5555
5555
|
op
|
5556
5556
|
end
|
@@ -5568,7 +5568,7 @@ module Google
|
|
5568
5568
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::KeywordPlanCampaign] a resource instance to update
|
5569
5569
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5570
5570
|
# @return [Google::Ads::GoogleAds::V17::Services::KeywordPlanCampaignOperation] the operation instance to update the resource
|
5571
|
-
def self.keyword_plan_campaign(resource_or_path, &
|
5571
|
+
def self.keyword_plan_campaign(resource_or_path, &)
|
5572
5572
|
require "google/ads/google_ads/v17/services/keyword_plan_campaign_service_pb"
|
5573
5573
|
res = case resource_or_path
|
5574
5574
|
when Google::Ads::GoogleAds::V17::Resources::KeywordPlanCampaign
|
@@ -5581,15 +5581,15 @@ module Google
|
|
5581
5581
|
else
|
5582
5582
|
unless Google::Ads::GoogleAds::V17::Resources::KeywordPlanCampaign === res
|
5583
5583
|
raise ArgumentError.new(
|
5584
|
-
"Called #{__method__} with instance of wrong type:"\
|
5585
|
-
" #{res.class} want #{operation.update_class}"\
|
5584
|
+
"Called #{__method__} with instance of wrong type:" \
|
5585
|
+
" #{res.class} want #{operation.update_class}" \
|
5586
5586
|
" or String representing resource name"
|
5587
5587
|
)
|
5588
5588
|
end
|
5589
5589
|
end
|
5590
5590
|
|
5591
5591
|
op = Google::Ads::GoogleAds::V17::Services::KeywordPlanCampaignOperation.new
|
5592
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5592
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5593
5593
|
op["update"] = res
|
5594
5594
|
op
|
5595
5595
|
end
|
@@ -5607,7 +5607,7 @@ module Google
|
|
5607
5607
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::KeywordPlan] a resource instance to update
|
5608
5608
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5609
5609
|
# @return [Google::Ads::GoogleAds::V17::Services::KeywordPlanOperation] the operation instance to update the resource
|
5610
|
-
def self.keyword_plan(resource_or_path, &
|
5610
|
+
def self.keyword_plan(resource_or_path, &)
|
5611
5611
|
require "google/ads/google_ads/v17/services/keyword_plan_service_pb"
|
5612
5612
|
res = case resource_or_path
|
5613
5613
|
when Google::Ads::GoogleAds::V17::Resources::KeywordPlan
|
@@ -5620,15 +5620,15 @@ module Google
|
|
5620
5620
|
else
|
5621
5621
|
unless Google::Ads::GoogleAds::V17::Resources::KeywordPlan === res
|
5622
5622
|
raise ArgumentError.new(
|
5623
|
-
"Called #{__method__} with instance of wrong type:"\
|
5624
|
-
" #{res.class} want #{operation.update_class}"\
|
5623
|
+
"Called #{__method__} with instance of wrong type:" \
|
5624
|
+
" #{res.class} want #{operation.update_class}" \
|
5625
5625
|
" or String representing resource name"
|
5626
5626
|
)
|
5627
5627
|
end
|
5628
5628
|
end
|
5629
5629
|
|
5630
5630
|
op = Google::Ads::GoogleAds::V17::Services::KeywordPlanOperation.new
|
5631
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5631
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5632
5632
|
op["update"] = res
|
5633
5633
|
op
|
5634
5634
|
end
|
@@ -5646,7 +5646,7 @@ module Google
|
|
5646
5646
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::Label] a resource instance to update
|
5647
5647
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5648
5648
|
# @return [Google::Ads::GoogleAds::V17::Services::LabelOperation] the operation instance to update the resource
|
5649
|
-
def self.label(resource_or_path, &
|
5649
|
+
def self.label(resource_or_path, &)
|
5650
5650
|
require "google/ads/google_ads/v17/services/label_service_pb"
|
5651
5651
|
res = case resource_or_path
|
5652
5652
|
when Google::Ads::GoogleAds::V17::Resources::Label
|
@@ -5659,15 +5659,15 @@ module Google
|
|
5659
5659
|
else
|
5660
5660
|
unless Google::Ads::GoogleAds::V17::Resources::Label === res
|
5661
5661
|
raise ArgumentError.new(
|
5662
|
-
"Called #{__method__} with instance of wrong type:"\
|
5663
|
-
" #{res.class} want #{operation.update_class}"\
|
5662
|
+
"Called #{__method__} with instance of wrong type:" \
|
5663
|
+
" #{res.class} want #{operation.update_class}" \
|
5664
5664
|
" or String representing resource name"
|
5665
5665
|
)
|
5666
5666
|
end
|
5667
5667
|
end
|
5668
5668
|
|
5669
5669
|
op = Google::Ads::GoogleAds::V17::Services::LabelOperation.new
|
5670
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5670
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5671
5671
|
op["update"] = res
|
5672
5672
|
op
|
5673
5673
|
end
|
@@ -5685,7 +5685,7 @@ module Google
|
|
5685
5685
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::RecommendationSubscription] a resource instance to update
|
5686
5686
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5687
5687
|
# @return [Google::Ads::GoogleAds::V17::Services::RecommendationSubscriptionOperation] the operation instance to update the resource
|
5688
|
-
def self.recommendation_subscription(resource_or_path, &
|
5688
|
+
def self.recommendation_subscription(resource_or_path, &)
|
5689
5689
|
require "google/ads/google_ads/v17/services/recommendation_subscription_service_pb"
|
5690
5690
|
res = case resource_or_path
|
5691
5691
|
when Google::Ads::GoogleAds::V17::Resources::RecommendationSubscription
|
@@ -5698,15 +5698,15 @@ module Google
|
|
5698
5698
|
else
|
5699
5699
|
unless Google::Ads::GoogleAds::V17::Resources::RecommendationSubscription === res
|
5700
5700
|
raise ArgumentError.new(
|
5701
|
-
"Called #{__method__} with instance of wrong type:"\
|
5702
|
-
" #{res.class} want #{operation.update_class}"\
|
5701
|
+
"Called #{__method__} with instance of wrong type:" \
|
5702
|
+
" #{res.class} want #{operation.update_class}" \
|
5703
5703
|
" or String representing resource name"
|
5704
5704
|
)
|
5705
5705
|
end
|
5706
5706
|
end
|
5707
5707
|
|
5708
5708
|
op = Google::Ads::GoogleAds::V17::Services::RecommendationSubscriptionOperation.new
|
5709
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5709
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5710
5710
|
op["update"] = res
|
5711
5711
|
op
|
5712
5712
|
end
|
@@ -5724,7 +5724,7 @@ module Google
|
|
5724
5724
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::RemarketingAction] a resource instance to update
|
5725
5725
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5726
5726
|
# @return [Google::Ads::GoogleAds::V17::Services::RemarketingActionOperation] the operation instance to update the resource
|
5727
|
-
def self.remarketing_action(resource_or_path, &
|
5727
|
+
def self.remarketing_action(resource_or_path, &)
|
5728
5728
|
require "google/ads/google_ads/v17/services/remarketing_action_service_pb"
|
5729
5729
|
res = case resource_or_path
|
5730
5730
|
when Google::Ads::GoogleAds::V17::Resources::RemarketingAction
|
@@ -5737,15 +5737,15 @@ module Google
|
|
5737
5737
|
else
|
5738
5738
|
unless Google::Ads::GoogleAds::V17::Resources::RemarketingAction === res
|
5739
5739
|
raise ArgumentError.new(
|
5740
|
-
"Called #{__method__} with instance of wrong type:"\
|
5741
|
-
" #{res.class} want #{operation.update_class}"\
|
5740
|
+
"Called #{__method__} with instance of wrong type:" \
|
5741
|
+
" #{res.class} want #{operation.update_class}" \
|
5742
5742
|
" or String representing resource name"
|
5743
5743
|
)
|
5744
5744
|
end
|
5745
5745
|
end
|
5746
5746
|
|
5747
5747
|
op = Google::Ads::GoogleAds::V17::Services::RemarketingActionOperation.new
|
5748
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5748
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5749
5749
|
op["update"] = res
|
5750
5750
|
op
|
5751
5751
|
end
|
@@ -5763,7 +5763,7 @@ module Google
|
|
5763
5763
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::SharedSet] a resource instance to update
|
5764
5764
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5765
5765
|
# @return [Google::Ads::GoogleAds::V17::Services::SharedSetOperation] the operation instance to update the resource
|
5766
|
-
def self.shared_set(resource_or_path, &
|
5766
|
+
def self.shared_set(resource_or_path, &)
|
5767
5767
|
require "google/ads/google_ads/v17/services/shared_set_service_pb"
|
5768
5768
|
res = case resource_or_path
|
5769
5769
|
when Google::Ads::GoogleAds::V17::Resources::SharedSet
|
@@ -5776,15 +5776,15 @@ module Google
|
|
5776
5776
|
else
|
5777
5777
|
unless Google::Ads::GoogleAds::V17::Resources::SharedSet === res
|
5778
5778
|
raise ArgumentError.new(
|
5779
|
-
"Called #{__method__} with instance of wrong type:"\
|
5780
|
-
" #{res.class} want #{operation.update_class}"\
|
5779
|
+
"Called #{__method__} with instance of wrong type:" \
|
5780
|
+
" #{res.class} want #{operation.update_class}" \
|
5781
5781
|
" or String representing resource name"
|
5782
5782
|
)
|
5783
5783
|
end
|
5784
5784
|
end
|
5785
5785
|
|
5786
5786
|
op = Google::Ads::GoogleAds::V17::Services::SharedSetOperation.new
|
5787
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5787
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5788
5788
|
op["update"] = res
|
5789
5789
|
op
|
5790
5790
|
end
|
@@ -5802,7 +5802,7 @@ module Google
|
|
5802
5802
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::SmartCampaignSetting] a resource instance to update
|
5803
5803
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5804
5804
|
# @return [Google::Ads::GoogleAds::V17::Services::SmartCampaignSettingOperation] the operation instance to update the resource
|
5805
|
-
def self.smart_campaign_setting(resource_or_path, &
|
5805
|
+
def self.smart_campaign_setting(resource_or_path, &)
|
5806
5806
|
require "google/ads/google_ads/v17/services/smart_campaign_setting_service_pb"
|
5807
5807
|
res = case resource_or_path
|
5808
5808
|
when Google::Ads::GoogleAds::V17::Resources::SmartCampaignSetting
|
@@ -5815,15 +5815,15 @@ module Google
|
|
5815
5815
|
else
|
5816
5816
|
unless Google::Ads::GoogleAds::V17::Resources::SmartCampaignSetting === res
|
5817
5817
|
raise ArgumentError.new(
|
5818
|
-
"Called #{__method__} with instance of wrong type:"\
|
5819
|
-
" #{res.class} want #{operation.update_class}"\
|
5818
|
+
"Called #{__method__} with instance of wrong type:" \
|
5819
|
+
" #{res.class} want #{operation.update_class}" \
|
5820
5820
|
" or String representing resource name"
|
5821
5821
|
)
|
5822
5822
|
end
|
5823
5823
|
end
|
5824
5824
|
|
5825
5825
|
op = Google::Ads::GoogleAds::V17::Services::SmartCampaignSettingOperation.new
|
5826
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5826
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5827
5827
|
op["update"] = res
|
5828
5828
|
op
|
5829
5829
|
end
|
@@ -5841,7 +5841,7 @@ module Google
|
|
5841
5841
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::UserList] a resource instance to update
|
5842
5842
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5843
5843
|
# @return [Google::Ads::GoogleAds::V17::Services::UserListOperation] the operation instance to update the resource
|
5844
|
-
def self.user_list(resource_or_path, &
|
5844
|
+
def self.user_list(resource_or_path, &)
|
5845
5845
|
require "google/ads/google_ads/v17/services/user_list_service_pb"
|
5846
5846
|
res = case resource_or_path
|
5847
5847
|
when Google::Ads::GoogleAds::V17::Resources::UserList
|
@@ -5854,15 +5854,15 @@ module Google
|
|
5854
5854
|
else
|
5855
5855
|
unless Google::Ads::GoogleAds::V17::Resources::UserList === res
|
5856
5856
|
raise ArgumentError.new(
|
5857
|
-
"Called #{__method__} with instance of wrong type:"\
|
5858
|
-
" #{res.class} want #{operation.update_class}"\
|
5857
|
+
"Called #{__method__} with instance of wrong type:" \
|
5858
|
+
" #{res.class} want #{operation.update_class}" \
|
5859
5859
|
" or String representing resource name"
|
5860
5860
|
)
|
5861
5861
|
end
|
5862
5862
|
end
|
5863
5863
|
|
5864
5864
|
op = Google::Ads::GoogleAds::V17::Services::UserListOperation.new
|
5865
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5865
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5866
5866
|
op["update"] = res
|
5867
5867
|
op
|
5868
5868
|
end
|
@@ -5880,7 +5880,7 @@ module Google
|
|
5880
5880
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::CampaignLifecycleGoal] a resource instance to update
|
5881
5881
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5882
5882
|
# @return [Google::Ads::GoogleAds::V17::Services::CampaignLifecycleGoalOperation] the operation instance to update the resource
|
5883
|
-
def self.campaign_lifecycle_goal(resource_or_path, &
|
5883
|
+
def self.campaign_lifecycle_goal(resource_or_path, &)
|
5884
5884
|
require "google/ads/google_ads/v17/services/campaign_lifecycle_goal_service_pb"
|
5885
5885
|
res = case resource_or_path
|
5886
5886
|
when Google::Ads::GoogleAds::V17::Resources::CampaignLifecycleGoal
|
@@ -5893,15 +5893,15 @@ module Google
|
|
5893
5893
|
else
|
5894
5894
|
unless Google::Ads::GoogleAds::V17::Resources::CampaignLifecycleGoal === res
|
5895
5895
|
raise ArgumentError.new(
|
5896
|
-
"Called #{__method__} with instance of wrong type:"\
|
5897
|
-
" #{res.class} want #{operation.update_class}"\
|
5896
|
+
"Called #{__method__} with instance of wrong type:" \
|
5897
|
+
" #{res.class} want #{operation.update_class}" \
|
5898
5898
|
" or String representing resource name"
|
5899
5899
|
)
|
5900
5900
|
end
|
5901
5901
|
end
|
5902
5902
|
|
5903
5903
|
op = Google::Ads::GoogleAds::V17::Services::CampaignLifecycleGoalOperation.new
|
5904
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5904
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5905
5905
|
op["update"] = res
|
5906
5906
|
op
|
5907
5907
|
end
|
@@ -5919,7 +5919,7 @@ module Google
|
|
5919
5919
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::CustomAudience] a resource instance to update
|
5920
5920
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5921
5921
|
# @return [Google::Ads::GoogleAds::V17::Services::CustomAudienceOperation] the operation instance to update the resource
|
5922
|
-
def self.custom_audience(resource_or_path, &
|
5922
|
+
def self.custom_audience(resource_or_path, &)
|
5923
5923
|
require "google/ads/google_ads/v17/services/custom_audience_service_pb"
|
5924
5924
|
res = case resource_or_path
|
5925
5925
|
when Google::Ads::GoogleAds::V17::Resources::CustomAudience
|
@@ -5932,15 +5932,15 @@ module Google
|
|
5932
5932
|
else
|
5933
5933
|
unless Google::Ads::GoogleAds::V17::Resources::CustomAudience === res
|
5934
5934
|
raise ArgumentError.new(
|
5935
|
-
"Called #{__method__} with instance of wrong type:"\
|
5936
|
-
" #{res.class} want #{operation.update_class}"\
|
5935
|
+
"Called #{__method__} with instance of wrong type:" \
|
5936
|
+
" #{res.class} want #{operation.update_class}" \
|
5937
5937
|
" or String representing resource name"
|
5938
5938
|
)
|
5939
5939
|
end
|
5940
5940
|
end
|
5941
5941
|
|
5942
5942
|
op = Google::Ads::GoogleAds::V17::Services::CustomAudienceOperation.new
|
5943
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5943
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5944
5944
|
op["update"] = res
|
5945
5945
|
op
|
5946
5946
|
end
|
@@ -5958,7 +5958,7 @@ module Google
|
|
5958
5958
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::CustomInterest] a resource instance to update
|
5959
5959
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5960
5960
|
# @return [Google::Ads::GoogleAds::V17::Services::CustomInterestOperation] the operation instance to update the resource
|
5961
|
-
def self.custom_interest(resource_or_path, &
|
5961
|
+
def self.custom_interest(resource_or_path, &)
|
5962
5962
|
require "google/ads/google_ads/v17/services/custom_interest_service_pb"
|
5963
5963
|
res = case resource_or_path
|
5964
5964
|
when Google::Ads::GoogleAds::V17::Resources::CustomInterest
|
@@ -5971,15 +5971,15 @@ module Google
|
|
5971
5971
|
else
|
5972
5972
|
unless Google::Ads::GoogleAds::V17::Resources::CustomInterest === res
|
5973
5973
|
raise ArgumentError.new(
|
5974
|
-
"Called #{__method__} with instance of wrong type:"\
|
5975
|
-
" #{res.class} want #{operation.update_class}"\
|
5974
|
+
"Called #{__method__} with instance of wrong type:" \
|
5975
|
+
" #{res.class} want #{operation.update_class}" \
|
5976
5976
|
" or String representing resource name"
|
5977
5977
|
)
|
5978
5978
|
end
|
5979
5979
|
end
|
5980
5980
|
|
5981
5981
|
op = Google::Ads::GoogleAds::V17::Services::CustomInterestOperation.new
|
5982
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5982
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5983
5983
|
op["update"] = res
|
5984
5984
|
op
|
5985
5985
|
end
|
@@ -5997,7 +5997,7 @@ module Google
|
|
5997
5997
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::CustomerClientLink] a resource instance to update
|
5998
5998
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5999
5999
|
# @return [Google::Ads::GoogleAds::V17::Services::CustomerClientLinkOperation] the operation instance to update the resource
|
6000
|
-
def self.customer_client_link(resource_or_path, &
|
6000
|
+
def self.customer_client_link(resource_or_path, &)
|
6001
6001
|
require "google/ads/google_ads/v17/services/customer_client_link_service_pb"
|
6002
6002
|
res = case resource_or_path
|
6003
6003
|
when Google::Ads::GoogleAds::V17::Resources::CustomerClientLink
|
@@ -6010,15 +6010,15 @@ module Google
|
|
6010
6010
|
else
|
6011
6011
|
unless Google::Ads::GoogleAds::V17::Resources::CustomerClientLink === res
|
6012
6012
|
raise ArgumentError.new(
|
6013
|
-
"Called #{__method__} with instance of wrong type:"\
|
6014
|
-
" #{res.class} want #{operation.update_class}"\
|
6013
|
+
"Called #{__method__} with instance of wrong type:" \
|
6014
|
+
" #{res.class} want #{operation.update_class}" \
|
6015
6015
|
" or String representing resource name"
|
6016
6016
|
)
|
6017
6017
|
end
|
6018
6018
|
end
|
6019
6019
|
|
6020
6020
|
op = Google::Ads::GoogleAds::V17::Services::CustomerClientLinkOperation.new
|
6021
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
6021
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
6022
6022
|
op["update"] = res
|
6023
6023
|
op
|
6024
6024
|
end
|
@@ -6036,7 +6036,7 @@ module Google
|
|
6036
6036
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::CustomerLifecycleGoal] a resource instance to update
|
6037
6037
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
6038
6038
|
# @return [Google::Ads::GoogleAds::V17::Services::CustomerLifecycleGoalOperation] the operation instance to update the resource
|
6039
|
-
def self.customer_lifecycle_goal(resource_or_path, &
|
6039
|
+
def self.customer_lifecycle_goal(resource_or_path, &)
|
6040
6040
|
require "google/ads/google_ads/v17/services/customer_lifecycle_goal_service_pb"
|
6041
6041
|
res = case resource_or_path
|
6042
6042
|
when Google::Ads::GoogleAds::V17::Resources::CustomerLifecycleGoal
|
@@ -6049,15 +6049,15 @@ module Google
|
|
6049
6049
|
else
|
6050
6050
|
unless Google::Ads::GoogleAds::V17::Resources::CustomerLifecycleGoal === res
|
6051
6051
|
raise ArgumentError.new(
|
6052
|
-
"Called #{__method__} with instance of wrong type:"\
|
6053
|
-
" #{res.class} want #{operation.update_class}"\
|
6052
|
+
"Called #{__method__} with instance of wrong type:" \
|
6053
|
+
" #{res.class} want #{operation.update_class}" \
|
6054
6054
|
" or String representing resource name"
|
6055
6055
|
)
|
6056
6056
|
end
|
6057
6057
|
end
|
6058
6058
|
|
6059
6059
|
op = Google::Ads::GoogleAds::V17::Services::CustomerLifecycleGoalOperation.new
|
6060
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
6060
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
6061
6061
|
op["update"] = res
|
6062
6062
|
op
|
6063
6063
|
end
|
@@ -6075,7 +6075,7 @@ module Google
|
|
6075
6075
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::CustomerManagerLink] a resource instance to update
|
6076
6076
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
6077
6077
|
# @return [Google::Ads::GoogleAds::V17::Services::CustomerManagerLinkOperation] the operation instance to update the resource
|
6078
|
-
def self.customer_manager_link(resource_or_path, &
|
6078
|
+
def self.customer_manager_link(resource_or_path, &)
|
6079
6079
|
require "google/ads/google_ads/v17/services/customer_manager_link_service_pb"
|
6080
6080
|
res = case resource_or_path
|
6081
6081
|
when Google::Ads::GoogleAds::V17::Resources::CustomerManagerLink
|
@@ -6088,15 +6088,15 @@ module Google
|
|
6088
6088
|
else
|
6089
6089
|
unless Google::Ads::GoogleAds::V17::Resources::CustomerManagerLink === res
|
6090
6090
|
raise ArgumentError.new(
|
6091
|
-
"Called #{__method__} with instance of wrong type:"\
|
6092
|
-
" #{res.class} want #{operation.update_class}"\
|
6091
|
+
"Called #{__method__} with instance of wrong type:" \
|
6092
|
+
" #{res.class} want #{operation.update_class}" \
|
6093
6093
|
" or String representing resource name"
|
6094
6094
|
)
|
6095
6095
|
end
|
6096
6096
|
end
|
6097
6097
|
|
6098
6098
|
op = Google::Ads::GoogleAds::V17::Services::CustomerManagerLinkOperation.new
|
6099
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
6099
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
6100
6100
|
op["update"] = res
|
6101
6101
|
op
|
6102
6102
|
end
|
@@ -6114,7 +6114,7 @@ module Google
|
|
6114
6114
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::CustomerSkAdNetworkConversionValueSchema] a resource instance to update
|
6115
6115
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
6116
6116
|
# @return [Google::Ads::GoogleAds::V17::Services::CustomerSkAdNetworkConversionValueSchemaOperation] the operation instance to update the resource
|
6117
|
-
def self.customer_sk_ad_network_conversion_value_schema(resource_or_path, &
|
6117
|
+
def self.customer_sk_ad_network_conversion_value_schema(resource_or_path, &)
|
6118
6118
|
require "google/ads/google_ads/v17/services/customer_sk_ad_network_conversion_value_schema_service_pb"
|
6119
6119
|
res = case resource_or_path
|
6120
6120
|
when Google::Ads::GoogleAds::V17::Resources::CustomerSkAdNetworkConversionValueSchema
|
@@ -6127,15 +6127,15 @@ module Google
|
|
6127
6127
|
else
|
6128
6128
|
unless Google::Ads::GoogleAds::V17::Resources::CustomerSkAdNetworkConversionValueSchema === res
|
6129
6129
|
raise ArgumentError.new(
|
6130
|
-
"Called #{__method__} with instance of wrong type:"\
|
6131
|
-
" #{res.class} want #{operation.update_class}"\
|
6130
|
+
"Called #{__method__} with instance of wrong type:" \
|
6131
|
+
" #{res.class} want #{operation.update_class}" \
|
6132
6132
|
" or String representing resource name"
|
6133
6133
|
)
|
6134
6134
|
end
|
6135
6135
|
end
|
6136
6136
|
|
6137
6137
|
op = Google::Ads::GoogleAds::V17::Services::CustomerSkAdNetworkConversionValueSchemaOperation.new
|
6138
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
6138
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
6139
6139
|
op["update"] = res
|
6140
6140
|
op
|
6141
6141
|
end
|
@@ -6153,7 +6153,7 @@ module Google
|
|
6153
6153
|
# @param resource [Google::Ads::GoogleAds::V17::Resources::CustomerUserAccess] a resource instance to update
|
6154
6154
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
6155
6155
|
# @return [Google::Ads::GoogleAds::V17::Services::CustomerUserAccessOperation] the operation instance to update the resource
|
6156
|
-
def self.customer_user_access(resource_or_path, &
|
6156
|
+
def self.customer_user_access(resource_or_path, &)
|
6157
6157
|
require "google/ads/google_ads/v17/services/customer_user_access_service_pb"
|
6158
6158
|
res = case resource_or_path
|
6159
6159
|
when Google::Ads::GoogleAds::V17::Resources::CustomerUserAccess
|
@@ -6166,15 +6166,15 @@ module Google
|
|
6166
6166
|
else
|
6167
6167
|
unless Google::Ads::GoogleAds::V17::Resources::CustomerUserAccess === res
|
6168
6168
|
raise ArgumentError.new(
|
6169
|
-
"Called #{__method__} with instance of wrong type:"\
|
6170
|
-
" #{res.class} want #{operation.update_class}"\
|
6169
|
+
"Called #{__method__} with instance of wrong type:" \
|
6170
|
+
" #{res.class} want #{operation.update_class}" \
|
6171
6171
|
" or String representing resource name"
|
6172
6172
|
)
|
6173
6173
|
end
|
6174
6174
|
end
|
6175
6175
|
|
6176
6176
|
op = Google::Ads::GoogleAds::V17::Services::CustomerUserAccessOperation.new
|
6177
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
6177
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
6178
6178
|
op["update"] = res
|
6179
6179
|
op
|
6180
6180
|
end
|