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
@@ -3616,7 +3616,7 @@ module Google
|
|
3616
3616
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::AccountLink] a resource instance to update
|
3617
3617
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3618
3618
|
# @return [Google::Ads::GoogleAds::V16::Services::AccountLinkOperation] the operation instance to update the resource
|
3619
|
-
def self.account_link(resource_or_path, &
|
3619
|
+
def self.account_link(resource_or_path, &)
|
3620
3620
|
require "google/ads/google_ads/v16/services/account_link_service_pb"
|
3621
3621
|
res = case resource_or_path
|
3622
3622
|
when Google::Ads::GoogleAds::V16::Resources::AccountLink
|
@@ -3629,15 +3629,15 @@ module Google
|
|
3629
3629
|
else
|
3630
3630
|
unless Google::Ads::GoogleAds::V16::Resources::AccountLink === res
|
3631
3631
|
raise ArgumentError.new(
|
3632
|
-
"Called #{__method__} with instance of wrong type:"\
|
3633
|
-
" #{res.class} want #{operation.update_class}"\
|
3632
|
+
"Called #{__method__} with instance of wrong type:" \
|
3633
|
+
" #{res.class} want #{operation.update_class}" \
|
3634
3634
|
" or String representing resource name"
|
3635
3635
|
)
|
3636
3636
|
end
|
3637
3637
|
end
|
3638
3638
|
|
3639
3639
|
op = Google::Ads::GoogleAds::V16::Services::AccountLinkOperation.new
|
3640
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
3640
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
3641
3641
|
op["update"] = res
|
3642
3642
|
op
|
3643
3643
|
end
|
@@ -3655,7 +3655,7 @@ module Google
|
|
3655
3655
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::AdGroupAd] a resource instance to update
|
3656
3656
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3657
3657
|
# @return [Google::Ads::GoogleAds::V16::Services::AdGroupAdOperation] the operation instance to update the resource
|
3658
|
-
def self.ad_group_ad(resource_or_path, &
|
3658
|
+
def self.ad_group_ad(resource_or_path, &)
|
3659
3659
|
require "google/ads/google_ads/v16/services/ad_group_ad_service_pb"
|
3660
3660
|
res = case resource_or_path
|
3661
3661
|
when Google::Ads::GoogleAds::V16::Resources::AdGroupAd
|
@@ -3668,15 +3668,15 @@ module Google
|
|
3668
3668
|
else
|
3669
3669
|
unless Google::Ads::GoogleAds::V16::Resources::AdGroupAd === res
|
3670
3670
|
raise ArgumentError.new(
|
3671
|
-
"Called #{__method__} with instance of wrong type:"\
|
3672
|
-
" #{res.class} want #{operation.update_class}"\
|
3671
|
+
"Called #{__method__} with instance of wrong type:" \
|
3672
|
+
" #{res.class} want #{operation.update_class}" \
|
3673
3673
|
" or String representing resource name"
|
3674
3674
|
)
|
3675
3675
|
end
|
3676
3676
|
end
|
3677
3677
|
|
3678
3678
|
op = Google::Ads::GoogleAds::V16::Services::AdGroupAdOperation.new
|
3679
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
3679
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
3680
3680
|
op["update"] = res
|
3681
3681
|
op
|
3682
3682
|
end
|
@@ -3694,7 +3694,7 @@ module Google
|
|
3694
3694
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::AdGroupAsset] a resource instance to update
|
3695
3695
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3696
3696
|
# @return [Google::Ads::GoogleAds::V16::Services::AdGroupAssetOperation] the operation instance to update the resource
|
3697
|
-
def self.ad_group_asset(resource_or_path, &
|
3697
|
+
def self.ad_group_asset(resource_or_path, &)
|
3698
3698
|
require "google/ads/google_ads/v16/services/ad_group_asset_service_pb"
|
3699
3699
|
res = case resource_or_path
|
3700
3700
|
when Google::Ads::GoogleAds::V16::Resources::AdGroupAsset
|
@@ -3707,15 +3707,15 @@ module Google
|
|
3707
3707
|
else
|
3708
3708
|
unless Google::Ads::GoogleAds::V16::Resources::AdGroupAsset === res
|
3709
3709
|
raise ArgumentError.new(
|
3710
|
-
"Called #{__method__} with instance of wrong type:"\
|
3711
|
-
" #{res.class} want #{operation.update_class}"\
|
3710
|
+
"Called #{__method__} with instance of wrong type:" \
|
3711
|
+
" #{res.class} want #{operation.update_class}" \
|
3712
3712
|
" or String representing resource name"
|
3713
3713
|
)
|
3714
3714
|
end
|
3715
3715
|
end
|
3716
3716
|
|
3717
3717
|
op = Google::Ads::GoogleAds::V16::Services::AdGroupAssetOperation.new
|
3718
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
3718
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
3719
3719
|
op["update"] = res
|
3720
3720
|
op
|
3721
3721
|
end
|
@@ -3733,7 +3733,7 @@ module Google
|
|
3733
3733
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::AdGroupBidModifier] a resource instance to update
|
3734
3734
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3735
3735
|
# @return [Google::Ads::GoogleAds::V16::Services::AdGroupBidModifierOperation] the operation instance to update the resource
|
3736
|
-
def self.ad_group_bid_modifier(resource_or_path, &
|
3736
|
+
def self.ad_group_bid_modifier(resource_or_path, &)
|
3737
3737
|
require "google/ads/google_ads/v16/services/ad_group_bid_modifier_service_pb"
|
3738
3738
|
res = case resource_or_path
|
3739
3739
|
when Google::Ads::GoogleAds::V16::Resources::AdGroupBidModifier
|
@@ -3746,15 +3746,15 @@ module Google
|
|
3746
3746
|
else
|
3747
3747
|
unless Google::Ads::GoogleAds::V16::Resources::AdGroupBidModifier === res
|
3748
3748
|
raise ArgumentError.new(
|
3749
|
-
"Called #{__method__} with instance of wrong type:"\
|
3750
|
-
" #{res.class} want #{operation.update_class}"\
|
3749
|
+
"Called #{__method__} with instance of wrong type:" \
|
3750
|
+
" #{res.class} want #{operation.update_class}" \
|
3751
3751
|
" or String representing resource name"
|
3752
3752
|
)
|
3753
3753
|
end
|
3754
3754
|
end
|
3755
3755
|
|
3756
3756
|
op = Google::Ads::GoogleAds::V16::Services::AdGroupBidModifierOperation.new
|
3757
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
3757
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
3758
3758
|
op["update"] = res
|
3759
3759
|
op
|
3760
3760
|
end
|
@@ -3772,7 +3772,7 @@ module Google
|
|
3772
3772
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::AdGroupCriterion] a resource instance to update
|
3773
3773
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3774
3774
|
# @return [Google::Ads::GoogleAds::V16::Services::AdGroupCriterionOperation] the operation instance to update the resource
|
3775
|
-
def self.ad_group_criterion(resource_or_path, &
|
3775
|
+
def self.ad_group_criterion(resource_or_path, &)
|
3776
3776
|
require "google/ads/google_ads/v16/services/ad_group_criterion_service_pb"
|
3777
3777
|
res = case resource_or_path
|
3778
3778
|
when Google::Ads::GoogleAds::V16::Resources::AdGroupCriterion
|
@@ -3785,15 +3785,15 @@ module Google
|
|
3785
3785
|
else
|
3786
3786
|
unless Google::Ads::GoogleAds::V16::Resources::AdGroupCriterion === res
|
3787
3787
|
raise ArgumentError.new(
|
3788
|
-
"Called #{__method__} with instance of wrong type:"\
|
3789
|
-
" #{res.class} want #{operation.update_class}"\
|
3788
|
+
"Called #{__method__} with instance of wrong type:" \
|
3789
|
+
" #{res.class} want #{operation.update_class}" \
|
3790
3790
|
" or String representing resource name"
|
3791
3791
|
)
|
3792
3792
|
end
|
3793
3793
|
end
|
3794
3794
|
|
3795
3795
|
op = Google::Ads::GoogleAds::V16::Services::AdGroupCriterionOperation.new
|
3796
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
3796
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
3797
3797
|
op["update"] = res
|
3798
3798
|
op
|
3799
3799
|
end
|
@@ -3811,7 +3811,7 @@ module Google
|
|
3811
3811
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::AdGroupExtensionSetting] a resource instance to update
|
3812
3812
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3813
3813
|
# @return [Google::Ads::GoogleAds::V16::Services::AdGroupExtensionSettingOperation] the operation instance to update the resource
|
3814
|
-
def self.ad_group_extension_setting(resource_or_path, &
|
3814
|
+
def self.ad_group_extension_setting(resource_or_path, &)
|
3815
3815
|
require "google/ads/google_ads/v16/services/ad_group_extension_setting_service_pb"
|
3816
3816
|
res = case resource_or_path
|
3817
3817
|
when Google::Ads::GoogleAds::V16::Resources::AdGroupExtensionSetting
|
@@ -3824,15 +3824,15 @@ module Google
|
|
3824
3824
|
else
|
3825
3825
|
unless Google::Ads::GoogleAds::V16::Resources::AdGroupExtensionSetting === res
|
3826
3826
|
raise ArgumentError.new(
|
3827
|
-
"Called #{__method__} with instance of wrong type:"\
|
3828
|
-
" #{res.class} want #{operation.update_class}"\
|
3827
|
+
"Called #{__method__} with instance of wrong type:" \
|
3828
|
+
" #{res.class} want #{operation.update_class}" \
|
3829
3829
|
" or String representing resource name"
|
3830
3830
|
)
|
3831
3831
|
end
|
3832
3832
|
end
|
3833
3833
|
|
3834
3834
|
op = Google::Ads::GoogleAds::V16::Services::AdGroupExtensionSettingOperation.new
|
3835
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
3835
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
3836
3836
|
op["update"] = res
|
3837
3837
|
op
|
3838
3838
|
end
|
@@ -3850,7 +3850,7 @@ module Google
|
|
3850
3850
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::AdGroupFeed] a resource instance to update
|
3851
3851
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3852
3852
|
# @return [Google::Ads::GoogleAds::V16::Services::AdGroupFeedOperation] the operation instance to update the resource
|
3853
|
-
def self.ad_group_feed(resource_or_path, &
|
3853
|
+
def self.ad_group_feed(resource_or_path, &)
|
3854
3854
|
require "google/ads/google_ads/v16/services/ad_group_feed_service_pb"
|
3855
3855
|
res = case resource_or_path
|
3856
3856
|
when Google::Ads::GoogleAds::V16::Resources::AdGroupFeed
|
@@ -3863,15 +3863,15 @@ module Google
|
|
3863
3863
|
else
|
3864
3864
|
unless Google::Ads::GoogleAds::V16::Resources::AdGroupFeed === res
|
3865
3865
|
raise ArgumentError.new(
|
3866
|
-
"Called #{__method__} with instance of wrong type:"\
|
3867
|
-
" #{res.class} want #{operation.update_class}"\
|
3866
|
+
"Called #{__method__} with instance of wrong type:" \
|
3867
|
+
" #{res.class} want #{operation.update_class}" \
|
3868
3868
|
" or String representing resource name"
|
3869
3869
|
)
|
3870
3870
|
end
|
3871
3871
|
end
|
3872
3872
|
|
3873
3873
|
op = Google::Ads::GoogleAds::V16::Services::AdGroupFeedOperation.new
|
3874
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
3874
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
3875
3875
|
op["update"] = res
|
3876
3876
|
op
|
3877
3877
|
end
|
@@ -3889,7 +3889,7 @@ module Google
|
|
3889
3889
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::AdGroup] a resource instance to update
|
3890
3890
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3891
3891
|
# @return [Google::Ads::GoogleAds::V16::Services::AdGroupOperation] the operation instance to update the resource
|
3892
|
-
def self.ad_group(resource_or_path, &
|
3892
|
+
def self.ad_group(resource_or_path, &)
|
3893
3893
|
require "google/ads/google_ads/v16/services/ad_group_service_pb"
|
3894
3894
|
res = case resource_or_path
|
3895
3895
|
when Google::Ads::GoogleAds::V16::Resources::AdGroup
|
@@ -3902,15 +3902,15 @@ module Google
|
|
3902
3902
|
else
|
3903
3903
|
unless Google::Ads::GoogleAds::V16::Resources::AdGroup === res
|
3904
3904
|
raise ArgumentError.new(
|
3905
|
-
"Called #{__method__} with instance of wrong type:"\
|
3906
|
-
" #{res.class} want #{operation.update_class}"\
|
3905
|
+
"Called #{__method__} with instance of wrong type:" \
|
3906
|
+
" #{res.class} want #{operation.update_class}" \
|
3907
3907
|
" or String representing resource name"
|
3908
3908
|
)
|
3909
3909
|
end
|
3910
3910
|
end
|
3911
3911
|
|
3912
3912
|
op = Google::Ads::GoogleAds::V16::Services::AdGroupOperation.new
|
3913
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
3913
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
3914
3914
|
op["update"] = res
|
3915
3915
|
op
|
3916
3916
|
end
|
@@ -3928,7 +3928,7 @@ module Google
|
|
3928
3928
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::AdParameter] a resource instance to update
|
3929
3929
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3930
3930
|
# @return [Google::Ads::GoogleAds::V16::Services::AdParameterOperation] the operation instance to update the resource
|
3931
|
-
def self.ad_parameter(resource_or_path, &
|
3931
|
+
def self.ad_parameter(resource_or_path, &)
|
3932
3932
|
require "google/ads/google_ads/v16/services/ad_parameter_service_pb"
|
3933
3933
|
res = case resource_or_path
|
3934
3934
|
when Google::Ads::GoogleAds::V16::Resources::AdParameter
|
@@ -3941,15 +3941,15 @@ module Google
|
|
3941
3941
|
else
|
3942
3942
|
unless Google::Ads::GoogleAds::V16::Resources::AdParameter === res
|
3943
3943
|
raise ArgumentError.new(
|
3944
|
-
"Called #{__method__} with instance of wrong type:"\
|
3945
|
-
" #{res.class} want #{operation.update_class}"\
|
3944
|
+
"Called #{__method__} with instance of wrong type:" \
|
3945
|
+
" #{res.class} want #{operation.update_class}" \
|
3946
3946
|
" or String representing resource name"
|
3947
3947
|
)
|
3948
3948
|
end
|
3949
3949
|
end
|
3950
3950
|
|
3951
3951
|
op = Google::Ads::GoogleAds::V16::Services::AdParameterOperation.new
|
3952
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
3952
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
3953
3953
|
op["update"] = res
|
3954
3954
|
op
|
3955
3955
|
end
|
@@ -3967,7 +3967,7 @@ module Google
|
|
3967
3967
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::Ad] a resource instance to update
|
3968
3968
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
3969
3969
|
# @return [Google::Ads::GoogleAds::V16::Services::AdOperation] the operation instance to update the resource
|
3970
|
-
def self.ad(resource_or_path, &
|
3970
|
+
def self.ad(resource_or_path, &)
|
3971
3971
|
require "google/ads/google_ads/v16/services/ad_service_pb"
|
3972
3972
|
res = case resource_or_path
|
3973
3973
|
when Google::Ads::GoogleAds::V16::Resources::Ad
|
@@ -3980,15 +3980,15 @@ module Google
|
|
3980
3980
|
else
|
3981
3981
|
unless Google::Ads::GoogleAds::V16::Resources::Ad === res
|
3982
3982
|
raise ArgumentError.new(
|
3983
|
-
"Called #{__method__} with instance of wrong type:"\
|
3984
|
-
" #{res.class} want #{operation.update_class}"\
|
3983
|
+
"Called #{__method__} with instance of wrong type:" \
|
3984
|
+
" #{res.class} want #{operation.update_class}" \
|
3985
3985
|
" or String representing resource name"
|
3986
3986
|
)
|
3987
3987
|
end
|
3988
3988
|
end
|
3989
3989
|
|
3990
3990
|
op = Google::Ads::GoogleAds::V16::Services::AdOperation.new
|
3991
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
3991
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
3992
3992
|
op["update"] = res
|
3993
3993
|
op
|
3994
3994
|
end
|
@@ -4006,7 +4006,7 @@ module Google
|
|
4006
4006
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::AssetGroupAsset] a resource instance to update
|
4007
4007
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4008
4008
|
# @return [Google::Ads::GoogleAds::V16::Services::AssetGroupAssetOperation] the operation instance to update the resource
|
4009
|
-
def self.asset_group_asset(resource_or_path, &
|
4009
|
+
def self.asset_group_asset(resource_or_path, &)
|
4010
4010
|
require "google/ads/google_ads/v16/services/asset_group_asset_service_pb"
|
4011
4011
|
res = case resource_or_path
|
4012
4012
|
when Google::Ads::GoogleAds::V16::Resources::AssetGroupAsset
|
@@ -4019,15 +4019,15 @@ module Google
|
|
4019
4019
|
else
|
4020
4020
|
unless Google::Ads::GoogleAds::V16::Resources::AssetGroupAsset === res
|
4021
4021
|
raise ArgumentError.new(
|
4022
|
-
"Called #{__method__} with instance of wrong type:"\
|
4023
|
-
" #{res.class} want #{operation.update_class}"\
|
4022
|
+
"Called #{__method__} with instance of wrong type:" \
|
4023
|
+
" #{res.class} want #{operation.update_class}" \
|
4024
4024
|
" or String representing resource name"
|
4025
4025
|
)
|
4026
4026
|
end
|
4027
4027
|
end
|
4028
4028
|
|
4029
4029
|
op = Google::Ads::GoogleAds::V16::Services::AssetGroupAssetOperation.new
|
4030
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4030
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4031
4031
|
op["update"] = res
|
4032
4032
|
op
|
4033
4033
|
end
|
@@ -4045,7 +4045,7 @@ module Google
|
|
4045
4045
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::AssetGroupListingGroupFilter] a resource instance to update
|
4046
4046
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4047
4047
|
# @return [Google::Ads::GoogleAds::V16::Services::AssetGroupListingGroupFilterOperation] the operation instance to update the resource
|
4048
|
-
def self.asset_group_listing_group_filter(resource_or_path, &
|
4048
|
+
def self.asset_group_listing_group_filter(resource_or_path, &)
|
4049
4049
|
require "google/ads/google_ads/v16/services/asset_group_listing_group_filter_service_pb"
|
4050
4050
|
res = case resource_or_path
|
4051
4051
|
when Google::Ads::GoogleAds::V16::Resources::AssetGroupListingGroupFilter
|
@@ -4058,15 +4058,15 @@ module Google
|
|
4058
4058
|
else
|
4059
4059
|
unless Google::Ads::GoogleAds::V16::Resources::AssetGroupListingGroupFilter === res
|
4060
4060
|
raise ArgumentError.new(
|
4061
|
-
"Called #{__method__} with instance of wrong type:"\
|
4062
|
-
" #{res.class} want #{operation.update_class}"\
|
4061
|
+
"Called #{__method__} with instance of wrong type:" \
|
4062
|
+
" #{res.class} want #{operation.update_class}" \
|
4063
4063
|
" or String representing resource name"
|
4064
4064
|
)
|
4065
4065
|
end
|
4066
4066
|
end
|
4067
4067
|
|
4068
4068
|
op = Google::Ads::GoogleAds::V16::Services::AssetGroupListingGroupFilterOperation.new
|
4069
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4069
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4070
4070
|
op["update"] = res
|
4071
4071
|
op
|
4072
4072
|
end
|
@@ -4084,7 +4084,7 @@ module Google
|
|
4084
4084
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::AssetGroup] a resource instance to update
|
4085
4085
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4086
4086
|
# @return [Google::Ads::GoogleAds::V16::Services::AssetGroupOperation] the operation instance to update the resource
|
4087
|
-
def self.asset_group(resource_or_path, &
|
4087
|
+
def self.asset_group(resource_or_path, &)
|
4088
4088
|
require "google/ads/google_ads/v16/services/asset_group_service_pb"
|
4089
4089
|
res = case resource_or_path
|
4090
4090
|
when Google::Ads::GoogleAds::V16::Resources::AssetGroup
|
@@ -4097,15 +4097,15 @@ module Google
|
|
4097
4097
|
else
|
4098
4098
|
unless Google::Ads::GoogleAds::V16::Resources::AssetGroup === res
|
4099
4099
|
raise ArgumentError.new(
|
4100
|
-
"Called #{__method__} with instance of wrong type:"\
|
4101
|
-
" #{res.class} want #{operation.update_class}"\
|
4100
|
+
"Called #{__method__} with instance of wrong type:" \
|
4101
|
+
" #{res.class} want #{operation.update_class}" \
|
4102
4102
|
" or String representing resource name"
|
4103
4103
|
)
|
4104
4104
|
end
|
4105
4105
|
end
|
4106
4106
|
|
4107
4107
|
op = Google::Ads::GoogleAds::V16::Services::AssetGroupOperation.new
|
4108
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4108
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4109
4109
|
op["update"] = res
|
4110
4110
|
op
|
4111
4111
|
end
|
@@ -4123,7 +4123,7 @@ module Google
|
|
4123
4123
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::Asset] a resource instance to update
|
4124
4124
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4125
4125
|
# @return [Google::Ads::GoogleAds::V16::Services::AssetOperation] the operation instance to update the resource
|
4126
|
-
def self.asset(resource_or_path, &
|
4126
|
+
def self.asset(resource_or_path, &)
|
4127
4127
|
require "google/ads/google_ads/v16/services/asset_service_pb"
|
4128
4128
|
res = case resource_or_path
|
4129
4129
|
when Google::Ads::GoogleAds::V16::Resources::Asset
|
@@ -4136,15 +4136,15 @@ module Google
|
|
4136
4136
|
else
|
4137
4137
|
unless Google::Ads::GoogleAds::V16::Resources::Asset === res
|
4138
4138
|
raise ArgumentError.new(
|
4139
|
-
"Called #{__method__} with instance of wrong type:"\
|
4140
|
-
" #{res.class} want #{operation.update_class}"\
|
4139
|
+
"Called #{__method__} with instance of wrong type:" \
|
4140
|
+
" #{res.class} want #{operation.update_class}" \
|
4141
4141
|
" or String representing resource name"
|
4142
4142
|
)
|
4143
4143
|
end
|
4144
4144
|
end
|
4145
4145
|
|
4146
4146
|
op = Google::Ads::GoogleAds::V16::Services::AssetOperation.new
|
4147
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4147
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4148
4148
|
op["update"] = res
|
4149
4149
|
op
|
4150
4150
|
end
|
@@ -4162,7 +4162,7 @@ module Google
|
|
4162
4162
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::AssetSet] a resource instance to update
|
4163
4163
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4164
4164
|
# @return [Google::Ads::GoogleAds::V16::Services::AssetSetOperation] the operation instance to update the resource
|
4165
|
-
def self.asset_set(resource_or_path, &
|
4165
|
+
def self.asset_set(resource_or_path, &)
|
4166
4166
|
require "google/ads/google_ads/v16/services/asset_set_service_pb"
|
4167
4167
|
res = case resource_or_path
|
4168
4168
|
when Google::Ads::GoogleAds::V16::Resources::AssetSet
|
@@ -4175,15 +4175,15 @@ module Google
|
|
4175
4175
|
else
|
4176
4176
|
unless Google::Ads::GoogleAds::V16::Resources::AssetSet === res
|
4177
4177
|
raise ArgumentError.new(
|
4178
|
-
"Called #{__method__} with instance of wrong type:"\
|
4179
|
-
" #{res.class} want #{operation.update_class}"\
|
4178
|
+
"Called #{__method__} with instance of wrong type:" \
|
4179
|
+
" #{res.class} want #{operation.update_class}" \
|
4180
4180
|
" or String representing resource name"
|
4181
4181
|
)
|
4182
4182
|
end
|
4183
4183
|
end
|
4184
4184
|
|
4185
4185
|
op = Google::Ads::GoogleAds::V16::Services::AssetSetOperation.new
|
4186
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4186
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4187
4187
|
op["update"] = res
|
4188
4188
|
op
|
4189
4189
|
end
|
@@ -4201,7 +4201,7 @@ module Google
|
|
4201
4201
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::Audience] a resource instance to update
|
4202
4202
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4203
4203
|
# @return [Google::Ads::GoogleAds::V16::Services::AudienceOperation] the operation instance to update the resource
|
4204
|
-
def self.audience(resource_or_path, &
|
4204
|
+
def self.audience(resource_or_path, &)
|
4205
4205
|
require "google/ads/google_ads/v16/services/audience_service_pb"
|
4206
4206
|
res = case resource_or_path
|
4207
4207
|
when Google::Ads::GoogleAds::V16::Resources::Audience
|
@@ -4214,15 +4214,15 @@ module Google
|
|
4214
4214
|
else
|
4215
4215
|
unless Google::Ads::GoogleAds::V16::Resources::Audience === res
|
4216
4216
|
raise ArgumentError.new(
|
4217
|
-
"Called #{__method__} with instance of wrong type:"\
|
4218
|
-
" #{res.class} want #{operation.update_class}"\
|
4217
|
+
"Called #{__method__} with instance of wrong type:" \
|
4218
|
+
" #{res.class} want #{operation.update_class}" \
|
4219
4219
|
" or String representing resource name"
|
4220
4220
|
)
|
4221
4221
|
end
|
4222
4222
|
end
|
4223
4223
|
|
4224
4224
|
op = Google::Ads::GoogleAds::V16::Services::AudienceOperation.new
|
4225
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4225
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4226
4226
|
op["update"] = res
|
4227
4227
|
op
|
4228
4228
|
end
|
@@ -4240,7 +4240,7 @@ module Google
|
|
4240
4240
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::BiddingDataExclusion] a resource instance to update
|
4241
4241
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4242
4242
|
# @return [Google::Ads::GoogleAds::V16::Services::BiddingDataExclusionOperation] the operation instance to update the resource
|
4243
|
-
def self.bidding_data_exclusion(resource_or_path, &
|
4243
|
+
def self.bidding_data_exclusion(resource_or_path, &)
|
4244
4244
|
require "google/ads/google_ads/v16/services/bidding_data_exclusion_service_pb"
|
4245
4245
|
res = case resource_or_path
|
4246
4246
|
when Google::Ads::GoogleAds::V16::Resources::BiddingDataExclusion
|
@@ -4253,15 +4253,15 @@ module Google
|
|
4253
4253
|
else
|
4254
4254
|
unless Google::Ads::GoogleAds::V16::Resources::BiddingDataExclusion === res
|
4255
4255
|
raise ArgumentError.new(
|
4256
|
-
"Called #{__method__} with instance of wrong type:"\
|
4257
|
-
" #{res.class} want #{operation.update_class}"\
|
4256
|
+
"Called #{__method__} with instance of wrong type:" \
|
4257
|
+
" #{res.class} want #{operation.update_class}" \
|
4258
4258
|
" or String representing resource name"
|
4259
4259
|
)
|
4260
4260
|
end
|
4261
4261
|
end
|
4262
4262
|
|
4263
4263
|
op = Google::Ads::GoogleAds::V16::Services::BiddingDataExclusionOperation.new
|
4264
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4264
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4265
4265
|
op["update"] = res
|
4266
4266
|
op
|
4267
4267
|
end
|
@@ -4279,7 +4279,7 @@ module Google
|
|
4279
4279
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::BiddingSeasonalityAdjustment] a resource instance to update
|
4280
4280
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4281
4281
|
# @return [Google::Ads::GoogleAds::V16::Services::BiddingSeasonalityAdjustmentOperation] the operation instance to update the resource
|
4282
|
-
def self.bidding_seasonality_adjustment(resource_or_path, &
|
4282
|
+
def self.bidding_seasonality_adjustment(resource_or_path, &)
|
4283
4283
|
require "google/ads/google_ads/v16/services/bidding_seasonality_adjustment_service_pb"
|
4284
4284
|
res = case resource_or_path
|
4285
4285
|
when Google::Ads::GoogleAds::V16::Resources::BiddingSeasonalityAdjustment
|
@@ -4292,15 +4292,15 @@ module Google
|
|
4292
4292
|
else
|
4293
4293
|
unless Google::Ads::GoogleAds::V16::Resources::BiddingSeasonalityAdjustment === res
|
4294
4294
|
raise ArgumentError.new(
|
4295
|
-
"Called #{__method__} with instance of wrong type:"\
|
4296
|
-
" #{res.class} want #{operation.update_class}"\
|
4295
|
+
"Called #{__method__} with instance of wrong type:" \
|
4296
|
+
" #{res.class} want #{operation.update_class}" \
|
4297
4297
|
" or String representing resource name"
|
4298
4298
|
)
|
4299
4299
|
end
|
4300
4300
|
end
|
4301
4301
|
|
4302
4302
|
op = Google::Ads::GoogleAds::V16::Services::BiddingSeasonalityAdjustmentOperation.new
|
4303
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4303
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4304
4304
|
op["update"] = res
|
4305
4305
|
op
|
4306
4306
|
end
|
@@ -4318,7 +4318,7 @@ module Google
|
|
4318
4318
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::BiddingStrategy] a resource instance to update
|
4319
4319
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4320
4320
|
# @return [Google::Ads::GoogleAds::V16::Services::BiddingStrategyOperation] the operation instance to update the resource
|
4321
|
-
def self.bidding_strategy(resource_or_path, &
|
4321
|
+
def self.bidding_strategy(resource_or_path, &)
|
4322
4322
|
require "google/ads/google_ads/v16/services/bidding_strategy_service_pb"
|
4323
4323
|
res = case resource_or_path
|
4324
4324
|
when Google::Ads::GoogleAds::V16::Resources::BiddingStrategy
|
@@ -4331,15 +4331,15 @@ module Google
|
|
4331
4331
|
else
|
4332
4332
|
unless Google::Ads::GoogleAds::V16::Resources::BiddingStrategy === res
|
4333
4333
|
raise ArgumentError.new(
|
4334
|
-
"Called #{__method__} with instance of wrong type:"\
|
4335
|
-
" #{res.class} want #{operation.update_class}"\
|
4334
|
+
"Called #{__method__} with instance of wrong type:" \
|
4335
|
+
" #{res.class} want #{operation.update_class}" \
|
4336
4336
|
" or String representing resource name"
|
4337
4337
|
)
|
4338
4338
|
end
|
4339
4339
|
end
|
4340
4340
|
|
4341
4341
|
op = Google::Ads::GoogleAds::V16::Services::BiddingStrategyOperation.new
|
4342
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4342
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4343
4343
|
op["update"] = res
|
4344
4344
|
op
|
4345
4345
|
end
|
@@ -4357,7 +4357,7 @@ module Google
|
|
4357
4357
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::CampaignAsset] a resource instance to update
|
4358
4358
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4359
4359
|
# @return [Google::Ads::GoogleAds::V16::Services::CampaignAssetOperation] the operation instance to update the resource
|
4360
|
-
def self.campaign_asset(resource_or_path, &
|
4360
|
+
def self.campaign_asset(resource_or_path, &)
|
4361
4361
|
require "google/ads/google_ads/v16/services/campaign_asset_service_pb"
|
4362
4362
|
res = case resource_or_path
|
4363
4363
|
when Google::Ads::GoogleAds::V16::Resources::CampaignAsset
|
@@ -4370,15 +4370,15 @@ module Google
|
|
4370
4370
|
else
|
4371
4371
|
unless Google::Ads::GoogleAds::V16::Resources::CampaignAsset === res
|
4372
4372
|
raise ArgumentError.new(
|
4373
|
-
"Called #{__method__} with instance of wrong type:"\
|
4374
|
-
" #{res.class} want #{operation.update_class}"\
|
4373
|
+
"Called #{__method__} with instance of wrong type:" \
|
4374
|
+
" #{res.class} want #{operation.update_class}" \
|
4375
4375
|
" or String representing resource name"
|
4376
4376
|
)
|
4377
4377
|
end
|
4378
4378
|
end
|
4379
4379
|
|
4380
4380
|
op = Google::Ads::GoogleAds::V16::Services::CampaignAssetOperation.new
|
4381
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4381
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4382
4382
|
op["update"] = res
|
4383
4383
|
op
|
4384
4384
|
end
|
@@ -4396,7 +4396,7 @@ module Google
|
|
4396
4396
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::CampaignBidModifier] a resource instance to update
|
4397
4397
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4398
4398
|
# @return [Google::Ads::GoogleAds::V16::Services::CampaignBidModifierOperation] the operation instance to update the resource
|
4399
|
-
def self.campaign_bid_modifier(resource_or_path, &
|
4399
|
+
def self.campaign_bid_modifier(resource_or_path, &)
|
4400
4400
|
require "google/ads/google_ads/v16/services/campaign_bid_modifier_service_pb"
|
4401
4401
|
res = case resource_or_path
|
4402
4402
|
when Google::Ads::GoogleAds::V16::Resources::CampaignBidModifier
|
@@ -4409,15 +4409,15 @@ module Google
|
|
4409
4409
|
else
|
4410
4410
|
unless Google::Ads::GoogleAds::V16::Resources::CampaignBidModifier === res
|
4411
4411
|
raise ArgumentError.new(
|
4412
|
-
"Called #{__method__} with instance of wrong type:"\
|
4413
|
-
" #{res.class} want #{operation.update_class}"\
|
4412
|
+
"Called #{__method__} with instance of wrong type:" \
|
4413
|
+
" #{res.class} want #{operation.update_class}" \
|
4414
4414
|
" or String representing resource name"
|
4415
4415
|
)
|
4416
4416
|
end
|
4417
4417
|
end
|
4418
4418
|
|
4419
4419
|
op = Google::Ads::GoogleAds::V16::Services::CampaignBidModifierOperation.new
|
4420
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4420
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4421
4421
|
op["update"] = res
|
4422
4422
|
op
|
4423
4423
|
end
|
@@ -4435,7 +4435,7 @@ module Google
|
|
4435
4435
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::CampaignBudget] a resource instance to update
|
4436
4436
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4437
4437
|
# @return [Google::Ads::GoogleAds::V16::Services::CampaignBudgetOperation] the operation instance to update the resource
|
4438
|
-
def self.campaign_budget(resource_or_path, &
|
4438
|
+
def self.campaign_budget(resource_or_path, &)
|
4439
4439
|
require "google/ads/google_ads/v16/services/campaign_budget_service_pb"
|
4440
4440
|
res = case resource_or_path
|
4441
4441
|
when Google::Ads::GoogleAds::V16::Resources::CampaignBudget
|
@@ -4448,15 +4448,15 @@ module Google
|
|
4448
4448
|
else
|
4449
4449
|
unless Google::Ads::GoogleAds::V16::Resources::CampaignBudget === res
|
4450
4450
|
raise ArgumentError.new(
|
4451
|
-
"Called #{__method__} with instance of wrong type:"\
|
4452
|
-
" #{res.class} want #{operation.update_class}"\
|
4451
|
+
"Called #{__method__} with instance of wrong type:" \
|
4452
|
+
" #{res.class} want #{operation.update_class}" \
|
4453
4453
|
" or String representing resource name"
|
4454
4454
|
)
|
4455
4455
|
end
|
4456
4456
|
end
|
4457
4457
|
|
4458
4458
|
op = Google::Ads::GoogleAds::V16::Services::CampaignBudgetOperation.new
|
4459
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4459
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4460
4460
|
op["update"] = res
|
4461
4461
|
op
|
4462
4462
|
end
|
@@ -4474,7 +4474,7 @@ module Google
|
|
4474
4474
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::CampaignConversionGoal] a resource instance to update
|
4475
4475
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4476
4476
|
# @return [Google::Ads::GoogleAds::V16::Services::CampaignConversionGoalOperation] the operation instance to update the resource
|
4477
|
-
def self.campaign_conversion_goal(resource_or_path, &
|
4477
|
+
def self.campaign_conversion_goal(resource_or_path, &)
|
4478
4478
|
require "google/ads/google_ads/v16/services/campaign_conversion_goal_service_pb"
|
4479
4479
|
res = case resource_or_path
|
4480
4480
|
when Google::Ads::GoogleAds::V16::Resources::CampaignConversionGoal
|
@@ -4487,15 +4487,15 @@ module Google
|
|
4487
4487
|
else
|
4488
4488
|
unless Google::Ads::GoogleAds::V16::Resources::CampaignConversionGoal === res
|
4489
4489
|
raise ArgumentError.new(
|
4490
|
-
"Called #{__method__} with instance of wrong type:"\
|
4491
|
-
" #{res.class} want #{operation.update_class}"\
|
4490
|
+
"Called #{__method__} with instance of wrong type:" \
|
4491
|
+
" #{res.class} want #{operation.update_class}" \
|
4492
4492
|
" or String representing resource name"
|
4493
4493
|
)
|
4494
4494
|
end
|
4495
4495
|
end
|
4496
4496
|
|
4497
4497
|
op = Google::Ads::GoogleAds::V16::Services::CampaignConversionGoalOperation.new
|
4498
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4498
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4499
4499
|
op["update"] = res
|
4500
4500
|
op
|
4501
4501
|
end
|
@@ -4513,7 +4513,7 @@ module Google
|
|
4513
4513
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::CampaignCriterion] a resource instance to update
|
4514
4514
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4515
4515
|
# @return [Google::Ads::GoogleAds::V16::Services::CampaignCriterionOperation] the operation instance to update the resource
|
4516
|
-
def self.campaign_criterion(resource_or_path, &
|
4516
|
+
def self.campaign_criterion(resource_or_path, &)
|
4517
4517
|
require "google/ads/google_ads/v16/services/campaign_criterion_service_pb"
|
4518
4518
|
res = case resource_or_path
|
4519
4519
|
when Google::Ads::GoogleAds::V16::Resources::CampaignCriterion
|
@@ -4526,15 +4526,15 @@ module Google
|
|
4526
4526
|
else
|
4527
4527
|
unless Google::Ads::GoogleAds::V16::Resources::CampaignCriterion === res
|
4528
4528
|
raise ArgumentError.new(
|
4529
|
-
"Called #{__method__} with instance of wrong type:"\
|
4530
|
-
" #{res.class} want #{operation.update_class}"\
|
4529
|
+
"Called #{__method__} with instance of wrong type:" \
|
4530
|
+
" #{res.class} want #{operation.update_class}" \
|
4531
4531
|
" or String representing resource name"
|
4532
4532
|
)
|
4533
4533
|
end
|
4534
4534
|
end
|
4535
4535
|
|
4536
4536
|
op = Google::Ads::GoogleAds::V16::Services::CampaignCriterionOperation.new
|
4537
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4537
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4538
4538
|
op["update"] = res
|
4539
4539
|
op
|
4540
4540
|
end
|
@@ -4552,7 +4552,7 @@ module Google
|
|
4552
4552
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::CampaignDraft] a resource instance to update
|
4553
4553
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4554
4554
|
# @return [Google::Ads::GoogleAds::V16::Services::CampaignDraftOperation] the operation instance to update the resource
|
4555
|
-
def self.campaign_draft(resource_or_path, &
|
4555
|
+
def self.campaign_draft(resource_or_path, &)
|
4556
4556
|
require "google/ads/google_ads/v16/services/campaign_draft_service_pb"
|
4557
4557
|
res = case resource_or_path
|
4558
4558
|
when Google::Ads::GoogleAds::V16::Resources::CampaignDraft
|
@@ -4565,15 +4565,15 @@ module Google
|
|
4565
4565
|
else
|
4566
4566
|
unless Google::Ads::GoogleAds::V16::Resources::CampaignDraft === res
|
4567
4567
|
raise ArgumentError.new(
|
4568
|
-
"Called #{__method__} with instance of wrong type:"\
|
4569
|
-
" #{res.class} want #{operation.update_class}"\
|
4568
|
+
"Called #{__method__} with instance of wrong type:" \
|
4569
|
+
" #{res.class} want #{operation.update_class}" \
|
4570
4570
|
" or String representing resource name"
|
4571
4571
|
)
|
4572
4572
|
end
|
4573
4573
|
end
|
4574
4574
|
|
4575
4575
|
op = Google::Ads::GoogleAds::V16::Services::CampaignDraftOperation.new
|
4576
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4576
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4577
4577
|
op["update"] = res
|
4578
4578
|
op
|
4579
4579
|
end
|
@@ -4591,7 +4591,7 @@ module Google
|
|
4591
4591
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::CampaignExtensionSetting] a resource instance to update
|
4592
4592
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4593
4593
|
# @return [Google::Ads::GoogleAds::V16::Services::CampaignExtensionSettingOperation] the operation instance to update the resource
|
4594
|
-
def self.campaign_extension_setting(resource_or_path, &
|
4594
|
+
def self.campaign_extension_setting(resource_or_path, &)
|
4595
4595
|
require "google/ads/google_ads/v16/services/campaign_extension_setting_service_pb"
|
4596
4596
|
res = case resource_or_path
|
4597
4597
|
when Google::Ads::GoogleAds::V16::Resources::CampaignExtensionSetting
|
@@ -4604,15 +4604,15 @@ module Google
|
|
4604
4604
|
else
|
4605
4605
|
unless Google::Ads::GoogleAds::V16::Resources::CampaignExtensionSetting === res
|
4606
4606
|
raise ArgumentError.new(
|
4607
|
-
"Called #{__method__} with instance of wrong type:"\
|
4608
|
-
" #{res.class} want #{operation.update_class}"\
|
4607
|
+
"Called #{__method__} with instance of wrong type:" \
|
4608
|
+
" #{res.class} want #{operation.update_class}" \
|
4609
4609
|
" or String representing resource name"
|
4610
4610
|
)
|
4611
4611
|
end
|
4612
4612
|
end
|
4613
4613
|
|
4614
4614
|
op = Google::Ads::GoogleAds::V16::Services::CampaignExtensionSettingOperation.new
|
4615
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4615
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4616
4616
|
op["update"] = res
|
4617
4617
|
op
|
4618
4618
|
end
|
@@ -4630,7 +4630,7 @@ module Google
|
|
4630
4630
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::CampaignFeed] a resource instance to update
|
4631
4631
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4632
4632
|
# @return [Google::Ads::GoogleAds::V16::Services::CampaignFeedOperation] the operation instance to update the resource
|
4633
|
-
def self.campaign_feed(resource_or_path, &
|
4633
|
+
def self.campaign_feed(resource_or_path, &)
|
4634
4634
|
require "google/ads/google_ads/v16/services/campaign_feed_service_pb"
|
4635
4635
|
res = case resource_or_path
|
4636
4636
|
when Google::Ads::GoogleAds::V16::Resources::CampaignFeed
|
@@ -4643,15 +4643,15 @@ module Google
|
|
4643
4643
|
else
|
4644
4644
|
unless Google::Ads::GoogleAds::V16::Resources::CampaignFeed === res
|
4645
4645
|
raise ArgumentError.new(
|
4646
|
-
"Called #{__method__} with instance of wrong type:"\
|
4647
|
-
" #{res.class} want #{operation.update_class}"\
|
4646
|
+
"Called #{__method__} with instance of wrong type:" \
|
4647
|
+
" #{res.class} want #{operation.update_class}" \
|
4648
4648
|
" or String representing resource name"
|
4649
4649
|
)
|
4650
4650
|
end
|
4651
4651
|
end
|
4652
4652
|
|
4653
4653
|
op = Google::Ads::GoogleAds::V16::Services::CampaignFeedOperation.new
|
4654
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4654
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4655
4655
|
op["update"] = res
|
4656
4656
|
op
|
4657
4657
|
end
|
@@ -4669,7 +4669,7 @@ module Google
|
|
4669
4669
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::CampaignGroup] a resource instance to update
|
4670
4670
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4671
4671
|
# @return [Google::Ads::GoogleAds::V16::Services::CampaignGroupOperation] the operation instance to update the resource
|
4672
|
-
def self.campaign_group(resource_or_path, &
|
4672
|
+
def self.campaign_group(resource_or_path, &)
|
4673
4673
|
require "google/ads/google_ads/v16/services/campaign_group_service_pb"
|
4674
4674
|
res = case resource_or_path
|
4675
4675
|
when Google::Ads::GoogleAds::V16::Resources::CampaignGroup
|
@@ -4682,15 +4682,15 @@ module Google
|
|
4682
4682
|
else
|
4683
4683
|
unless Google::Ads::GoogleAds::V16::Resources::CampaignGroup === res
|
4684
4684
|
raise ArgumentError.new(
|
4685
|
-
"Called #{__method__} with instance of wrong type:"\
|
4686
|
-
" #{res.class} want #{operation.update_class}"\
|
4685
|
+
"Called #{__method__} with instance of wrong type:" \
|
4686
|
+
" #{res.class} want #{operation.update_class}" \
|
4687
4687
|
" or String representing resource name"
|
4688
4688
|
)
|
4689
4689
|
end
|
4690
4690
|
end
|
4691
4691
|
|
4692
4692
|
op = Google::Ads::GoogleAds::V16::Services::CampaignGroupOperation.new
|
4693
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4693
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4694
4694
|
op["update"] = res
|
4695
4695
|
op
|
4696
4696
|
end
|
@@ -4708,7 +4708,7 @@ module Google
|
|
4708
4708
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::Campaign] a resource instance to update
|
4709
4709
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4710
4710
|
# @return [Google::Ads::GoogleAds::V16::Services::CampaignOperation] the operation instance to update the resource
|
4711
|
-
def self.campaign(resource_or_path, &
|
4711
|
+
def self.campaign(resource_or_path, &)
|
4712
4712
|
require "google/ads/google_ads/v16/services/campaign_service_pb"
|
4713
4713
|
res = case resource_or_path
|
4714
4714
|
when Google::Ads::GoogleAds::V16::Resources::Campaign
|
@@ -4721,15 +4721,15 @@ module Google
|
|
4721
4721
|
else
|
4722
4722
|
unless Google::Ads::GoogleAds::V16::Resources::Campaign === res
|
4723
4723
|
raise ArgumentError.new(
|
4724
|
-
"Called #{__method__} with instance of wrong type:"\
|
4725
|
-
" #{res.class} want #{operation.update_class}"\
|
4724
|
+
"Called #{__method__} with instance of wrong type:" \
|
4725
|
+
" #{res.class} want #{operation.update_class}" \
|
4726
4726
|
" or String representing resource name"
|
4727
4727
|
)
|
4728
4728
|
end
|
4729
4729
|
end
|
4730
4730
|
|
4731
4731
|
op = Google::Ads::GoogleAds::V16::Services::CampaignOperation.new
|
4732
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4732
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4733
4733
|
op["update"] = res
|
4734
4734
|
op
|
4735
4735
|
end
|
@@ -4747,7 +4747,7 @@ module Google
|
|
4747
4747
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::ConversionAction] a resource instance to update
|
4748
4748
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4749
4749
|
# @return [Google::Ads::GoogleAds::V16::Services::ConversionActionOperation] the operation instance to update the resource
|
4750
|
-
def self.conversion_action(resource_or_path, &
|
4750
|
+
def self.conversion_action(resource_or_path, &)
|
4751
4751
|
require "google/ads/google_ads/v16/services/conversion_action_service_pb"
|
4752
4752
|
res = case resource_or_path
|
4753
4753
|
when Google::Ads::GoogleAds::V16::Resources::ConversionAction
|
@@ -4760,15 +4760,15 @@ module Google
|
|
4760
4760
|
else
|
4761
4761
|
unless Google::Ads::GoogleAds::V16::Resources::ConversionAction === res
|
4762
4762
|
raise ArgumentError.new(
|
4763
|
-
"Called #{__method__} with instance of wrong type:"\
|
4764
|
-
" #{res.class} want #{operation.update_class}"\
|
4763
|
+
"Called #{__method__} with instance of wrong type:" \
|
4764
|
+
" #{res.class} want #{operation.update_class}" \
|
4765
4765
|
" or String representing resource name"
|
4766
4766
|
)
|
4767
4767
|
end
|
4768
4768
|
end
|
4769
4769
|
|
4770
4770
|
op = Google::Ads::GoogleAds::V16::Services::ConversionActionOperation.new
|
4771
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4771
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4772
4772
|
op["update"] = res
|
4773
4773
|
op
|
4774
4774
|
end
|
@@ -4786,7 +4786,7 @@ module Google
|
|
4786
4786
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::ConversionCustomVariable] a resource instance to update
|
4787
4787
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4788
4788
|
# @return [Google::Ads::GoogleAds::V16::Services::ConversionCustomVariableOperation] the operation instance to update the resource
|
4789
|
-
def self.conversion_custom_variable(resource_or_path, &
|
4789
|
+
def self.conversion_custom_variable(resource_or_path, &)
|
4790
4790
|
require "google/ads/google_ads/v16/services/conversion_custom_variable_service_pb"
|
4791
4791
|
res = case resource_or_path
|
4792
4792
|
when Google::Ads::GoogleAds::V16::Resources::ConversionCustomVariable
|
@@ -4799,15 +4799,15 @@ module Google
|
|
4799
4799
|
else
|
4800
4800
|
unless Google::Ads::GoogleAds::V16::Resources::ConversionCustomVariable === res
|
4801
4801
|
raise ArgumentError.new(
|
4802
|
-
"Called #{__method__} with instance of wrong type:"\
|
4803
|
-
" #{res.class} want #{operation.update_class}"\
|
4802
|
+
"Called #{__method__} with instance of wrong type:" \
|
4803
|
+
" #{res.class} want #{operation.update_class}" \
|
4804
4804
|
" or String representing resource name"
|
4805
4805
|
)
|
4806
4806
|
end
|
4807
4807
|
end
|
4808
4808
|
|
4809
4809
|
op = Google::Ads::GoogleAds::V16::Services::ConversionCustomVariableOperation.new
|
4810
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4810
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4811
4811
|
op["update"] = res
|
4812
4812
|
op
|
4813
4813
|
end
|
@@ -4825,7 +4825,7 @@ module Google
|
|
4825
4825
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::ConversionGoalCampaignConfig] a resource instance to update
|
4826
4826
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4827
4827
|
# @return [Google::Ads::GoogleAds::V16::Services::ConversionGoalCampaignConfigOperation] the operation instance to update the resource
|
4828
|
-
def self.conversion_goal_campaign_config(resource_or_path, &
|
4828
|
+
def self.conversion_goal_campaign_config(resource_or_path, &)
|
4829
4829
|
require "google/ads/google_ads/v16/services/conversion_goal_campaign_config_service_pb"
|
4830
4830
|
res = case resource_or_path
|
4831
4831
|
when Google::Ads::GoogleAds::V16::Resources::ConversionGoalCampaignConfig
|
@@ -4838,15 +4838,15 @@ module Google
|
|
4838
4838
|
else
|
4839
4839
|
unless Google::Ads::GoogleAds::V16::Resources::ConversionGoalCampaignConfig === res
|
4840
4840
|
raise ArgumentError.new(
|
4841
|
-
"Called #{__method__} with instance of wrong type:"\
|
4842
|
-
" #{res.class} want #{operation.update_class}"\
|
4841
|
+
"Called #{__method__} with instance of wrong type:" \
|
4842
|
+
" #{res.class} want #{operation.update_class}" \
|
4843
4843
|
" or String representing resource name"
|
4844
4844
|
)
|
4845
4845
|
end
|
4846
4846
|
end
|
4847
4847
|
|
4848
4848
|
op = Google::Ads::GoogleAds::V16::Services::ConversionGoalCampaignConfigOperation.new
|
4849
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4849
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4850
4850
|
op["update"] = res
|
4851
4851
|
op
|
4852
4852
|
end
|
@@ -4864,7 +4864,7 @@ module Google
|
|
4864
4864
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::ConversionValueRule] a resource instance to update
|
4865
4865
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4866
4866
|
# @return [Google::Ads::GoogleAds::V16::Services::ConversionValueRuleOperation] the operation instance to update the resource
|
4867
|
-
def self.conversion_value_rule(resource_or_path, &
|
4867
|
+
def self.conversion_value_rule(resource_or_path, &)
|
4868
4868
|
require "google/ads/google_ads/v16/services/conversion_value_rule_service_pb"
|
4869
4869
|
res = case resource_or_path
|
4870
4870
|
when Google::Ads::GoogleAds::V16::Resources::ConversionValueRule
|
@@ -4877,15 +4877,15 @@ module Google
|
|
4877
4877
|
else
|
4878
4878
|
unless Google::Ads::GoogleAds::V16::Resources::ConversionValueRule === res
|
4879
4879
|
raise ArgumentError.new(
|
4880
|
-
"Called #{__method__} with instance of wrong type:"\
|
4881
|
-
" #{res.class} want #{operation.update_class}"\
|
4880
|
+
"Called #{__method__} with instance of wrong type:" \
|
4881
|
+
" #{res.class} want #{operation.update_class}" \
|
4882
4882
|
" or String representing resource name"
|
4883
4883
|
)
|
4884
4884
|
end
|
4885
4885
|
end
|
4886
4886
|
|
4887
4887
|
op = Google::Ads::GoogleAds::V16::Services::ConversionValueRuleOperation.new
|
4888
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4888
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4889
4889
|
op["update"] = res
|
4890
4890
|
op
|
4891
4891
|
end
|
@@ -4903,7 +4903,7 @@ module Google
|
|
4903
4903
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::ConversionValueRuleSet] a resource instance to update
|
4904
4904
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4905
4905
|
# @return [Google::Ads::GoogleAds::V16::Services::ConversionValueRuleSetOperation] the operation instance to update the resource
|
4906
|
-
def self.conversion_value_rule_set(resource_or_path, &
|
4906
|
+
def self.conversion_value_rule_set(resource_or_path, &)
|
4907
4907
|
require "google/ads/google_ads/v16/services/conversion_value_rule_set_service_pb"
|
4908
4908
|
res = case resource_or_path
|
4909
4909
|
when Google::Ads::GoogleAds::V16::Resources::ConversionValueRuleSet
|
@@ -4916,15 +4916,15 @@ module Google
|
|
4916
4916
|
else
|
4917
4917
|
unless Google::Ads::GoogleAds::V16::Resources::ConversionValueRuleSet === res
|
4918
4918
|
raise ArgumentError.new(
|
4919
|
-
"Called #{__method__} with instance of wrong type:"\
|
4920
|
-
" #{res.class} want #{operation.update_class}"\
|
4919
|
+
"Called #{__method__} with instance of wrong type:" \
|
4920
|
+
" #{res.class} want #{operation.update_class}" \
|
4921
4921
|
" or String representing resource name"
|
4922
4922
|
)
|
4923
4923
|
end
|
4924
4924
|
end
|
4925
4925
|
|
4926
4926
|
op = Google::Ads::GoogleAds::V16::Services::ConversionValueRuleSetOperation.new
|
4927
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4927
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4928
4928
|
op["update"] = res
|
4929
4929
|
op
|
4930
4930
|
end
|
@@ -4942,7 +4942,7 @@ module Google
|
|
4942
4942
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::CustomConversionGoal] a resource instance to update
|
4943
4943
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4944
4944
|
# @return [Google::Ads::GoogleAds::V16::Services::CustomConversionGoalOperation] the operation instance to update the resource
|
4945
|
-
def self.custom_conversion_goal(resource_or_path, &
|
4945
|
+
def self.custom_conversion_goal(resource_or_path, &)
|
4946
4946
|
require "google/ads/google_ads/v16/services/custom_conversion_goal_service_pb"
|
4947
4947
|
res = case resource_or_path
|
4948
4948
|
when Google::Ads::GoogleAds::V16::Resources::CustomConversionGoal
|
@@ -4955,15 +4955,15 @@ module Google
|
|
4955
4955
|
else
|
4956
4956
|
unless Google::Ads::GoogleAds::V16::Resources::CustomConversionGoal === res
|
4957
4957
|
raise ArgumentError.new(
|
4958
|
-
"Called #{__method__} with instance of wrong type:"\
|
4959
|
-
" #{res.class} want #{operation.update_class}"\
|
4958
|
+
"Called #{__method__} with instance of wrong type:" \
|
4959
|
+
" #{res.class} want #{operation.update_class}" \
|
4960
4960
|
" or String representing resource name"
|
4961
4961
|
)
|
4962
4962
|
end
|
4963
4963
|
end
|
4964
4964
|
|
4965
4965
|
op = Google::Ads::GoogleAds::V16::Services::CustomConversionGoalOperation.new
|
4966
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
4966
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
4967
4967
|
op["update"] = res
|
4968
4968
|
op
|
4969
4969
|
end
|
@@ -4981,7 +4981,7 @@ module Google
|
|
4981
4981
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::CustomerAsset] a resource instance to update
|
4982
4982
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
4983
4983
|
# @return [Google::Ads::GoogleAds::V16::Services::CustomerAssetOperation] the operation instance to update the resource
|
4984
|
-
def self.customer_asset(resource_or_path, &
|
4984
|
+
def self.customer_asset(resource_or_path, &)
|
4985
4985
|
require "google/ads/google_ads/v16/services/customer_asset_service_pb"
|
4986
4986
|
res = case resource_or_path
|
4987
4987
|
when Google::Ads::GoogleAds::V16::Resources::CustomerAsset
|
@@ -4994,15 +4994,15 @@ module Google
|
|
4994
4994
|
else
|
4995
4995
|
unless Google::Ads::GoogleAds::V16::Resources::CustomerAsset === res
|
4996
4996
|
raise ArgumentError.new(
|
4997
|
-
"Called #{__method__} with instance of wrong type:"\
|
4998
|
-
" #{res.class} want #{operation.update_class}"\
|
4997
|
+
"Called #{__method__} with instance of wrong type:" \
|
4998
|
+
" #{res.class} want #{operation.update_class}" \
|
4999
4999
|
" or String representing resource name"
|
5000
5000
|
)
|
5001
5001
|
end
|
5002
5002
|
end
|
5003
5003
|
|
5004
5004
|
op = Google::Ads::GoogleAds::V16::Services::CustomerAssetOperation.new
|
5005
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5005
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5006
5006
|
op["update"] = res
|
5007
5007
|
op
|
5008
5008
|
end
|
@@ -5020,7 +5020,7 @@ module Google
|
|
5020
5020
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::CustomerConversionGoal] a resource instance to update
|
5021
5021
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5022
5022
|
# @return [Google::Ads::GoogleAds::V16::Services::CustomerConversionGoalOperation] the operation instance to update the resource
|
5023
|
-
def self.customer_conversion_goal(resource_or_path, &
|
5023
|
+
def self.customer_conversion_goal(resource_or_path, &)
|
5024
5024
|
require "google/ads/google_ads/v16/services/customer_conversion_goal_service_pb"
|
5025
5025
|
res = case resource_or_path
|
5026
5026
|
when Google::Ads::GoogleAds::V16::Resources::CustomerConversionGoal
|
@@ -5033,15 +5033,15 @@ module Google
|
|
5033
5033
|
else
|
5034
5034
|
unless Google::Ads::GoogleAds::V16::Resources::CustomerConversionGoal === res
|
5035
5035
|
raise ArgumentError.new(
|
5036
|
-
"Called #{__method__} with instance of wrong type:"\
|
5037
|
-
" #{res.class} want #{operation.update_class}"\
|
5036
|
+
"Called #{__method__} with instance of wrong type:" \
|
5037
|
+
" #{res.class} want #{operation.update_class}" \
|
5038
5038
|
" or String representing resource name"
|
5039
5039
|
)
|
5040
5040
|
end
|
5041
5041
|
end
|
5042
5042
|
|
5043
5043
|
op = Google::Ads::GoogleAds::V16::Services::CustomerConversionGoalOperation.new
|
5044
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5044
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5045
5045
|
op["update"] = res
|
5046
5046
|
op
|
5047
5047
|
end
|
@@ -5059,7 +5059,7 @@ module Google
|
|
5059
5059
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::CustomerExtensionSetting] a resource instance to update
|
5060
5060
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5061
5061
|
# @return [Google::Ads::GoogleAds::V16::Services::CustomerExtensionSettingOperation] the operation instance to update the resource
|
5062
|
-
def self.customer_extension_setting(resource_or_path, &
|
5062
|
+
def self.customer_extension_setting(resource_or_path, &)
|
5063
5063
|
require "google/ads/google_ads/v16/services/customer_extension_setting_service_pb"
|
5064
5064
|
res = case resource_or_path
|
5065
5065
|
when Google::Ads::GoogleAds::V16::Resources::CustomerExtensionSetting
|
@@ -5072,15 +5072,15 @@ module Google
|
|
5072
5072
|
else
|
5073
5073
|
unless Google::Ads::GoogleAds::V16::Resources::CustomerExtensionSetting === res
|
5074
5074
|
raise ArgumentError.new(
|
5075
|
-
"Called #{__method__} with instance of wrong type:"\
|
5076
|
-
" #{res.class} want #{operation.update_class}"\
|
5075
|
+
"Called #{__method__} with instance of wrong type:" \
|
5076
|
+
" #{res.class} want #{operation.update_class}" \
|
5077
5077
|
" or String representing resource name"
|
5078
5078
|
)
|
5079
5079
|
end
|
5080
5080
|
end
|
5081
5081
|
|
5082
5082
|
op = Google::Ads::GoogleAds::V16::Services::CustomerExtensionSettingOperation.new
|
5083
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5083
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5084
5084
|
op["update"] = res
|
5085
5085
|
op
|
5086
5086
|
end
|
@@ -5098,7 +5098,7 @@ module Google
|
|
5098
5098
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::CustomerFeed] a resource instance to update
|
5099
5099
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5100
5100
|
# @return [Google::Ads::GoogleAds::V16::Services::CustomerFeedOperation] the operation instance to update the resource
|
5101
|
-
def self.customer_feed(resource_or_path, &
|
5101
|
+
def self.customer_feed(resource_or_path, &)
|
5102
5102
|
require "google/ads/google_ads/v16/services/customer_feed_service_pb"
|
5103
5103
|
res = case resource_or_path
|
5104
5104
|
when Google::Ads::GoogleAds::V16::Resources::CustomerFeed
|
@@ -5111,15 +5111,15 @@ module Google
|
|
5111
5111
|
else
|
5112
5112
|
unless Google::Ads::GoogleAds::V16::Resources::CustomerFeed === res
|
5113
5113
|
raise ArgumentError.new(
|
5114
|
-
"Called #{__method__} with instance of wrong type:"\
|
5115
|
-
" #{res.class} want #{operation.update_class}"\
|
5114
|
+
"Called #{__method__} with instance of wrong type:" \
|
5115
|
+
" #{res.class} want #{operation.update_class}" \
|
5116
5116
|
" or String representing resource name"
|
5117
5117
|
)
|
5118
5118
|
end
|
5119
5119
|
end
|
5120
5120
|
|
5121
5121
|
op = Google::Ads::GoogleAds::V16::Services::CustomerFeedOperation.new
|
5122
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5122
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5123
5123
|
op["update"] = res
|
5124
5124
|
op
|
5125
5125
|
end
|
@@ -5137,7 +5137,7 @@ module Google
|
|
5137
5137
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::Customer] a resource instance to update
|
5138
5138
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5139
5139
|
# @return [Google::Ads::GoogleAds::V16::Services::CustomerOperation] the operation instance to update the resource
|
5140
|
-
def self.customer(resource_or_path, &
|
5140
|
+
def self.customer(resource_or_path, &)
|
5141
5141
|
require "google/ads/google_ads/v16/services/customer_service_pb"
|
5142
5142
|
res = case resource_or_path
|
5143
5143
|
when Google::Ads::GoogleAds::V16::Resources::Customer
|
@@ -5150,15 +5150,15 @@ module Google
|
|
5150
5150
|
else
|
5151
5151
|
unless Google::Ads::GoogleAds::V16::Resources::Customer === res
|
5152
5152
|
raise ArgumentError.new(
|
5153
|
-
"Called #{__method__} with instance of wrong type:"\
|
5154
|
-
" #{res.class} want #{operation.update_class}"\
|
5153
|
+
"Called #{__method__} with instance of wrong type:" \
|
5154
|
+
" #{res.class} want #{operation.update_class}" \
|
5155
5155
|
" or String representing resource name"
|
5156
5156
|
)
|
5157
5157
|
end
|
5158
5158
|
end
|
5159
5159
|
|
5160
5160
|
op = Google::Ads::GoogleAds::V16::Services::CustomerOperation.new
|
5161
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5161
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5162
5162
|
op["update"] = res
|
5163
5163
|
op
|
5164
5164
|
end
|
@@ -5176,7 +5176,7 @@ module Google
|
|
5176
5176
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::ExperimentArm] a resource instance to update
|
5177
5177
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5178
5178
|
# @return [Google::Ads::GoogleAds::V16::Services::ExperimentArmOperation] the operation instance to update the resource
|
5179
|
-
def self.experiment_arm(resource_or_path, &
|
5179
|
+
def self.experiment_arm(resource_or_path, &)
|
5180
5180
|
require "google/ads/google_ads/v16/services/experiment_arm_service_pb"
|
5181
5181
|
res = case resource_or_path
|
5182
5182
|
when Google::Ads::GoogleAds::V16::Resources::ExperimentArm
|
@@ -5189,15 +5189,15 @@ module Google
|
|
5189
5189
|
else
|
5190
5190
|
unless Google::Ads::GoogleAds::V16::Resources::ExperimentArm === res
|
5191
5191
|
raise ArgumentError.new(
|
5192
|
-
"Called #{__method__} with instance of wrong type:"\
|
5193
|
-
" #{res.class} want #{operation.update_class}"\
|
5192
|
+
"Called #{__method__} with instance of wrong type:" \
|
5193
|
+
" #{res.class} want #{operation.update_class}" \
|
5194
5194
|
" or String representing resource name"
|
5195
5195
|
)
|
5196
5196
|
end
|
5197
5197
|
end
|
5198
5198
|
|
5199
5199
|
op = Google::Ads::GoogleAds::V16::Services::ExperimentArmOperation.new
|
5200
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5200
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5201
5201
|
op["update"] = res
|
5202
5202
|
op
|
5203
5203
|
end
|
@@ -5215,7 +5215,7 @@ module Google
|
|
5215
5215
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::Experiment] a resource instance to update
|
5216
5216
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5217
5217
|
# @return [Google::Ads::GoogleAds::V16::Services::ExperimentOperation] the operation instance to update the resource
|
5218
|
-
def self.experiment(resource_or_path, &
|
5218
|
+
def self.experiment(resource_or_path, &)
|
5219
5219
|
require "google/ads/google_ads/v16/services/experiment_service_pb"
|
5220
5220
|
res = case resource_or_path
|
5221
5221
|
when Google::Ads::GoogleAds::V16::Resources::Experiment
|
@@ -5228,15 +5228,15 @@ module Google
|
|
5228
5228
|
else
|
5229
5229
|
unless Google::Ads::GoogleAds::V16::Resources::Experiment === res
|
5230
5230
|
raise ArgumentError.new(
|
5231
|
-
"Called #{__method__} with instance of wrong type:"\
|
5232
|
-
" #{res.class} want #{operation.update_class}"\
|
5231
|
+
"Called #{__method__} with instance of wrong type:" \
|
5232
|
+
" #{res.class} want #{operation.update_class}" \
|
5233
5233
|
" or String representing resource name"
|
5234
5234
|
)
|
5235
5235
|
end
|
5236
5236
|
end
|
5237
5237
|
|
5238
5238
|
op = Google::Ads::GoogleAds::V16::Services::ExperimentOperation.new
|
5239
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5239
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5240
5240
|
op["update"] = res
|
5241
5241
|
op
|
5242
5242
|
end
|
@@ -5254,7 +5254,7 @@ module Google
|
|
5254
5254
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::ExtensionFeedItem] a resource instance to update
|
5255
5255
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5256
5256
|
# @return [Google::Ads::GoogleAds::V16::Services::ExtensionFeedItemOperation] the operation instance to update the resource
|
5257
|
-
def self.extension_feed_item(resource_or_path, &
|
5257
|
+
def self.extension_feed_item(resource_or_path, &)
|
5258
5258
|
require "google/ads/google_ads/v16/services/extension_feed_item_service_pb"
|
5259
5259
|
res = case resource_or_path
|
5260
5260
|
when Google::Ads::GoogleAds::V16::Resources::ExtensionFeedItem
|
@@ -5267,15 +5267,15 @@ module Google
|
|
5267
5267
|
else
|
5268
5268
|
unless Google::Ads::GoogleAds::V16::Resources::ExtensionFeedItem === res
|
5269
5269
|
raise ArgumentError.new(
|
5270
|
-
"Called #{__method__} with instance of wrong type:"\
|
5271
|
-
" #{res.class} want #{operation.update_class}"\
|
5270
|
+
"Called #{__method__} with instance of wrong type:" \
|
5271
|
+
" #{res.class} want #{operation.update_class}" \
|
5272
5272
|
" or String representing resource name"
|
5273
5273
|
)
|
5274
5274
|
end
|
5275
5275
|
end
|
5276
5276
|
|
5277
5277
|
op = Google::Ads::GoogleAds::V16::Services::ExtensionFeedItemOperation.new
|
5278
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5278
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5279
5279
|
op["update"] = res
|
5280
5280
|
op
|
5281
5281
|
end
|
@@ -5293,7 +5293,7 @@ module Google
|
|
5293
5293
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::FeedItem] a resource instance to update
|
5294
5294
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5295
5295
|
# @return [Google::Ads::GoogleAds::V16::Services::FeedItemOperation] the operation instance to update the resource
|
5296
|
-
def self.feed_item(resource_or_path, &
|
5296
|
+
def self.feed_item(resource_or_path, &)
|
5297
5297
|
require "google/ads/google_ads/v16/services/feed_item_service_pb"
|
5298
5298
|
res = case resource_or_path
|
5299
5299
|
when Google::Ads::GoogleAds::V16::Resources::FeedItem
|
@@ -5306,15 +5306,15 @@ module Google
|
|
5306
5306
|
else
|
5307
5307
|
unless Google::Ads::GoogleAds::V16::Resources::FeedItem === res
|
5308
5308
|
raise ArgumentError.new(
|
5309
|
-
"Called #{__method__} with instance of wrong type:"\
|
5310
|
-
" #{res.class} want #{operation.update_class}"\
|
5309
|
+
"Called #{__method__} with instance of wrong type:" \
|
5310
|
+
" #{res.class} want #{operation.update_class}" \
|
5311
5311
|
" or String representing resource name"
|
5312
5312
|
)
|
5313
5313
|
end
|
5314
5314
|
end
|
5315
5315
|
|
5316
5316
|
op = Google::Ads::GoogleAds::V16::Services::FeedItemOperation.new
|
5317
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5317
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5318
5318
|
op["update"] = res
|
5319
5319
|
op
|
5320
5320
|
end
|
@@ -5332,7 +5332,7 @@ module Google
|
|
5332
5332
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::FeedItemSet] a resource instance to update
|
5333
5333
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5334
5334
|
# @return [Google::Ads::GoogleAds::V16::Services::FeedItemSetOperation] the operation instance to update the resource
|
5335
|
-
def self.feed_item_set(resource_or_path, &
|
5335
|
+
def self.feed_item_set(resource_or_path, &)
|
5336
5336
|
require "google/ads/google_ads/v16/services/feed_item_set_service_pb"
|
5337
5337
|
res = case resource_or_path
|
5338
5338
|
when Google::Ads::GoogleAds::V16::Resources::FeedItemSet
|
@@ -5345,15 +5345,15 @@ module Google
|
|
5345
5345
|
else
|
5346
5346
|
unless Google::Ads::GoogleAds::V16::Resources::FeedItemSet === res
|
5347
5347
|
raise ArgumentError.new(
|
5348
|
-
"Called #{__method__} with instance of wrong type:"\
|
5349
|
-
" #{res.class} want #{operation.update_class}"\
|
5348
|
+
"Called #{__method__} with instance of wrong type:" \
|
5349
|
+
" #{res.class} want #{operation.update_class}" \
|
5350
5350
|
" or String representing resource name"
|
5351
5351
|
)
|
5352
5352
|
end
|
5353
5353
|
end
|
5354
5354
|
|
5355
5355
|
op = Google::Ads::GoogleAds::V16::Services::FeedItemSetOperation.new
|
5356
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5356
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5357
5357
|
op["update"] = res
|
5358
5358
|
op
|
5359
5359
|
end
|
@@ -5371,7 +5371,7 @@ module Google
|
|
5371
5371
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::Feed] a resource instance to update
|
5372
5372
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5373
5373
|
# @return [Google::Ads::GoogleAds::V16::Services::FeedOperation] the operation instance to update the resource
|
5374
|
-
def self.feed(resource_or_path, &
|
5374
|
+
def self.feed(resource_or_path, &)
|
5375
5375
|
require "google/ads/google_ads/v16/services/feed_service_pb"
|
5376
5376
|
res = case resource_or_path
|
5377
5377
|
when Google::Ads::GoogleAds::V16::Resources::Feed
|
@@ -5384,15 +5384,15 @@ module Google
|
|
5384
5384
|
else
|
5385
5385
|
unless Google::Ads::GoogleAds::V16::Resources::Feed === res
|
5386
5386
|
raise ArgumentError.new(
|
5387
|
-
"Called #{__method__} with instance of wrong type:"\
|
5388
|
-
" #{res.class} want #{operation.update_class}"\
|
5387
|
+
"Called #{__method__} with instance of wrong type:" \
|
5388
|
+
" #{res.class} want #{operation.update_class}" \
|
5389
5389
|
" or String representing resource name"
|
5390
5390
|
)
|
5391
5391
|
end
|
5392
5392
|
end
|
5393
5393
|
|
5394
5394
|
op = Google::Ads::GoogleAds::V16::Services::FeedOperation.new
|
5395
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5395
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5396
5396
|
op["update"] = res
|
5397
5397
|
op
|
5398
5398
|
end
|
@@ -5410,7 +5410,7 @@ module Google
|
|
5410
5410
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::KeywordPlanAdGroupKeyword] a resource instance to update
|
5411
5411
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5412
5412
|
# @return [Google::Ads::GoogleAds::V16::Services::KeywordPlanAdGroupKeywordOperation] the operation instance to update the resource
|
5413
|
-
def self.keyword_plan_ad_group_keyword(resource_or_path, &
|
5413
|
+
def self.keyword_plan_ad_group_keyword(resource_or_path, &)
|
5414
5414
|
require "google/ads/google_ads/v16/services/keyword_plan_ad_group_keyword_service_pb"
|
5415
5415
|
res = case resource_or_path
|
5416
5416
|
when Google::Ads::GoogleAds::V16::Resources::KeywordPlanAdGroupKeyword
|
@@ -5423,15 +5423,15 @@ module Google
|
|
5423
5423
|
else
|
5424
5424
|
unless Google::Ads::GoogleAds::V16::Resources::KeywordPlanAdGroupKeyword === res
|
5425
5425
|
raise ArgumentError.new(
|
5426
|
-
"Called #{__method__} with instance of wrong type:"\
|
5427
|
-
" #{res.class} want #{operation.update_class}"\
|
5426
|
+
"Called #{__method__} with instance of wrong type:" \
|
5427
|
+
" #{res.class} want #{operation.update_class}" \
|
5428
5428
|
" or String representing resource name"
|
5429
5429
|
)
|
5430
5430
|
end
|
5431
5431
|
end
|
5432
5432
|
|
5433
5433
|
op = Google::Ads::GoogleAds::V16::Services::KeywordPlanAdGroupKeywordOperation.new
|
5434
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5434
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5435
5435
|
op["update"] = res
|
5436
5436
|
op
|
5437
5437
|
end
|
@@ -5449,7 +5449,7 @@ module Google
|
|
5449
5449
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::KeywordPlanAdGroup] a resource instance to update
|
5450
5450
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5451
5451
|
# @return [Google::Ads::GoogleAds::V16::Services::KeywordPlanAdGroupOperation] the operation instance to update the resource
|
5452
|
-
def self.keyword_plan_ad_group(resource_or_path, &
|
5452
|
+
def self.keyword_plan_ad_group(resource_or_path, &)
|
5453
5453
|
require "google/ads/google_ads/v16/services/keyword_plan_ad_group_service_pb"
|
5454
5454
|
res = case resource_or_path
|
5455
5455
|
when Google::Ads::GoogleAds::V16::Resources::KeywordPlanAdGroup
|
@@ -5462,15 +5462,15 @@ module Google
|
|
5462
5462
|
else
|
5463
5463
|
unless Google::Ads::GoogleAds::V16::Resources::KeywordPlanAdGroup === res
|
5464
5464
|
raise ArgumentError.new(
|
5465
|
-
"Called #{__method__} with instance of wrong type:"\
|
5466
|
-
" #{res.class} want #{operation.update_class}"\
|
5465
|
+
"Called #{__method__} with instance of wrong type:" \
|
5466
|
+
" #{res.class} want #{operation.update_class}" \
|
5467
5467
|
" or String representing resource name"
|
5468
5468
|
)
|
5469
5469
|
end
|
5470
5470
|
end
|
5471
5471
|
|
5472
5472
|
op = Google::Ads::GoogleAds::V16::Services::KeywordPlanAdGroupOperation.new
|
5473
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5473
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5474
5474
|
op["update"] = res
|
5475
5475
|
op
|
5476
5476
|
end
|
@@ -5488,7 +5488,7 @@ module Google
|
|
5488
5488
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::KeywordPlanCampaignKeyword] a resource instance to update
|
5489
5489
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5490
5490
|
# @return [Google::Ads::GoogleAds::V16::Services::KeywordPlanCampaignKeywordOperation] the operation instance to update the resource
|
5491
|
-
def self.keyword_plan_campaign_keyword(resource_or_path, &
|
5491
|
+
def self.keyword_plan_campaign_keyword(resource_or_path, &)
|
5492
5492
|
require "google/ads/google_ads/v16/services/keyword_plan_campaign_keyword_service_pb"
|
5493
5493
|
res = case resource_or_path
|
5494
5494
|
when Google::Ads::GoogleAds::V16::Resources::KeywordPlanCampaignKeyword
|
@@ -5501,15 +5501,15 @@ module Google
|
|
5501
5501
|
else
|
5502
5502
|
unless Google::Ads::GoogleAds::V16::Resources::KeywordPlanCampaignKeyword === res
|
5503
5503
|
raise ArgumentError.new(
|
5504
|
-
"Called #{__method__} with instance of wrong type:"\
|
5505
|
-
" #{res.class} want #{operation.update_class}"\
|
5504
|
+
"Called #{__method__} with instance of wrong type:" \
|
5505
|
+
" #{res.class} want #{operation.update_class}" \
|
5506
5506
|
" or String representing resource name"
|
5507
5507
|
)
|
5508
5508
|
end
|
5509
5509
|
end
|
5510
5510
|
|
5511
5511
|
op = Google::Ads::GoogleAds::V16::Services::KeywordPlanCampaignKeywordOperation.new
|
5512
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5512
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5513
5513
|
op["update"] = res
|
5514
5514
|
op
|
5515
5515
|
end
|
@@ -5527,7 +5527,7 @@ module Google
|
|
5527
5527
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::KeywordPlanCampaign] a resource instance to update
|
5528
5528
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5529
5529
|
# @return [Google::Ads::GoogleAds::V16::Services::KeywordPlanCampaignOperation] the operation instance to update the resource
|
5530
|
-
def self.keyword_plan_campaign(resource_or_path, &
|
5530
|
+
def self.keyword_plan_campaign(resource_or_path, &)
|
5531
5531
|
require "google/ads/google_ads/v16/services/keyword_plan_campaign_service_pb"
|
5532
5532
|
res = case resource_or_path
|
5533
5533
|
when Google::Ads::GoogleAds::V16::Resources::KeywordPlanCampaign
|
@@ -5540,15 +5540,15 @@ module Google
|
|
5540
5540
|
else
|
5541
5541
|
unless Google::Ads::GoogleAds::V16::Resources::KeywordPlanCampaign === res
|
5542
5542
|
raise ArgumentError.new(
|
5543
|
-
"Called #{__method__} with instance of wrong type:"\
|
5544
|
-
" #{res.class} want #{operation.update_class}"\
|
5543
|
+
"Called #{__method__} with instance of wrong type:" \
|
5544
|
+
" #{res.class} want #{operation.update_class}" \
|
5545
5545
|
" or String representing resource name"
|
5546
5546
|
)
|
5547
5547
|
end
|
5548
5548
|
end
|
5549
5549
|
|
5550
5550
|
op = Google::Ads::GoogleAds::V16::Services::KeywordPlanCampaignOperation.new
|
5551
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5551
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5552
5552
|
op["update"] = res
|
5553
5553
|
op
|
5554
5554
|
end
|
@@ -5566,7 +5566,7 @@ module Google
|
|
5566
5566
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::KeywordPlan] a resource instance to update
|
5567
5567
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5568
5568
|
# @return [Google::Ads::GoogleAds::V16::Services::KeywordPlanOperation] the operation instance to update the resource
|
5569
|
-
def self.keyword_plan(resource_or_path, &
|
5569
|
+
def self.keyword_plan(resource_or_path, &)
|
5570
5570
|
require "google/ads/google_ads/v16/services/keyword_plan_service_pb"
|
5571
5571
|
res = case resource_or_path
|
5572
5572
|
when Google::Ads::GoogleAds::V16::Resources::KeywordPlan
|
@@ -5579,15 +5579,15 @@ module Google
|
|
5579
5579
|
else
|
5580
5580
|
unless Google::Ads::GoogleAds::V16::Resources::KeywordPlan === res
|
5581
5581
|
raise ArgumentError.new(
|
5582
|
-
"Called #{__method__} with instance of wrong type:"\
|
5583
|
-
" #{res.class} want #{operation.update_class}"\
|
5582
|
+
"Called #{__method__} with instance of wrong type:" \
|
5583
|
+
" #{res.class} want #{operation.update_class}" \
|
5584
5584
|
" or String representing resource name"
|
5585
5585
|
)
|
5586
5586
|
end
|
5587
5587
|
end
|
5588
5588
|
|
5589
5589
|
op = Google::Ads::GoogleAds::V16::Services::KeywordPlanOperation.new
|
5590
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5590
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5591
5591
|
op["update"] = res
|
5592
5592
|
op
|
5593
5593
|
end
|
@@ -5605,7 +5605,7 @@ module Google
|
|
5605
5605
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::Label] a resource instance to update
|
5606
5606
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5607
5607
|
# @return [Google::Ads::GoogleAds::V16::Services::LabelOperation] the operation instance to update the resource
|
5608
|
-
def self.label(resource_or_path, &
|
5608
|
+
def self.label(resource_or_path, &)
|
5609
5609
|
require "google/ads/google_ads/v16/services/label_service_pb"
|
5610
5610
|
res = case resource_or_path
|
5611
5611
|
when Google::Ads::GoogleAds::V16::Resources::Label
|
@@ -5618,15 +5618,15 @@ module Google
|
|
5618
5618
|
else
|
5619
5619
|
unless Google::Ads::GoogleAds::V16::Resources::Label === res
|
5620
5620
|
raise ArgumentError.new(
|
5621
|
-
"Called #{__method__} with instance of wrong type:"\
|
5622
|
-
" #{res.class} want #{operation.update_class}"\
|
5621
|
+
"Called #{__method__} with instance of wrong type:" \
|
5622
|
+
" #{res.class} want #{operation.update_class}" \
|
5623
5623
|
" or String representing resource name"
|
5624
5624
|
)
|
5625
5625
|
end
|
5626
5626
|
end
|
5627
5627
|
|
5628
5628
|
op = Google::Ads::GoogleAds::V16::Services::LabelOperation.new
|
5629
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5629
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5630
5630
|
op["update"] = res
|
5631
5631
|
op
|
5632
5632
|
end
|
@@ -5644,7 +5644,7 @@ module Google
|
|
5644
5644
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::RecommendationSubscription] a resource instance to update
|
5645
5645
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5646
5646
|
# @return [Google::Ads::GoogleAds::V16::Services::RecommendationSubscriptionOperation] the operation instance to update the resource
|
5647
|
-
def self.recommendation_subscription(resource_or_path, &
|
5647
|
+
def self.recommendation_subscription(resource_or_path, &)
|
5648
5648
|
require "google/ads/google_ads/v16/services/recommendation_subscription_service_pb"
|
5649
5649
|
res = case resource_or_path
|
5650
5650
|
when Google::Ads::GoogleAds::V16::Resources::RecommendationSubscription
|
@@ -5657,15 +5657,15 @@ module Google
|
|
5657
5657
|
else
|
5658
5658
|
unless Google::Ads::GoogleAds::V16::Resources::RecommendationSubscription === res
|
5659
5659
|
raise ArgumentError.new(
|
5660
|
-
"Called #{__method__} with instance of wrong type:"\
|
5661
|
-
" #{res.class} want #{operation.update_class}"\
|
5660
|
+
"Called #{__method__} with instance of wrong type:" \
|
5661
|
+
" #{res.class} want #{operation.update_class}" \
|
5662
5662
|
" or String representing resource name"
|
5663
5663
|
)
|
5664
5664
|
end
|
5665
5665
|
end
|
5666
5666
|
|
5667
5667
|
op = Google::Ads::GoogleAds::V16::Services::RecommendationSubscriptionOperation.new
|
5668
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5668
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5669
5669
|
op["update"] = res
|
5670
5670
|
op
|
5671
5671
|
end
|
@@ -5683,7 +5683,7 @@ module Google
|
|
5683
5683
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::RemarketingAction] a resource instance to update
|
5684
5684
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5685
5685
|
# @return [Google::Ads::GoogleAds::V16::Services::RemarketingActionOperation] the operation instance to update the resource
|
5686
|
-
def self.remarketing_action(resource_or_path, &
|
5686
|
+
def self.remarketing_action(resource_or_path, &)
|
5687
5687
|
require "google/ads/google_ads/v16/services/remarketing_action_service_pb"
|
5688
5688
|
res = case resource_or_path
|
5689
5689
|
when Google::Ads::GoogleAds::V16::Resources::RemarketingAction
|
@@ -5696,15 +5696,15 @@ module Google
|
|
5696
5696
|
else
|
5697
5697
|
unless Google::Ads::GoogleAds::V16::Resources::RemarketingAction === res
|
5698
5698
|
raise ArgumentError.new(
|
5699
|
-
"Called #{__method__} with instance of wrong type:"\
|
5700
|
-
" #{res.class} want #{operation.update_class}"\
|
5699
|
+
"Called #{__method__} with instance of wrong type:" \
|
5700
|
+
" #{res.class} want #{operation.update_class}" \
|
5701
5701
|
" or String representing resource name"
|
5702
5702
|
)
|
5703
5703
|
end
|
5704
5704
|
end
|
5705
5705
|
|
5706
5706
|
op = Google::Ads::GoogleAds::V16::Services::RemarketingActionOperation.new
|
5707
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5707
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5708
5708
|
op["update"] = res
|
5709
5709
|
op
|
5710
5710
|
end
|
@@ -5722,7 +5722,7 @@ module Google
|
|
5722
5722
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::SharedSet] a resource instance to update
|
5723
5723
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5724
5724
|
# @return [Google::Ads::GoogleAds::V16::Services::SharedSetOperation] the operation instance to update the resource
|
5725
|
-
def self.shared_set(resource_or_path, &
|
5725
|
+
def self.shared_set(resource_or_path, &)
|
5726
5726
|
require "google/ads/google_ads/v16/services/shared_set_service_pb"
|
5727
5727
|
res = case resource_or_path
|
5728
5728
|
when Google::Ads::GoogleAds::V16::Resources::SharedSet
|
@@ -5735,15 +5735,15 @@ module Google
|
|
5735
5735
|
else
|
5736
5736
|
unless Google::Ads::GoogleAds::V16::Resources::SharedSet === res
|
5737
5737
|
raise ArgumentError.new(
|
5738
|
-
"Called #{__method__} with instance of wrong type:"\
|
5739
|
-
" #{res.class} want #{operation.update_class}"\
|
5738
|
+
"Called #{__method__} with instance of wrong type:" \
|
5739
|
+
" #{res.class} want #{operation.update_class}" \
|
5740
5740
|
" or String representing resource name"
|
5741
5741
|
)
|
5742
5742
|
end
|
5743
5743
|
end
|
5744
5744
|
|
5745
5745
|
op = Google::Ads::GoogleAds::V16::Services::SharedSetOperation.new
|
5746
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5746
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5747
5747
|
op["update"] = res
|
5748
5748
|
op
|
5749
5749
|
end
|
@@ -5761,7 +5761,7 @@ module Google
|
|
5761
5761
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::SmartCampaignSetting] a resource instance to update
|
5762
5762
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5763
5763
|
# @return [Google::Ads::GoogleAds::V16::Services::SmartCampaignSettingOperation] the operation instance to update the resource
|
5764
|
-
def self.smart_campaign_setting(resource_or_path, &
|
5764
|
+
def self.smart_campaign_setting(resource_or_path, &)
|
5765
5765
|
require "google/ads/google_ads/v16/services/smart_campaign_setting_service_pb"
|
5766
5766
|
res = case resource_or_path
|
5767
5767
|
when Google::Ads::GoogleAds::V16::Resources::SmartCampaignSetting
|
@@ -5774,15 +5774,15 @@ module Google
|
|
5774
5774
|
else
|
5775
5775
|
unless Google::Ads::GoogleAds::V16::Resources::SmartCampaignSetting === res
|
5776
5776
|
raise ArgumentError.new(
|
5777
|
-
"Called #{__method__} with instance of wrong type:"\
|
5778
|
-
" #{res.class} want #{operation.update_class}"\
|
5777
|
+
"Called #{__method__} with instance of wrong type:" \
|
5778
|
+
" #{res.class} want #{operation.update_class}" \
|
5779
5779
|
" or String representing resource name"
|
5780
5780
|
)
|
5781
5781
|
end
|
5782
5782
|
end
|
5783
5783
|
|
5784
5784
|
op = Google::Ads::GoogleAds::V16::Services::SmartCampaignSettingOperation.new
|
5785
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5785
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5786
5786
|
op["update"] = res
|
5787
5787
|
op
|
5788
5788
|
end
|
@@ -5800,7 +5800,7 @@ module Google
|
|
5800
5800
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::UserList] a resource instance to update
|
5801
5801
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5802
5802
|
# @return [Google::Ads::GoogleAds::V16::Services::UserListOperation] the operation instance to update the resource
|
5803
|
-
def self.user_list(resource_or_path, &
|
5803
|
+
def self.user_list(resource_or_path, &)
|
5804
5804
|
require "google/ads/google_ads/v16/services/user_list_service_pb"
|
5805
5805
|
res = case resource_or_path
|
5806
5806
|
when Google::Ads::GoogleAds::V16::Resources::UserList
|
@@ -5813,15 +5813,15 @@ module Google
|
|
5813
5813
|
else
|
5814
5814
|
unless Google::Ads::GoogleAds::V16::Resources::UserList === res
|
5815
5815
|
raise ArgumentError.new(
|
5816
|
-
"Called #{__method__} with instance of wrong type:"\
|
5817
|
-
" #{res.class} want #{operation.update_class}"\
|
5816
|
+
"Called #{__method__} with instance of wrong type:" \
|
5817
|
+
" #{res.class} want #{operation.update_class}" \
|
5818
5818
|
" or String representing resource name"
|
5819
5819
|
)
|
5820
5820
|
end
|
5821
5821
|
end
|
5822
5822
|
|
5823
5823
|
op = Google::Ads::GoogleAds::V16::Services::UserListOperation.new
|
5824
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5824
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5825
5825
|
op["update"] = res
|
5826
5826
|
op
|
5827
5827
|
end
|
@@ -5839,7 +5839,7 @@ module Google
|
|
5839
5839
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::CampaignLifecycleGoal] a resource instance to update
|
5840
5840
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5841
5841
|
# @return [Google::Ads::GoogleAds::V16::Services::CampaignLifecycleGoalOperation] the operation instance to update the resource
|
5842
|
-
def self.campaign_lifecycle_goal(resource_or_path, &
|
5842
|
+
def self.campaign_lifecycle_goal(resource_or_path, &)
|
5843
5843
|
require "google/ads/google_ads/v16/services/campaign_lifecycle_goal_service_pb"
|
5844
5844
|
res = case resource_or_path
|
5845
5845
|
when Google::Ads::GoogleAds::V16::Resources::CampaignLifecycleGoal
|
@@ -5852,15 +5852,15 @@ module Google
|
|
5852
5852
|
else
|
5853
5853
|
unless Google::Ads::GoogleAds::V16::Resources::CampaignLifecycleGoal === res
|
5854
5854
|
raise ArgumentError.new(
|
5855
|
-
"Called #{__method__} with instance of wrong type:"\
|
5856
|
-
" #{res.class} want #{operation.update_class}"\
|
5855
|
+
"Called #{__method__} with instance of wrong type:" \
|
5856
|
+
" #{res.class} want #{operation.update_class}" \
|
5857
5857
|
" or String representing resource name"
|
5858
5858
|
)
|
5859
5859
|
end
|
5860
5860
|
end
|
5861
5861
|
|
5862
5862
|
op = Google::Ads::GoogleAds::V16::Services::CampaignLifecycleGoalOperation.new
|
5863
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5863
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5864
5864
|
op["update"] = res
|
5865
5865
|
op
|
5866
5866
|
end
|
@@ -5878,7 +5878,7 @@ module Google
|
|
5878
5878
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::CustomAudience] a resource instance to update
|
5879
5879
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5880
5880
|
# @return [Google::Ads::GoogleAds::V16::Services::CustomAudienceOperation] the operation instance to update the resource
|
5881
|
-
def self.custom_audience(resource_or_path, &
|
5881
|
+
def self.custom_audience(resource_or_path, &)
|
5882
5882
|
require "google/ads/google_ads/v16/services/custom_audience_service_pb"
|
5883
5883
|
res = case resource_or_path
|
5884
5884
|
when Google::Ads::GoogleAds::V16::Resources::CustomAudience
|
@@ -5891,15 +5891,15 @@ module Google
|
|
5891
5891
|
else
|
5892
5892
|
unless Google::Ads::GoogleAds::V16::Resources::CustomAudience === res
|
5893
5893
|
raise ArgumentError.new(
|
5894
|
-
"Called #{__method__} with instance of wrong type:"\
|
5895
|
-
" #{res.class} want #{operation.update_class}"\
|
5894
|
+
"Called #{__method__} with instance of wrong type:" \
|
5895
|
+
" #{res.class} want #{operation.update_class}" \
|
5896
5896
|
" or String representing resource name"
|
5897
5897
|
)
|
5898
5898
|
end
|
5899
5899
|
end
|
5900
5900
|
|
5901
5901
|
op = Google::Ads::GoogleAds::V16::Services::CustomAudienceOperation.new
|
5902
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5902
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5903
5903
|
op["update"] = res
|
5904
5904
|
op
|
5905
5905
|
end
|
@@ -5917,7 +5917,7 @@ module Google
|
|
5917
5917
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::CustomInterest] a resource instance to update
|
5918
5918
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5919
5919
|
# @return [Google::Ads::GoogleAds::V16::Services::CustomInterestOperation] the operation instance to update the resource
|
5920
|
-
def self.custom_interest(resource_or_path, &
|
5920
|
+
def self.custom_interest(resource_or_path, &)
|
5921
5921
|
require "google/ads/google_ads/v16/services/custom_interest_service_pb"
|
5922
5922
|
res = case resource_or_path
|
5923
5923
|
when Google::Ads::GoogleAds::V16::Resources::CustomInterest
|
@@ -5930,15 +5930,15 @@ module Google
|
|
5930
5930
|
else
|
5931
5931
|
unless Google::Ads::GoogleAds::V16::Resources::CustomInterest === res
|
5932
5932
|
raise ArgumentError.new(
|
5933
|
-
"Called #{__method__} with instance of wrong type:"\
|
5934
|
-
" #{res.class} want #{operation.update_class}"\
|
5933
|
+
"Called #{__method__} with instance of wrong type:" \
|
5934
|
+
" #{res.class} want #{operation.update_class}" \
|
5935
5935
|
" or String representing resource name"
|
5936
5936
|
)
|
5937
5937
|
end
|
5938
5938
|
end
|
5939
5939
|
|
5940
5940
|
op = Google::Ads::GoogleAds::V16::Services::CustomInterestOperation.new
|
5941
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5941
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5942
5942
|
op["update"] = res
|
5943
5943
|
op
|
5944
5944
|
end
|
@@ -5956,7 +5956,7 @@ module Google
|
|
5956
5956
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::CustomerClientLink] a resource instance to update
|
5957
5957
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5958
5958
|
# @return [Google::Ads::GoogleAds::V16::Services::CustomerClientLinkOperation] the operation instance to update the resource
|
5959
|
-
def self.customer_client_link(resource_or_path, &
|
5959
|
+
def self.customer_client_link(resource_or_path, &)
|
5960
5960
|
require "google/ads/google_ads/v16/services/customer_client_link_service_pb"
|
5961
5961
|
res = case resource_or_path
|
5962
5962
|
when Google::Ads::GoogleAds::V16::Resources::CustomerClientLink
|
@@ -5969,15 +5969,15 @@ module Google
|
|
5969
5969
|
else
|
5970
5970
|
unless Google::Ads::GoogleAds::V16::Resources::CustomerClientLink === res
|
5971
5971
|
raise ArgumentError.new(
|
5972
|
-
"Called #{__method__} with instance of wrong type:"\
|
5973
|
-
" #{res.class} want #{operation.update_class}"\
|
5972
|
+
"Called #{__method__} with instance of wrong type:" \
|
5973
|
+
" #{res.class} want #{operation.update_class}" \
|
5974
5974
|
" or String representing resource name"
|
5975
5975
|
)
|
5976
5976
|
end
|
5977
5977
|
end
|
5978
5978
|
|
5979
5979
|
op = Google::Ads::GoogleAds::V16::Services::CustomerClientLinkOperation.new
|
5980
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
5980
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
5981
5981
|
op["update"] = res
|
5982
5982
|
op
|
5983
5983
|
end
|
@@ -5995,7 +5995,7 @@ module Google
|
|
5995
5995
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::CustomerLifecycleGoal] a resource instance to update
|
5996
5996
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
5997
5997
|
# @return [Google::Ads::GoogleAds::V16::Services::CustomerLifecycleGoalOperation] the operation instance to update the resource
|
5998
|
-
def self.customer_lifecycle_goal(resource_or_path, &
|
5998
|
+
def self.customer_lifecycle_goal(resource_or_path, &)
|
5999
5999
|
require "google/ads/google_ads/v16/services/customer_lifecycle_goal_service_pb"
|
6000
6000
|
res = case resource_or_path
|
6001
6001
|
when Google::Ads::GoogleAds::V16::Resources::CustomerLifecycleGoal
|
@@ -6008,15 +6008,15 @@ module Google
|
|
6008
6008
|
else
|
6009
6009
|
unless Google::Ads::GoogleAds::V16::Resources::CustomerLifecycleGoal === res
|
6010
6010
|
raise ArgumentError.new(
|
6011
|
-
"Called #{__method__} with instance of wrong type:"\
|
6012
|
-
" #{res.class} want #{operation.update_class}"\
|
6011
|
+
"Called #{__method__} with instance of wrong type:" \
|
6012
|
+
" #{res.class} want #{operation.update_class}" \
|
6013
6013
|
" or String representing resource name"
|
6014
6014
|
)
|
6015
6015
|
end
|
6016
6016
|
end
|
6017
6017
|
|
6018
6018
|
op = Google::Ads::GoogleAds::V16::Services::CustomerLifecycleGoalOperation.new
|
6019
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
6019
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
6020
6020
|
op["update"] = res
|
6021
6021
|
op
|
6022
6022
|
end
|
@@ -6034,7 +6034,7 @@ module Google
|
|
6034
6034
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::CustomerManagerLink] a resource instance to update
|
6035
6035
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
6036
6036
|
# @return [Google::Ads::GoogleAds::V16::Services::CustomerManagerLinkOperation] the operation instance to update the resource
|
6037
|
-
def self.customer_manager_link(resource_or_path, &
|
6037
|
+
def self.customer_manager_link(resource_or_path, &)
|
6038
6038
|
require "google/ads/google_ads/v16/services/customer_manager_link_service_pb"
|
6039
6039
|
res = case resource_or_path
|
6040
6040
|
when Google::Ads::GoogleAds::V16::Resources::CustomerManagerLink
|
@@ -6047,15 +6047,15 @@ module Google
|
|
6047
6047
|
else
|
6048
6048
|
unless Google::Ads::GoogleAds::V16::Resources::CustomerManagerLink === res
|
6049
6049
|
raise ArgumentError.new(
|
6050
|
-
"Called #{__method__} with instance of wrong type:"\
|
6051
|
-
" #{res.class} want #{operation.update_class}"\
|
6050
|
+
"Called #{__method__} with instance of wrong type:" \
|
6051
|
+
" #{res.class} want #{operation.update_class}" \
|
6052
6052
|
" or String representing resource name"
|
6053
6053
|
)
|
6054
6054
|
end
|
6055
6055
|
end
|
6056
6056
|
|
6057
6057
|
op = Google::Ads::GoogleAds::V16::Services::CustomerManagerLinkOperation.new
|
6058
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
6058
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
6059
6059
|
op["update"] = res
|
6060
6060
|
op
|
6061
6061
|
end
|
@@ -6073,7 +6073,7 @@ module Google
|
|
6073
6073
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::CustomerSkAdNetworkConversionValueSchema] a resource instance to update
|
6074
6074
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
6075
6075
|
# @return [Google::Ads::GoogleAds::V16::Services::CustomerSkAdNetworkConversionValueSchemaOperation] the operation instance to update the resource
|
6076
|
-
def self.customer_sk_ad_network_conversion_value_schema(resource_or_path, &
|
6076
|
+
def self.customer_sk_ad_network_conversion_value_schema(resource_or_path, &)
|
6077
6077
|
require "google/ads/google_ads/v16/services/customer_sk_ad_network_conversion_value_schema_service_pb"
|
6078
6078
|
res = case resource_or_path
|
6079
6079
|
when Google::Ads::GoogleAds::V16::Resources::CustomerSkAdNetworkConversionValueSchema
|
@@ -6086,15 +6086,15 @@ module Google
|
|
6086
6086
|
else
|
6087
6087
|
unless Google::Ads::GoogleAds::V16::Resources::CustomerSkAdNetworkConversionValueSchema === res
|
6088
6088
|
raise ArgumentError.new(
|
6089
|
-
"Called #{__method__} with instance of wrong type:"\
|
6090
|
-
" #{res.class} want #{operation.update_class}"\
|
6089
|
+
"Called #{__method__} with instance of wrong type:" \
|
6090
|
+
" #{res.class} want #{operation.update_class}" \
|
6091
6091
|
" or String representing resource name"
|
6092
6092
|
)
|
6093
6093
|
end
|
6094
6094
|
end
|
6095
6095
|
|
6096
6096
|
op = Google::Ads::GoogleAds::V16::Services::CustomerSkAdNetworkConversionValueSchemaOperation.new
|
6097
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
6097
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
6098
6098
|
op["update"] = res
|
6099
6099
|
op
|
6100
6100
|
end
|
@@ -6112,7 +6112,7 @@ module Google
|
|
6112
6112
|
# @param resource [Google::Ads::GoogleAds::V16::Resources::CustomerUserAccess] a resource instance to update
|
6113
6113
|
# @yield the passed block is called and updates against `resource` are recordered in the update mask
|
6114
6114
|
# @return [Google::Ads::GoogleAds::V16::Services::CustomerUserAccessOperation] the operation instance to update the resource
|
6115
|
-
def self.customer_user_access(resource_or_path, &
|
6115
|
+
def self.customer_user_access(resource_or_path, &)
|
6116
6116
|
require "google/ads/google_ads/v16/services/customer_user_access_service_pb"
|
6117
6117
|
res = case resource_or_path
|
6118
6118
|
when Google::Ads::GoogleAds::V16::Resources::CustomerUserAccess
|
@@ -6125,15 +6125,15 @@ module Google
|
|
6125
6125
|
else
|
6126
6126
|
unless Google::Ads::GoogleAds::V16::Resources::CustomerUserAccess === res
|
6127
6127
|
raise ArgumentError.new(
|
6128
|
-
"Called #{__method__} with instance of wrong type:"\
|
6129
|
-
" #{res.class} want #{operation.update_class}"\
|
6128
|
+
"Called #{__method__} with instance of wrong type:" \
|
6129
|
+
" #{res.class} want #{operation.update_class}" \
|
6130
6130
|
" or String representing resource name"
|
6131
6131
|
)
|
6132
6132
|
end
|
6133
6133
|
end
|
6134
6134
|
|
6135
6135
|
op = Google::Ads::GoogleAds::V16::Services::CustomerUserAccessOperation.new
|
6136
|
-
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &
|
6136
|
+
op["update_mask"] = Google::Ads::GoogleAds::FieldMaskUtil.with(res, &)
|
6137
6137
|
op["update"] = res
|
6138
6138
|
op
|
6139
6139
|
end
|