google-ads-ad_manager 5.1.0 → 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 +126 -0
- 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
|
#
|
|
@@ -1730,6 +1793,69 @@ module Google
|
|
|
1730
1793
|
false
|
|
1731
1794
|
end
|
|
1732
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
|
+
|
|
1733
1859
|
##
|
|
1734
1860
|
# Create a new client object for DeviceCapabilityService.
|
|
1735
1861
|
#
|