google-ads-ad_manager 5.0.2 → 5.3.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 +4 -4
- data/lib/google/ads/ad_manager/version.rb +1 -1
- data/lib/google/ads/ad_manager.rb +572 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ce2fcfa1607f778662ae575d088f562f2fbb0c77a92b83b5130c6bd8126eb9bc
|
|
4
|
+
data.tar.gz: d13c2b9c60c884a3978af49012081c08c77b12967bb6db910a1160dd27c99be3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cf2d15a8b02100be9e95f7c690ac4acb99d014ffbbbcd0267029d5368fb671f98e05c5867f930507af4280bb58c0da2fc907239689bdf73c3548be53661e495d
|
|
7
|
+
data.tar.gz: ca0af2acf2ad6c7b2dace78c8951be4c08521f5957f79d7c9e06742cc907a32abd4bc8bad3735783f4b3b22514878fce6955fece19c07d450a1a9ff121b03f70
|
|
@@ -531,6 +531,69 @@ module Google
|
|
|
531
531
|
false
|
|
532
532
|
end
|
|
533
533
|
|
|
534
|
+
##
|
|
535
|
+
# Create a new client object for BreakTemplateService.
|
|
536
|
+
#
|
|
537
|
+
# By default, this returns an instance of
|
|
538
|
+
# [Google::Ads::AdManager::V1::BreakTemplateService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/BreakTemplateService/Rest/Client)
|
|
539
|
+
# for a REST client for version V1 of the API.
|
|
540
|
+
# However, you can specify a different API version by passing it in the
|
|
541
|
+
# `version` parameter. If the BreakTemplateService service is
|
|
542
|
+
# supported by that API version, and the corresponding gem is available, the
|
|
543
|
+
# appropriate versioned client will be returned.
|
|
544
|
+
#
|
|
545
|
+
# Raises an exception if the currently installed versioned client gem for the
|
|
546
|
+
# given API version does not support the BreakTemplateService service.
|
|
547
|
+
# You can determine whether the method will succeed by calling
|
|
548
|
+
# {Google::Ads::AdManager.break_template_service_available?}.
|
|
549
|
+
#
|
|
550
|
+
# ## About BreakTemplateService
|
|
551
|
+
#
|
|
552
|
+
# Provides methods for handling `BreakTemplate` objects.
|
|
553
|
+
#
|
|
554
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
555
|
+
# Defaults to `:v1`.
|
|
556
|
+
# @return [::Object] A client object for the specified version.
|
|
557
|
+
#
|
|
558
|
+
def self.break_template_service version: :v1, &block
|
|
559
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
560
|
+
|
|
561
|
+
package_name = Google::Ads::AdManager
|
|
562
|
+
.constants
|
|
563
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
564
|
+
.first
|
|
565
|
+
service_module = Google::Ads::AdManager.const_get(package_name).const_get(:BreakTemplateService)
|
|
566
|
+
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
|
567
|
+
end
|
|
568
|
+
|
|
569
|
+
##
|
|
570
|
+
# Determines whether the BreakTemplateService service is supported by the current client.
|
|
571
|
+
# If true, you can retrieve a client object by calling {Google::Ads::AdManager.break_template_service}.
|
|
572
|
+
# If false, that method will raise an exception. This could happen if the given
|
|
573
|
+
# API version does not exist or does not support the BreakTemplateService service,
|
|
574
|
+
# or if the versioned client gem needs an update to support the BreakTemplateService service.
|
|
575
|
+
#
|
|
576
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
577
|
+
# Defaults to `:v1`.
|
|
578
|
+
# @return [boolean] Whether the service is available.
|
|
579
|
+
#
|
|
580
|
+
def self.break_template_service_available? version: :v1
|
|
581
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
582
|
+
package_name = Google::Ads::AdManager
|
|
583
|
+
.constants
|
|
584
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
585
|
+
.first
|
|
586
|
+
return false unless package_name
|
|
587
|
+
service_module = Google::Ads::AdManager.const_get package_name
|
|
588
|
+
return false unless service_module.const_defined? :BreakTemplateService
|
|
589
|
+
service_module = service_module.const_get :BreakTemplateService
|
|
590
|
+
return false unless service_module.const_defined? :Rest
|
|
591
|
+
service_module = service_module.const_get :Rest
|
|
592
|
+
service_module.const_defined? :Client
|
|
593
|
+
rescue ::LoadError
|
|
594
|
+
false
|
|
595
|
+
end
|
|
596
|
+
|
|
534
597
|
##
|
|
535
598
|
# Create a new client object for BrowserLanguageService.
|
|
536
599
|
#
|
|
@@ -720,6 +783,70 @@ module Google
|
|
|
720
783
|
false
|
|
721
784
|
end
|
|
722
785
|
|
|
786
|
+
##
|
|
787
|
+
# Create a new client object for ChildPublisherService.
|
|
788
|
+
#
|
|
789
|
+
# By default, this returns an instance of
|
|
790
|
+
# [Google::Ads::AdManager::V1::ChildPublisherService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/ChildPublisherService/Rest/Client)
|
|
791
|
+
# for a REST client for version V1 of the API.
|
|
792
|
+
# However, you can specify a different API version by passing it in the
|
|
793
|
+
# `version` parameter. If the ChildPublisherService service is
|
|
794
|
+
# supported by that API version, and the corresponding gem is available, the
|
|
795
|
+
# appropriate versioned client will be returned.
|
|
796
|
+
#
|
|
797
|
+
# Raises an exception if the currently installed versioned client gem for the
|
|
798
|
+
# given API version does not support the ChildPublisherService service.
|
|
799
|
+
# You can determine whether the method will succeed by calling
|
|
800
|
+
# {Google::Ads::AdManager.child_publisher_service_available?}.
|
|
801
|
+
#
|
|
802
|
+
# ## About ChildPublisherService
|
|
803
|
+
#
|
|
804
|
+
# Provides methods for handling
|
|
805
|
+
# ChildPublisher objects.
|
|
806
|
+
#
|
|
807
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
808
|
+
# Defaults to `:v1`.
|
|
809
|
+
# @return [::Object] A client object for the specified version.
|
|
810
|
+
#
|
|
811
|
+
def self.child_publisher_service version: :v1, &block
|
|
812
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
813
|
+
|
|
814
|
+
package_name = Google::Ads::AdManager
|
|
815
|
+
.constants
|
|
816
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
817
|
+
.first
|
|
818
|
+
service_module = Google::Ads::AdManager.const_get(package_name).const_get(:ChildPublisherService)
|
|
819
|
+
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
|
820
|
+
end
|
|
821
|
+
|
|
822
|
+
##
|
|
823
|
+
# Determines whether the ChildPublisherService service is supported by the current client.
|
|
824
|
+
# If true, you can retrieve a client object by calling {Google::Ads::AdManager.child_publisher_service}.
|
|
825
|
+
# If false, that method will raise an exception. This could happen if the given
|
|
826
|
+
# API version does not exist or does not support the ChildPublisherService service,
|
|
827
|
+
# or if the versioned client gem needs an update to support the ChildPublisherService service.
|
|
828
|
+
#
|
|
829
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
830
|
+
# Defaults to `:v1`.
|
|
831
|
+
# @return [boolean] Whether the service is available.
|
|
832
|
+
#
|
|
833
|
+
def self.child_publisher_service_available? version: :v1
|
|
834
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
835
|
+
package_name = Google::Ads::AdManager
|
|
836
|
+
.constants
|
|
837
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
838
|
+
.first
|
|
839
|
+
return false unless package_name
|
|
840
|
+
service_module = Google::Ads::AdManager.const_get package_name
|
|
841
|
+
return false unless service_module.const_defined? :ChildPublisherService
|
|
842
|
+
service_module = service_module.const_get :ChildPublisherService
|
|
843
|
+
return false unless service_module.const_defined? :Rest
|
|
844
|
+
service_module = service_module.const_get :Rest
|
|
845
|
+
service_module.const_defined? :Client
|
|
846
|
+
rescue ::LoadError
|
|
847
|
+
false
|
|
848
|
+
end
|
|
849
|
+
|
|
723
850
|
##
|
|
724
851
|
# Create a new client object for CmsMetadataKeyService.
|
|
725
852
|
#
|
|
@@ -864,7 +991,8 @@ module Google
|
|
|
864
991
|
#
|
|
865
992
|
# ## About CompanyService
|
|
866
993
|
#
|
|
867
|
-
# Provides methods for handling
|
|
994
|
+
# Provides methods for handling Company
|
|
995
|
+
# objects.
|
|
868
996
|
#
|
|
869
997
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
870
998
|
# Defaults to `:v1`.
|
|
@@ -1287,6 +1415,69 @@ module Google
|
|
|
1287
1415
|
false
|
|
1288
1416
|
end
|
|
1289
1417
|
|
|
1418
|
+
##
|
|
1419
|
+
# Create a new client object for CreativeWrapperService.
|
|
1420
|
+
#
|
|
1421
|
+
# By default, this returns an instance of
|
|
1422
|
+
# [Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/CreativeWrapperService/Rest/Client)
|
|
1423
|
+
# for a REST client for version V1 of the API.
|
|
1424
|
+
# However, you can specify a different API version by passing it in the
|
|
1425
|
+
# `version` parameter. If the CreativeWrapperService service is
|
|
1426
|
+
# supported by that API version, and the corresponding gem is available, the
|
|
1427
|
+
# appropriate versioned client will be returned.
|
|
1428
|
+
#
|
|
1429
|
+
# Raises an exception if the currently installed versioned client gem for the
|
|
1430
|
+
# given API version does not support the CreativeWrapperService service.
|
|
1431
|
+
# You can determine whether the method will succeed by calling
|
|
1432
|
+
# {Google::Ads::AdManager.creative_wrapper_service_available?}.
|
|
1433
|
+
#
|
|
1434
|
+
# ## About CreativeWrapperService
|
|
1435
|
+
#
|
|
1436
|
+
# Provides methods for handling `CreativeWrapper` objects.
|
|
1437
|
+
#
|
|
1438
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
1439
|
+
# Defaults to `:v1`.
|
|
1440
|
+
# @return [::Object] A client object for the specified version.
|
|
1441
|
+
#
|
|
1442
|
+
def self.creative_wrapper_service version: :v1, &block
|
|
1443
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
1444
|
+
|
|
1445
|
+
package_name = Google::Ads::AdManager
|
|
1446
|
+
.constants
|
|
1447
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
1448
|
+
.first
|
|
1449
|
+
service_module = Google::Ads::AdManager.const_get(package_name).const_get(:CreativeWrapperService)
|
|
1450
|
+
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
|
1451
|
+
end
|
|
1452
|
+
|
|
1453
|
+
##
|
|
1454
|
+
# Determines whether the CreativeWrapperService service is supported by the current client.
|
|
1455
|
+
# If true, you can retrieve a client object by calling {Google::Ads::AdManager.creative_wrapper_service}.
|
|
1456
|
+
# If false, that method will raise an exception. This could happen if the given
|
|
1457
|
+
# API version does not exist or does not support the CreativeWrapperService service,
|
|
1458
|
+
# or if the versioned client gem needs an update to support the CreativeWrapperService service.
|
|
1459
|
+
#
|
|
1460
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
1461
|
+
# Defaults to `:v1`.
|
|
1462
|
+
# @return [boolean] Whether the service is available.
|
|
1463
|
+
#
|
|
1464
|
+
def self.creative_wrapper_service_available? version: :v1
|
|
1465
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
1466
|
+
package_name = Google::Ads::AdManager
|
|
1467
|
+
.constants
|
|
1468
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
1469
|
+
.first
|
|
1470
|
+
return false unless package_name
|
|
1471
|
+
service_module = Google::Ads::AdManager.const_get package_name
|
|
1472
|
+
return false unless service_module.const_defined? :CreativeWrapperService
|
|
1473
|
+
service_module = service_module.const_get :CreativeWrapperService
|
|
1474
|
+
return false unless service_module.const_defined? :Rest
|
|
1475
|
+
service_module = service_module.const_get :Rest
|
|
1476
|
+
service_module.const_defined? :Client
|
|
1477
|
+
rescue ::LoadError
|
|
1478
|
+
false
|
|
1479
|
+
end
|
|
1480
|
+
|
|
1290
1481
|
##
|
|
1291
1482
|
# Create a new client object for CustomFieldService.
|
|
1292
1483
|
#
|
|
@@ -1476,6 +1667,195 @@ module Google
|
|
|
1476
1667
|
false
|
|
1477
1668
|
end
|
|
1478
1669
|
|
|
1670
|
+
##
|
|
1671
|
+
# Create a new client object for DaiAuthenticationKeyService.
|
|
1672
|
+
#
|
|
1673
|
+
# By default, this returns an instance of
|
|
1674
|
+
# [Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/DaiAuthenticationKeyService/Rest/Client)
|
|
1675
|
+
# for a REST client for version V1 of the API.
|
|
1676
|
+
# However, you can specify a different API version by passing it in the
|
|
1677
|
+
# `version` parameter. If the DaiAuthenticationKeyService service is
|
|
1678
|
+
# supported by that API version, and the corresponding gem is available, the
|
|
1679
|
+
# appropriate versioned client will be returned.
|
|
1680
|
+
#
|
|
1681
|
+
# Raises an exception if the currently installed versioned client gem for the
|
|
1682
|
+
# given API version does not support the DaiAuthenticationKeyService service.
|
|
1683
|
+
# You can determine whether the method will succeed by calling
|
|
1684
|
+
# {Google::Ads::AdManager.dai_authentication_key_service_available?}.
|
|
1685
|
+
#
|
|
1686
|
+
# ## About DaiAuthenticationKeyService
|
|
1687
|
+
#
|
|
1688
|
+
# Provides methods for handling `DaiAuthenticationKey` objects.
|
|
1689
|
+
#
|
|
1690
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
1691
|
+
# Defaults to `:v1`.
|
|
1692
|
+
# @return [::Object] A client object for the specified version.
|
|
1693
|
+
#
|
|
1694
|
+
def self.dai_authentication_key_service version: :v1, &block
|
|
1695
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
1696
|
+
|
|
1697
|
+
package_name = Google::Ads::AdManager
|
|
1698
|
+
.constants
|
|
1699
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
1700
|
+
.first
|
|
1701
|
+
service_module = Google::Ads::AdManager.const_get(package_name).const_get(:DaiAuthenticationKeyService)
|
|
1702
|
+
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
|
1703
|
+
end
|
|
1704
|
+
|
|
1705
|
+
##
|
|
1706
|
+
# Determines whether the DaiAuthenticationKeyService service is supported by the current client.
|
|
1707
|
+
# If true, you can retrieve a client object by calling {Google::Ads::AdManager.dai_authentication_key_service}.
|
|
1708
|
+
# If false, that method will raise an exception. This could happen if the given
|
|
1709
|
+
# API version does not exist or does not support the DaiAuthenticationKeyService service,
|
|
1710
|
+
# or if the versioned client gem needs an update to support the DaiAuthenticationKeyService service.
|
|
1711
|
+
#
|
|
1712
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
1713
|
+
# Defaults to `:v1`.
|
|
1714
|
+
# @return [boolean] Whether the service is available.
|
|
1715
|
+
#
|
|
1716
|
+
def self.dai_authentication_key_service_available? version: :v1
|
|
1717
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
1718
|
+
package_name = Google::Ads::AdManager
|
|
1719
|
+
.constants
|
|
1720
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
1721
|
+
.first
|
|
1722
|
+
return false unless package_name
|
|
1723
|
+
service_module = Google::Ads::AdManager.const_get package_name
|
|
1724
|
+
return false unless service_module.const_defined? :DaiAuthenticationKeyService
|
|
1725
|
+
service_module = service_module.const_get :DaiAuthenticationKeyService
|
|
1726
|
+
return false unless service_module.const_defined? :Rest
|
|
1727
|
+
service_module = service_module.const_get :Rest
|
|
1728
|
+
service_module.const_defined? :Client
|
|
1729
|
+
rescue ::LoadError
|
|
1730
|
+
false
|
|
1731
|
+
end
|
|
1732
|
+
|
|
1733
|
+
##
|
|
1734
|
+
# Create a new client object for DaiEncodingProfileService.
|
|
1735
|
+
#
|
|
1736
|
+
# By default, this returns an instance of
|
|
1737
|
+
# [Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/DaiEncodingProfileService/Rest/Client)
|
|
1738
|
+
# for a REST client for version V1 of the API.
|
|
1739
|
+
# However, you can specify a different API version by passing it in the
|
|
1740
|
+
# `version` parameter. If the DaiEncodingProfileService service is
|
|
1741
|
+
# supported by that API version, and the corresponding gem is available, the
|
|
1742
|
+
# appropriate versioned client will be returned.
|
|
1743
|
+
#
|
|
1744
|
+
# Raises an exception if the currently installed versioned client gem for the
|
|
1745
|
+
# given API version does not support the DaiEncodingProfileService service.
|
|
1746
|
+
# You can determine whether the method will succeed by calling
|
|
1747
|
+
# {Google::Ads::AdManager.dai_encoding_profile_service_available?}.
|
|
1748
|
+
#
|
|
1749
|
+
# ## About DaiEncodingProfileService
|
|
1750
|
+
#
|
|
1751
|
+
# Provides methods for handling `DaiEncodingProfile` objects.
|
|
1752
|
+
#
|
|
1753
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
1754
|
+
# Defaults to `:v1`.
|
|
1755
|
+
# @return [::Object] A client object for the specified version.
|
|
1756
|
+
#
|
|
1757
|
+
def self.dai_encoding_profile_service version: :v1, &block
|
|
1758
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
1759
|
+
|
|
1760
|
+
package_name = Google::Ads::AdManager
|
|
1761
|
+
.constants
|
|
1762
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
1763
|
+
.first
|
|
1764
|
+
service_module = Google::Ads::AdManager.const_get(package_name).const_get(:DaiEncodingProfileService)
|
|
1765
|
+
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
|
1766
|
+
end
|
|
1767
|
+
|
|
1768
|
+
##
|
|
1769
|
+
# Determines whether the DaiEncodingProfileService service is supported by the current client.
|
|
1770
|
+
# If true, you can retrieve a client object by calling {Google::Ads::AdManager.dai_encoding_profile_service}.
|
|
1771
|
+
# If false, that method will raise an exception. This could happen if the given
|
|
1772
|
+
# API version does not exist or does not support the DaiEncodingProfileService service,
|
|
1773
|
+
# or if the versioned client gem needs an update to support the DaiEncodingProfileService service.
|
|
1774
|
+
#
|
|
1775
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
1776
|
+
# Defaults to `:v1`.
|
|
1777
|
+
# @return [boolean] Whether the service is available.
|
|
1778
|
+
#
|
|
1779
|
+
def self.dai_encoding_profile_service_available? version: :v1
|
|
1780
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
1781
|
+
package_name = Google::Ads::AdManager
|
|
1782
|
+
.constants
|
|
1783
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
1784
|
+
.first
|
|
1785
|
+
return false unless package_name
|
|
1786
|
+
service_module = Google::Ads::AdManager.const_get package_name
|
|
1787
|
+
return false unless service_module.const_defined? :DaiEncodingProfileService
|
|
1788
|
+
service_module = service_module.const_get :DaiEncodingProfileService
|
|
1789
|
+
return false unless service_module.const_defined? :Rest
|
|
1790
|
+
service_module = service_module.const_get :Rest
|
|
1791
|
+
service_module.const_defined? :Client
|
|
1792
|
+
rescue ::LoadError
|
|
1793
|
+
false
|
|
1794
|
+
end
|
|
1795
|
+
|
|
1796
|
+
##
|
|
1797
|
+
# Create a new client object for DaiSessionService.
|
|
1798
|
+
#
|
|
1799
|
+
# By default, this returns an instance of
|
|
1800
|
+
# [Google::Ads::AdManager::V1::DaiSessionService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/DaiSessionService/Rest/Client)
|
|
1801
|
+
# for a REST client for version V1 of the API.
|
|
1802
|
+
# However, you can specify a different API version by passing it in the
|
|
1803
|
+
# `version` parameter. If the DaiSessionService service is
|
|
1804
|
+
# supported by that API version, and the corresponding gem is available, the
|
|
1805
|
+
# appropriate versioned client will be returned.
|
|
1806
|
+
#
|
|
1807
|
+
# Raises an exception if the currently installed versioned client gem for the
|
|
1808
|
+
# given API version does not support the DaiSessionService service.
|
|
1809
|
+
# You can determine whether the method will succeed by calling
|
|
1810
|
+
# {Google::Ads::AdManager.dai_session_service_available?}.
|
|
1811
|
+
#
|
|
1812
|
+
# ## About DaiSessionService
|
|
1813
|
+
#
|
|
1814
|
+
# Provides methods for handling `DaiSession` objects.
|
|
1815
|
+
#
|
|
1816
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
1817
|
+
# Defaults to `:v1`.
|
|
1818
|
+
# @return [::Object] A client object for the specified version.
|
|
1819
|
+
#
|
|
1820
|
+
def self.dai_session_service version: :v1, &block
|
|
1821
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
1822
|
+
|
|
1823
|
+
package_name = Google::Ads::AdManager
|
|
1824
|
+
.constants
|
|
1825
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
1826
|
+
.first
|
|
1827
|
+
service_module = Google::Ads::AdManager.const_get(package_name).const_get(:DaiSessionService)
|
|
1828
|
+
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
|
1829
|
+
end
|
|
1830
|
+
|
|
1831
|
+
##
|
|
1832
|
+
# Determines whether the DaiSessionService service is supported by the current client.
|
|
1833
|
+
# If true, you can retrieve a client object by calling {Google::Ads::AdManager.dai_session_service}.
|
|
1834
|
+
# If false, that method will raise an exception. This could happen if the given
|
|
1835
|
+
# API version does not exist or does not support the DaiSessionService service,
|
|
1836
|
+
# or if the versioned client gem needs an update to support the DaiSessionService service.
|
|
1837
|
+
#
|
|
1838
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
1839
|
+
# Defaults to `:v1`.
|
|
1840
|
+
# @return [boolean] Whether the service is available.
|
|
1841
|
+
#
|
|
1842
|
+
def self.dai_session_service_available? version: :v1
|
|
1843
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
1844
|
+
package_name = Google::Ads::AdManager
|
|
1845
|
+
.constants
|
|
1846
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
1847
|
+
.first
|
|
1848
|
+
return false unless package_name
|
|
1849
|
+
service_module = Google::Ads::AdManager.const_get package_name
|
|
1850
|
+
return false unless service_module.const_defined? :DaiSessionService
|
|
1851
|
+
service_module = service_module.const_get :DaiSessionService
|
|
1852
|
+
return false unless service_module.const_defined? :Rest
|
|
1853
|
+
service_module = service_module.const_get :Rest
|
|
1854
|
+
service_module.const_defined? :Client
|
|
1855
|
+
rescue ::LoadError
|
|
1856
|
+
false
|
|
1857
|
+
end
|
|
1858
|
+
|
|
1479
1859
|
##
|
|
1480
1860
|
# Create a new client object for DeviceCapabilityService.
|
|
1481
1861
|
#
|
|
@@ -2295,6 +2675,69 @@ module Google
|
|
|
2295
2675
|
false
|
|
2296
2676
|
end
|
|
2297
2677
|
|
|
2678
|
+
##
|
|
2679
|
+
# Create a new client object for NativeStyleService.
|
|
2680
|
+
#
|
|
2681
|
+
# By default, this returns an instance of
|
|
2682
|
+
# [Google::Ads::AdManager::V1::NativeStyleService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/NativeStyleService/Rest/Client)
|
|
2683
|
+
# for a REST client for version V1 of the API.
|
|
2684
|
+
# However, you can specify a different API version by passing it in the
|
|
2685
|
+
# `version` parameter. If the NativeStyleService service is
|
|
2686
|
+
# supported by that API version, and the corresponding gem is available, the
|
|
2687
|
+
# appropriate versioned client will be returned.
|
|
2688
|
+
#
|
|
2689
|
+
# Raises an exception if the currently installed versioned client gem for the
|
|
2690
|
+
# given API version does not support the NativeStyleService service.
|
|
2691
|
+
# You can determine whether the method will succeed by calling
|
|
2692
|
+
# {Google::Ads::AdManager.native_style_service_available?}.
|
|
2693
|
+
#
|
|
2694
|
+
# ## About NativeStyleService
|
|
2695
|
+
#
|
|
2696
|
+
# Provides methods for handling `NativeStyle` objects.
|
|
2697
|
+
#
|
|
2698
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
2699
|
+
# Defaults to `:v1`.
|
|
2700
|
+
# @return [::Object] A client object for the specified version.
|
|
2701
|
+
#
|
|
2702
|
+
def self.native_style_service version: :v1, &block
|
|
2703
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
2704
|
+
|
|
2705
|
+
package_name = Google::Ads::AdManager
|
|
2706
|
+
.constants
|
|
2707
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
2708
|
+
.first
|
|
2709
|
+
service_module = Google::Ads::AdManager.const_get(package_name).const_get(:NativeStyleService)
|
|
2710
|
+
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
|
2711
|
+
end
|
|
2712
|
+
|
|
2713
|
+
##
|
|
2714
|
+
# Determines whether the NativeStyleService service is supported by the current client.
|
|
2715
|
+
# If true, you can retrieve a client object by calling {Google::Ads::AdManager.native_style_service}.
|
|
2716
|
+
# If false, that method will raise an exception. This could happen if the given
|
|
2717
|
+
# API version does not exist or does not support the NativeStyleService service,
|
|
2718
|
+
# or if the versioned client gem needs an update to support the NativeStyleService service.
|
|
2719
|
+
#
|
|
2720
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
2721
|
+
# Defaults to `:v1`.
|
|
2722
|
+
# @return [boolean] Whether the service is available.
|
|
2723
|
+
#
|
|
2724
|
+
def self.native_style_service_available? version: :v1
|
|
2725
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
2726
|
+
package_name = Google::Ads::AdManager
|
|
2727
|
+
.constants
|
|
2728
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
2729
|
+
.first
|
|
2730
|
+
return false unless package_name
|
|
2731
|
+
service_module = Google::Ads::AdManager.const_get package_name
|
|
2732
|
+
return false unless service_module.const_defined? :NativeStyleService
|
|
2733
|
+
service_module = service_module.const_get :NativeStyleService
|
|
2734
|
+
return false unless service_module.const_defined? :Rest
|
|
2735
|
+
service_module = service_module.const_get :Rest
|
|
2736
|
+
service_module.const_defined? :Client
|
|
2737
|
+
rescue ::LoadError
|
|
2738
|
+
false
|
|
2739
|
+
end
|
|
2740
|
+
|
|
2298
2741
|
##
|
|
2299
2742
|
# Create a new client object for NetworkService.
|
|
2300
2743
|
#
|
|
@@ -2547,6 +2990,70 @@ module Google
|
|
|
2547
2990
|
false
|
|
2548
2991
|
end
|
|
2549
2992
|
|
|
2993
|
+
##
|
|
2994
|
+
# Create a new client object for PartnerService.
|
|
2995
|
+
#
|
|
2996
|
+
# By default, this returns an instance of
|
|
2997
|
+
# [Google::Ads::AdManager::V1::PartnerService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/PartnerService/Rest/Client)
|
|
2998
|
+
# for a REST client for version V1 of the API.
|
|
2999
|
+
# However, you can specify a different API version by passing it in the
|
|
3000
|
+
# `version` parameter. If the PartnerService service is
|
|
3001
|
+
# supported by that API version, and the corresponding gem is available, the
|
|
3002
|
+
# appropriate versioned client will be returned.
|
|
3003
|
+
#
|
|
3004
|
+
# Raises an exception if the currently installed versioned client gem for the
|
|
3005
|
+
# given API version does not support the PartnerService service.
|
|
3006
|
+
# You can determine whether the method will succeed by calling
|
|
3007
|
+
# {Google::Ads::AdManager.partner_service_available?}.
|
|
3008
|
+
#
|
|
3009
|
+
# ## About PartnerService
|
|
3010
|
+
#
|
|
3011
|
+
# Provides methods for handling Partner
|
|
3012
|
+
# objects.
|
|
3013
|
+
#
|
|
3014
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
3015
|
+
# Defaults to `:v1`.
|
|
3016
|
+
# @return [::Object] A client object for the specified version.
|
|
3017
|
+
#
|
|
3018
|
+
def self.partner_service version: :v1, &block
|
|
3019
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
3020
|
+
|
|
3021
|
+
package_name = Google::Ads::AdManager
|
|
3022
|
+
.constants
|
|
3023
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
3024
|
+
.first
|
|
3025
|
+
service_module = Google::Ads::AdManager.const_get(package_name).const_get(:PartnerService)
|
|
3026
|
+
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
|
3027
|
+
end
|
|
3028
|
+
|
|
3029
|
+
##
|
|
3030
|
+
# Determines whether the PartnerService service is supported by the current client.
|
|
3031
|
+
# If true, you can retrieve a client object by calling {Google::Ads::AdManager.partner_service}.
|
|
3032
|
+
# If false, that method will raise an exception. This could happen if the given
|
|
3033
|
+
# API version does not exist or does not support the PartnerService service,
|
|
3034
|
+
# or if the versioned client gem needs an update to support the PartnerService service.
|
|
3035
|
+
#
|
|
3036
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
3037
|
+
# Defaults to `:v1`.
|
|
3038
|
+
# @return [boolean] Whether the service is available.
|
|
3039
|
+
#
|
|
3040
|
+
def self.partner_service_available? version: :v1
|
|
3041
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
3042
|
+
package_name = Google::Ads::AdManager
|
|
3043
|
+
.constants
|
|
3044
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
3045
|
+
.first
|
|
3046
|
+
return false unless package_name
|
|
3047
|
+
service_module = Google::Ads::AdManager.const_get package_name
|
|
3048
|
+
return false unless service_module.const_defined? :PartnerService
|
|
3049
|
+
service_module = service_module.const_get :PartnerService
|
|
3050
|
+
return false unless service_module.const_defined? :Rest
|
|
3051
|
+
service_module = service_module.const_get :Rest
|
|
3052
|
+
service_module.const_defined? :Client
|
|
3053
|
+
rescue ::LoadError
|
|
3054
|
+
false
|
|
3055
|
+
end
|
|
3056
|
+
|
|
2550
3057
|
##
|
|
2551
3058
|
# Create a new client object for PlacementService.
|
|
2552
3059
|
#
|
|
@@ -3492,6 +3999,70 @@ module Google
|
|
|
3492
3999
|
rescue ::LoadError
|
|
3493
4000
|
false
|
|
3494
4001
|
end
|
|
4002
|
+
|
|
4003
|
+
##
|
|
4004
|
+
# Create a new client object for ViewabilityProviderService.
|
|
4005
|
+
#
|
|
4006
|
+
# By default, this returns an instance of
|
|
4007
|
+
# [Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/ViewabilityProviderService/Rest/Client)
|
|
4008
|
+
# for a REST client for version V1 of the API.
|
|
4009
|
+
# However, you can specify a different API version by passing it in the
|
|
4010
|
+
# `version` parameter. If the ViewabilityProviderService service is
|
|
4011
|
+
# supported by that API version, and the corresponding gem is available, the
|
|
4012
|
+
# appropriate versioned client will be returned.
|
|
4013
|
+
#
|
|
4014
|
+
# Raises an exception if the currently installed versioned client gem for the
|
|
4015
|
+
# given API version does not support the ViewabilityProviderService service.
|
|
4016
|
+
# You can determine whether the method will succeed by calling
|
|
4017
|
+
# {Google::Ads::AdManager.viewability_provider_service_available?}.
|
|
4018
|
+
#
|
|
4019
|
+
# ## About ViewabilityProviderService
|
|
4020
|
+
#
|
|
4021
|
+
# Provides methods for handling
|
|
4022
|
+
# ViewabilityProvider objects.
|
|
4023
|
+
#
|
|
4024
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
4025
|
+
# Defaults to `:v1`.
|
|
4026
|
+
# @return [::Object] A client object for the specified version.
|
|
4027
|
+
#
|
|
4028
|
+
def self.viewability_provider_service version: :v1, &block
|
|
4029
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
4030
|
+
|
|
4031
|
+
package_name = Google::Ads::AdManager
|
|
4032
|
+
.constants
|
|
4033
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
4034
|
+
.first
|
|
4035
|
+
service_module = Google::Ads::AdManager.const_get(package_name).const_get(:ViewabilityProviderService)
|
|
4036
|
+
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
|
4037
|
+
end
|
|
4038
|
+
|
|
4039
|
+
##
|
|
4040
|
+
# Determines whether the ViewabilityProviderService service is supported by the current client.
|
|
4041
|
+
# If true, you can retrieve a client object by calling {Google::Ads::AdManager.viewability_provider_service}.
|
|
4042
|
+
# If false, that method will raise an exception. This could happen if the given
|
|
4043
|
+
# API version does not exist or does not support the ViewabilityProviderService service,
|
|
4044
|
+
# or if the versioned client gem needs an update to support the ViewabilityProviderService service.
|
|
4045
|
+
#
|
|
4046
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
4047
|
+
# Defaults to `:v1`.
|
|
4048
|
+
# @return [boolean] Whether the service is available.
|
|
4049
|
+
#
|
|
4050
|
+
def self.viewability_provider_service_available? version: :v1
|
|
4051
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
4052
|
+
package_name = Google::Ads::AdManager
|
|
4053
|
+
.constants
|
|
4054
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
4055
|
+
.first
|
|
4056
|
+
return false unless package_name
|
|
4057
|
+
service_module = Google::Ads::AdManager.const_get package_name
|
|
4058
|
+
return false unless service_module.const_defined? :ViewabilityProviderService
|
|
4059
|
+
service_module = service_module.const_get :ViewabilityProviderService
|
|
4060
|
+
return false unless service_module.const_defined? :Rest
|
|
4061
|
+
service_module = service_module.const_get :Rest
|
|
4062
|
+
service_module.const_defined? :Client
|
|
4063
|
+
rescue ::LoadError
|
|
4064
|
+
false
|
|
4065
|
+
end
|
|
3495
4066
|
end
|
|
3496
4067
|
end
|
|
3497
4068
|
end
|