google-ads-ad_manager 5.5.0 → 5.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0d1b00490b44710c30067fcb84984dc677ff78795b102bd29576979a06cda1d0
4
- data.tar.gz: d7ad6d74a16ac8c850597d42ed64acacb2e84f8ed8548434d599cec0e20c9a82
3
+ metadata.gz: 428ef20b4f66794f0d4c12f8dd5f899c43ad0726b59858aad93e5ede2b378e46
4
+ data.tar.gz: 9a446025e2c04ab716fdae9b95497a93b3dbd62fa323ce3ccbb82fbc1d6bd3b9
5
5
  SHA512:
6
- metadata.gz: 30a5c4870a664fa5b94a4e8f7cf6a86318d729040d4a5922f62c85cb5226c339263e34f14528faad5d4f7daaa543cf64d0a0161d38b7fccd47e29d5e41d9e667
7
- data.tar.gz: a69700266672583b19478333ffe1440f08e6ad3112205cf9b221cfb8ab20e3d0ba1a4d8ff8c47983f373bdc90d80da6a77c66bbabb372263e384b35cac03ffa2
6
+ metadata.gz: 30dcb4f4005ee9b063befd8c7f9f053775c4b60fd1c8900ba29c6180e363a0e8840dfb39e13e8ec485ad1ecef1235d3cac2571cdea30ab9c81d002e56e1bd96b
7
+ data.tar.gz: df15618ad099579ccabe6a52f62db758989e5ea9108080c770c5c6e926fb4f5d55b2ea1c6d731abfcd1bf675705d47d6580b80e35e3e294dfc407a02c19525ad
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Ads
22
22
  module AdManager
23
- VERSION = "5.5.0"
23
+ VERSION = "5.6.0"
24
24
  end
25
25
  end
26
26
  end
@@ -405,6 +405,69 @@ module Google
405
405
  false
406
406
  end
407
407
 
408
+ ##
409
+ # Create a new client object for AudienceSegmentCategoryService.
410
+ #
411
+ # By default, this returns an instance of
412
+ # [Google::Ads::AdManager::V1::AudienceSegmentCategoryService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/AudienceSegmentCategoryService/Rest/Client)
413
+ # for a REST client for version V1 of the API.
414
+ # However, you can specify a different API version by passing it in the
415
+ # `version` parameter. If the AudienceSegmentCategoryService service is
416
+ # supported by that API version, and the corresponding gem is available, the
417
+ # appropriate versioned client will be returned.
418
+ #
419
+ # Raises an exception if the currently installed versioned client gem for the
420
+ # given API version does not support the AudienceSegmentCategoryService service.
421
+ # You can determine whether the method will succeed by calling
422
+ # {Google::Ads::AdManager.audience_segment_category_service_available?}.
423
+ #
424
+ # ## About AudienceSegmentCategoryService
425
+ #
426
+ # Provides methods for handling `AudienceSegmentCategory` objects.
427
+ #
428
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
429
+ # Defaults to `:v1`.
430
+ # @return [::Object] A client object for the specified version.
431
+ #
432
+ def self.audience_segment_category_service version: :v1, &block
433
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
434
+
435
+ package_name = Google::Ads::AdManager
436
+ .constants
437
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
438
+ .first
439
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:AudienceSegmentCategoryService)
440
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
441
+ end
442
+
443
+ ##
444
+ # Determines whether the AudienceSegmentCategoryService service is supported by the current client.
445
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.audience_segment_category_service}.
446
+ # If false, that method will raise an exception. This could happen if the given
447
+ # API version does not exist or does not support the AudienceSegmentCategoryService service,
448
+ # or if the versioned client gem needs an update to support the AudienceSegmentCategoryService service.
449
+ #
450
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
451
+ # Defaults to `:v1`.
452
+ # @return [boolean] Whether the service is available.
453
+ #
454
+ def self.audience_segment_category_service_available? version: :v1
455
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
456
+ package_name = Google::Ads::AdManager
457
+ .constants
458
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
459
+ .first
460
+ return false unless package_name
461
+ service_module = Google::Ads::AdManager.const_get package_name
462
+ return false unless service_module.const_defined? :AudienceSegmentCategoryService
463
+ service_module = service_module.const_get :AudienceSegmentCategoryService
464
+ return false unless service_module.const_defined? :Rest
465
+ service_module = service_module.const_get :Rest
466
+ service_module.const_defined? :Client
467
+ rescue ::LoadError
468
+ false
469
+ end
470
+
408
471
  ##
409
472
  # Create a new client object for AudienceSegmentService.
410
473
  #
@@ -783,6 +846,69 @@ module Google
783
846
  false
784
847
  end
785
848
 
849
+ ##
850
+ # Create a new client object for ChangeEventService.
851
+ #
852
+ # By default, this returns an instance of
853
+ # [Google::Ads::AdManager::V1::ChangeEventService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/ChangeEventService/Rest/Client)
854
+ # for a REST client for version V1 of the API.
855
+ # However, you can specify a different API version by passing it in the
856
+ # `version` parameter. If the ChangeEventService service is
857
+ # supported by that API version, and the corresponding gem is available, the
858
+ # appropriate versioned client will be returned.
859
+ #
860
+ # Raises an exception if the currently installed versioned client gem for the
861
+ # given API version does not support the ChangeEventService service.
862
+ # You can determine whether the method will succeed by calling
863
+ # {Google::Ads::AdManager.change_event_service_available?}.
864
+ #
865
+ # ## About ChangeEventService
866
+ #
867
+ # Provides methods for handling `ChangeEvent` objects.
868
+ #
869
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
870
+ # Defaults to `:v1`.
871
+ # @return [::Object] A client object for the specified version.
872
+ #
873
+ def self.change_event_service version: :v1, &block
874
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
875
+
876
+ package_name = Google::Ads::AdManager
877
+ .constants
878
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
879
+ .first
880
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:ChangeEventService)
881
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
882
+ end
883
+
884
+ ##
885
+ # Determines whether the ChangeEventService service is supported by the current client.
886
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.change_event_service}.
887
+ # If false, that method will raise an exception. This could happen if the given
888
+ # API version does not exist or does not support the ChangeEventService service,
889
+ # or if the versioned client gem needs an update to support the ChangeEventService service.
890
+ #
891
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
892
+ # Defaults to `:v1`.
893
+ # @return [boolean] Whether the service is available.
894
+ #
895
+ def self.change_event_service_available? version: :v1
896
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
897
+ package_name = Google::Ads::AdManager
898
+ .constants
899
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
900
+ .first
901
+ return false unless package_name
902
+ service_module = Google::Ads::AdManager.const_get package_name
903
+ return false unless service_module.const_defined? :ChangeEventService
904
+ service_module = service_module.const_get :ChangeEventService
905
+ return false unless service_module.const_defined? :Rest
906
+ service_module = service_module.const_get :Rest
907
+ service_module.const_defined? :Client
908
+ rescue ::LoadError
909
+ false
910
+ end
911
+
786
912
  ##
787
913
  # Create a new client object for ChildPublisherService.
788
914
  #
@@ -2171,6 +2297,69 @@ module Google
2171
2297
  false
2172
2298
  end
2173
2299
 
2300
+ ##
2301
+ # Create a new client object for ForecastAdjustmentService.
2302
+ #
2303
+ # By default, this returns an instance of
2304
+ # [Google::Ads::AdManager::V1::ForecastAdjustmentService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/ForecastAdjustmentService/Rest/Client)
2305
+ # for a REST client for version V1 of the API.
2306
+ # However, you can specify a different API version by passing it in the
2307
+ # `version` parameter. If the ForecastAdjustmentService service is
2308
+ # supported by that API version, and the corresponding gem is available, the
2309
+ # appropriate versioned client will be returned.
2310
+ #
2311
+ # Raises an exception if the currently installed versioned client gem for the
2312
+ # given API version does not support the ForecastAdjustmentService service.
2313
+ # You can determine whether the method will succeed by calling
2314
+ # {Google::Ads::AdManager.forecast_adjustment_service_available?}.
2315
+ #
2316
+ # ## About ForecastAdjustmentService
2317
+ #
2318
+ # Provides methods for handling `ForecastAdjustment` objects.
2319
+ #
2320
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
2321
+ # Defaults to `:v1`.
2322
+ # @return [::Object] A client object for the specified version.
2323
+ #
2324
+ def self.forecast_adjustment_service version: :v1, &block
2325
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
2326
+
2327
+ package_name = Google::Ads::AdManager
2328
+ .constants
2329
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
2330
+ .first
2331
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:ForecastAdjustmentService)
2332
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
2333
+ end
2334
+
2335
+ ##
2336
+ # Determines whether the ForecastAdjustmentService service is supported by the current client.
2337
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.forecast_adjustment_service}.
2338
+ # If false, that method will raise an exception. This could happen if the given
2339
+ # API version does not exist or does not support the ForecastAdjustmentService service,
2340
+ # or if the versioned client gem needs an update to support the ForecastAdjustmentService service.
2341
+ #
2342
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
2343
+ # Defaults to `:v1`.
2344
+ # @return [boolean] Whether the service is available.
2345
+ #
2346
+ def self.forecast_adjustment_service_available? version: :v1
2347
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
2348
+ package_name = Google::Ads::AdManager
2349
+ .constants
2350
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
2351
+ .first
2352
+ return false unless package_name
2353
+ service_module = Google::Ads::AdManager.const_get package_name
2354
+ return false unless service_module.const_defined? :ForecastAdjustmentService
2355
+ service_module = service_module.const_get :ForecastAdjustmentService
2356
+ return false unless service_module.const_defined? :Rest
2357
+ service_module = service_module.const_get :Rest
2358
+ service_module.const_defined? :Client
2359
+ rescue ::LoadError
2360
+ false
2361
+ end
2362
+
2174
2363
  ##
2175
2364
  # Create a new client object for ForecastService.
2176
2365
  #
@@ -3558,6 +3747,69 @@ module Google
3558
3747
  false
3559
3748
  end
3560
3749
 
3750
+ ##
3751
+ # Create a new client object for ProposalService.
3752
+ #
3753
+ # By default, this returns an instance of
3754
+ # [Google::Ads::AdManager::V1::ProposalService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/ProposalService/Rest/Client)
3755
+ # for a REST client for version V1 of the API.
3756
+ # However, you can specify a different API version by passing it in the
3757
+ # `version` parameter. If the ProposalService service is
3758
+ # supported by that API version, and the corresponding gem is available, the
3759
+ # appropriate versioned client will be returned.
3760
+ #
3761
+ # Raises an exception if the currently installed versioned client gem for the
3762
+ # given API version does not support the ProposalService service.
3763
+ # You can determine whether the method will succeed by calling
3764
+ # {Google::Ads::AdManager.proposal_service_available?}.
3765
+ #
3766
+ # ## About ProposalService
3767
+ #
3768
+ # Provides methods for handling `Proposal` objects.
3769
+ #
3770
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
3771
+ # Defaults to `:v1`.
3772
+ # @return [::Object] A client object for the specified version.
3773
+ #
3774
+ def self.proposal_service version: :v1, &block
3775
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
3776
+
3777
+ package_name = Google::Ads::AdManager
3778
+ .constants
3779
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
3780
+ .first
3781
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:ProposalService)
3782
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
3783
+ end
3784
+
3785
+ ##
3786
+ # Determines whether the ProposalService service is supported by the current client.
3787
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.proposal_service}.
3788
+ # If false, that method will raise an exception. This could happen if the given
3789
+ # API version does not exist or does not support the ProposalService service,
3790
+ # or if the versioned client gem needs an update to support the ProposalService service.
3791
+ #
3792
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
3793
+ # Defaults to `:v1`.
3794
+ # @return [boolean] Whether the service is available.
3795
+ #
3796
+ def self.proposal_service_available? version: :v1
3797
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
3798
+ package_name = Google::Ads::AdManager
3799
+ .constants
3800
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
3801
+ .first
3802
+ return false unless package_name
3803
+ service_module = Google::Ads::AdManager.const_get package_name
3804
+ return false unless service_module.const_defined? :ProposalService
3805
+ service_module = service_module.const_get :ProposalService
3806
+ return false unless service_module.const_defined? :Rest
3807
+ service_module = service_module.const_get :Rest
3808
+ service_module.const_defined? :Client
3809
+ rescue ::LoadError
3810
+ false
3811
+ end
3812
+
3561
3813
  ##
3562
3814
  # Create a new client object for ReportService.
3563
3815
  #
@@ -4189,6 +4441,69 @@ module Google
4189
4441
  false
4190
4442
  end
4191
4443
 
4444
+ ##
4445
+ # Create a new client object for TrafficForecastSegmentService.
4446
+ #
4447
+ # By default, this returns an instance of
4448
+ # [Google::Ads::AdManager::V1::TrafficForecastSegmentService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/TrafficForecastSegmentService/Rest/Client)
4449
+ # for a REST client for version V1 of the API.
4450
+ # However, you can specify a different API version by passing it in the
4451
+ # `version` parameter. If the TrafficForecastSegmentService service is
4452
+ # supported by that API version, and the corresponding gem is available, the
4453
+ # appropriate versioned client will be returned.
4454
+ #
4455
+ # Raises an exception if the currently installed versioned client gem for the
4456
+ # given API version does not support the TrafficForecastSegmentService service.
4457
+ # You can determine whether the method will succeed by calling
4458
+ # {Google::Ads::AdManager.traffic_forecast_segment_service_available?}.
4459
+ #
4460
+ # ## About TrafficForecastSegmentService
4461
+ #
4462
+ # Provides methods for handling `TrafficForecastSegment` objects.
4463
+ #
4464
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
4465
+ # Defaults to `:v1`.
4466
+ # @return [::Object] A client object for the specified version.
4467
+ #
4468
+ def self.traffic_forecast_segment_service version: :v1, &block
4469
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
4470
+
4471
+ package_name = Google::Ads::AdManager
4472
+ .constants
4473
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
4474
+ .first
4475
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:TrafficForecastSegmentService)
4476
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
4477
+ end
4478
+
4479
+ ##
4480
+ # Determines whether the TrafficForecastSegmentService service is supported by the current client.
4481
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.traffic_forecast_segment_service}.
4482
+ # If false, that method will raise an exception. This could happen if the given
4483
+ # API version does not exist or does not support the TrafficForecastSegmentService service,
4484
+ # or if the versioned client gem needs an update to support the TrafficForecastSegmentService service.
4485
+ #
4486
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
4487
+ # Defaults to `:v1`.
4488
+ # @return [boolean] Whether the service is available.
4489
+ #
4490
+ def self.traffic_forecast_segment_service_available? version: :v1
4491
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
4492
+ package_name = Google::Ads::AdManager
4493
+ .constants
4494
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
4495
+ .first
4496
+ return false unless package_name
4497
+ service_module = Google::Ads::AdManager.const_get package_name
4498
+ return false unless service_module.const_defined? :TrafficForecastSegmentService
4499
+ service_module = service_module.const_get :TrafficForecastSegmentService
4500
+ return false unless service_module.const_defined? :Rest
4501
+ service_module = service_module.const_get :Rest
4502
+ service_module.const_defined? :Client
4503
+ rescue ::LoadError
4504
+ false
4505
+ end
4506
+
4192
4507
  ##
4193
4508
  # Create a new client object for UserService.
4194
4509
  #
@@ -4315,6 +4630,132 @@ module Google
4315
4630
  rescue ::LoadError
4316
4631
  false
4317
4632
  end
4633
+
4634
+ ##
4635
+ # Create a new client object for YieldGroupService.
4636
+ #
4637
+ # By default, this returns an instance of
4638
+ # [Google::Ads::AdManager::V1::YieldGroupService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/YieldGroupService/Rest/Client)
4639
+ # for a REST client for version V1 of the API.
4640
+ # However, you can specify a different API version by passing it in the
4641
+ # `version` parameter. If the YieldGroupService service is
4642
+ # supported by that API version, and the corresponding gem is available, the
4643
+ # appropriate versioned client will be returned.
4644
+ #
4645
+ # Raises an exception if the currently installed versioned client gem for the
4646
+ # given API version does not support the YieldGroupService service.
4647
+ # You can determine whether the method will succeed by calling
4648
+ # {Google::Ads::AdManager.yield_group_service_available?}.
4649
+ #
4650
+ # ## About YieldGroupService
4651
+ #
4652
+ # Provides methods for handling `YieldGroup` objects.
4653
+ #
4654
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
4655
+ # Defaults to `:v1`.
4656
+ # @return [::Object] A client object for the specified version.
4657
+ #
4658
+ def self.yield_group_service version: :v1, &block
4659
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
4660
+
4661
+ package_name = Google::Ads::AdManager
4662
+ .constants
4663
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
4664
+ .first
4665
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:YieldGroupService)
4666
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
4667
+ end
4668
+
4669
+ ##
4670
+ # Determines whether the YieldGroupService service is supported by the current client.
4671
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.yield_group_service}.
4672
+ # If false, that method will raise an exception. This could happen if the given
4673
+ # API version does not exist or does not support the YieldGroupService service,
4674
+ # or if the versioned client gem needs an update to support the YieldGroupService service.
4675
+ #
4676
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
4677
+ # Defaults to `:v1`.
4678
+ # @return [boolean] Whether the service is available.
4679
+ #
4680
+ def self.yield_group_service_available? version: :v1
4681
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
4682
+ package_name = Google::Ads::AdManager
4683
+ .constants
4684
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
4685
+ .first
4686
+ return false unless package_name
4687
+ service_module = Google::Ads::AdManager.const_get package_name
4688
+ return false unless service_module.const_defined? :YieldGroupService
4689
+ service_module = service_module.const_get :YieldGroupService
4690
+ return false unless service_module.const_defined? :Rest
4691
+ service_module = service_module.const_get :Rest
4692
+ service_module.const_defined? :Client
4693
+ rescue ::LoadError
4694
+ false
4695
+ end
4696
+
4697
+ ##
4698
+ # Create a new client object for YieldPartnerService.
4699
+ #
4700
+ # By default, this returns an instance of
4701
+ # [Google::Ads::AdManager::V1::YieldPartnerService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/YieldPartnerService/Rest/Client)
4702
+ # for a REST client for version V1 of the API.
4703
+ # However, you can specify a different API version by passing it in the
4704
+ # `version` parameter. If the YieldPartnerService service is
4705
+ # supported by that API version, and the corresponding gem is available, the
4706
+ # appropriate versioned client will be returned.
4707
+ #
4708
+ # Raises an exception if the currently installed versioned client gem for the
4709
+ # given API version does not support the YieldPartnerService service.
4710
+ # You can determine whether the method will succeed by calling
4711
+ # {Google::Ads::AdManager.yield_partner_service_available?}.
4712
+ #
4713
+ # ## About YieldPartnerService
4714
+ #
4715
+ # Provides methods for retrieving yield partners.
4716
+ #
4717
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
4718
+ # Defaults to `:v1`.
4719
+ # @return [::Object] A client object for the specified version.
4720
+ #
4721
+ def self.yield_partner_service version: :v1, &block
4722
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
4723
+
4724
+ package_name = Google::Ads::AdManager
4725
+ .constants
4726
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
4727
+ .first
4728
+ service_module = Google::Ads::AdManager.const_get(package_name).const_get(:YieldPartnerService)
4729
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
4730
+ end
4731
+
4732
+ ##
4733
+ # Determines whether the YieldPartnerService service is supported by the current client.
4734
+ # If true, you can retrieve a client object by calling {Google::Ads::AdManager.yield_partner_service}.
4735
+ # If false, that method will raise an exception. This could happen if the given
4736
+ # API version does not exist or does not support the YieldPartnerService service,
4737
+ # or if the versioned client gem needs an update to support the YieldPartnerService service.
4738
+ #
4739
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
4740
+ # Defaults to `:v1`.
4741
+ # @return [boolean] Whether the service is available.
4742
+ #
4743
+ def self.yield_partner_service_available? version: :v1
4744
+ require "google/ads/ad_manager/#{version.to_s.downcase}"
4745
+ package_name = Google::Ads::AdManager
4746
+ .constants
4747
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
4748
+ .first
4749
+ return false unless package_name
4750
+ service_module = Google::Ads::AdManager.const_get package_name
4751
+ return false unless service_module.const_defined? :YieldPartnerService
4752
+ service_module = service_module.const_get :YieldPartnerService
4753
+ return false unless service_module.const_defined? :Rest
4754
+ service_module = service_module.const_get :Rest
4755
+ service_module.const_defined? :Client
4756
+ rescue ::LoadError
4757
+ false
4758
+ end
4318
4759
  end
4319
4760
  end
4320
4761
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-ads-ad_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.5.0
4
+ version: 5.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC