google-ads-ad_manager 3.1.0 → 4.0.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 +252 -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: 2df3fb851b25bcb39ea0da2527e9196a7c9d8b3235b6369008c99fb5942b9e7a
|
|
4
|
+
data.tar.gz: f3228eb5f8704f6fe4c7260d3691ea69d18490b1d3cfae6c610768092f37e355
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 59e091ac88964388f592930bcb525e15e67a0c81b19e1899c7e4ab1c4bafaa20d4622fe27185c89e03a5ec92bec8ef34e74a56ba8333196bee03a591bfe7ce9d
|
|
7
|
+
data.tar.gz: 3ffd1e9954d8987880d370af6b32f02474c19d54709c832a737276f0db81654ae21970307e304b0abee587fc31deeb8c0f62546970613d024c6814510ac24797
|
|
@@ -1539,6 +1539,69 @@ module Google
|
|
|
1539
1539
|
false
|
|
1540
1540
|
end
|
|
1541
1541
|
|
|
1542
|
+
##
|
|
1543
|
+
# Create a new client object for LabelService.
|
|
1544
|
+
#
|
|
1545
|
+
# By default, this returns an instance of
|
|
1546
|
+
# [Google::Ads::AdManager::V1::LabelService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/LabelService/Rest/Client)
|
|
1547
|
+
# for a REST client for version V1 of the API.
|
|
1548
|
+
# However, you can specify a different API version by passing it in the
|
|
1549
|
+
# `version` parameter. If the LabelService service is
|
|
1550
|
+
# supported by that API version, and the corresponding gem is available, the
|
|
1551
|
+
# appropriate versioned client will be returned.
|
|
1552
|
+
#
|
|
1553
|
+
# Raises an exception if the currently installed versioned client gem for the
|
|
1554
|
+
# given API version does not support the LabelService service.
|
|
1555
|
+
# You can determine whether the method will succeed by calling
|
|
1556
|
+
# {Google::Ads::AdManager.label_service_available?}.
|
|
1557
|
+
#
|
|
1558
|
+
# ## About LabelService
|
|
1559
|
+
#
|
|
1560
|
+
# Provides methods for handling `Label` objects.
|
|
1561
|
+
#
|
|
1562
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
1563
|
+
# Defaults to `:v1`.
|
|
1564
|
+
# @return [::Object] A client object for the specified version.
|
|
1565
|
+
#
|
|
1566
|
+
def self.label_service version: :v1, &block
|
|
1567
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
1568
|
+
|
|
1569
|
+
package_name = Google::Ads::AdManager
|
|
1570
|
+
.constants
|
|
1571
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
1572
|
+
.first
|
|
1573
|
+
service_module = Google::Ads::AdManager.const_get(package_name).const_get(:LabelService)
|
|
1574
|
+
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
|
1575
|
+
end
|
|
1576
|
+
|
|
1577
|
+
##
|
|
1578
|
+
# Determines whether the LabelService service is supported by the current client.
|
|
1579
|
+
# If true, you can retrieve a client object by calling {Google::Ads::AdManager.label_service}.
|
|
1580
|
+
# If false, that method will raise an exception. This could happen if the given
|
|
1581
|
+
# API version does not exist or does not support the LabelService service,
|
|
1582
|
+
# or if the versioned client gem needs an update to support the LabelService service.
|
|
1583
|
+
#
|
|
1584
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
1585
|
+
# Defaults to `:v1`.
|
|
1586
|
+
# @return [boolean] Whether the service is available.
|
|
1587
|
+
#
|
|
1588
|
+
def self.label_service_available? version: :v1
|
|
1589
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
1590
|
+
package_name = Google::Ads::AdManager
|
|
1591
|
+
.constants
|
|
1592
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
1593
|
+
.first
|
|
1594
|
+
return false unless package_name
|
|
1595
|
+
service_module = Google::Ads::AdManager.const_get package_name
|
|
1596
|
+
return false unless service_module.const_defined? :LabelService
|
|
1597
|
+
service_module = service_module.const_get :LabelService
|
|
1598
|
+
return false unless service_module.const_defined? :Rest
|
|
1599
|
+
service_module = service_module.const_get :Rest
|
|
1600
|
+
service_module.const_defined? :Client
|
|
1601
|
+
rescue ::LoadError
|
|
1602
|
+
false
|
|
1603
|
+
end
|
|
1604
|
+
|
|
1542
1605
|
##
|
|
1543
1606
|
# Create a new client object for LineItemService.
|
|
1544
1607
|
#
|
|
@@ -1602,6 +1665,132 @@ module Google
|
|
|
1602
1665
|
false
|
|
1603
1666
|
end
|
|
1604
1667
|
|
|
1668
|
+
##
|
|
1669
|
+
# Create a new client object for LinkedDeviceService.
|
|
1670
|
+
#
|
|
1671
|
+
# By default, this returns an instance of
|
|
1672
|
+
# [Google::Ads::AdManager::V1::LinkedDeviceService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/LinkedDeviceService/Rest/Client)
|
|
1673
|
+
# for a REST client for version V1 of the API.
|
|
1674
|
+
# However, you can specify a different API version by passing it in the
|
|
1675
|
+
# `version` parameter. If the LinkedDeviceService service is
|
|
1676
|
+
# supported by that API version, and the corresponding gem is available, the
|
|
1677
|
+
# appropriate versioned client will be returned.
|
|
1678
|
+
#
|
|
1679
|
+
# Raises an exception if the currently installed versioned client gem for the
|
|
1680
|
+
# given API version does not support the LinkedDeviceService service.
|
|
1681
|
+
# You can determine whether the method will succeed by calling
|
|
1682
|
+
# {Google::Ads::AdManager.linked_device_service_available?}.
|
|
1683
|
+
#
|
|
1684
|
+
# ## About LinkedDeviceService
|
|
1685
|
+
#
|
|
1686
|
+
# Provides methods for handling `LinkedDevice` objects.
|
|
1687
|
+
#
|
|
1688
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
1689
|
+
# Defaults to `:v1`.
|
|
1690
|
+
# @return [::Object] A client object for the specified version.
|
|
1691
|
+
#
|
|
1692
|
+
def self.linked_device_service version: :v1, &block
|
|
1693
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
1694
|
+
|
|
1695
|
+
package_name = Google::Ads::AdManager
|
|
1696
|
+
.constants
|
|
1697
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
1698
|
+
.first
|
|
1699
|
+
service_module = Google::Ads::AdManager.const_get(package_name).const_get(:LinkedDeviceService)
|
|
1700
|
+
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
|
1701
|
+
end
|
|
1702
|
+
|
|
1703
|
+
##
|
|
1704
|
+
# Determines whether the LinkedDeviceService service is supported by the current client.
|
|
1705
|
+
# If true, you can retrieve a client object by calling {Google::Ads::AdManager.linked_device_service}.
|
|
1706
|
+
# If false, that method will raise an exception. This could happen if the given
|
|
1707
|
+
# API version does not exist or does not support the LinkedDeviceService service,
|
|
1708
|
+
# or if the versioned client gem needs an update to support the LinkedDeviceService service.
|
|
1709
|
+
#
|
|
1710
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
1711
|
+
# Defaults to `:v1`.
|
|
1712
|
+
# @return [boolean] Whether the service is available.
|
|
1713
|
+
#
|
|
1714
|
+
def self.linked_device_service_available? version: :v1
|
|
1715
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
1716
|
+
package_name = Google::Ads::AdManager
|
|
1717
|
+
.constants
|
|
1718
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
1719
|
+
.first
|
|
1720
|
+
return false unless package_name
|
|
1721
|
+
service_module = Google::Ads::AdManager.const_get package_name
|
|
1722
|
+
return false unless service_module.const_defined? :LinkedDeviceService
|
|
1723
|
+
service_module = service_module.const_get :LinkedDeviceService
|
|
1724
|
+
return false unless service_module.const_defined? :Rest
|
|
1725
|
+
service_module = service_module.const_get :Rest
|
|
1726
|
+
service_module.const_defined? :Client
|
|
1727
|
+
rescue ::LoadError
|
|
1728
|
+
false
|
|
1729
|
+
end
|
|
1730
|
+
|
|
1731
|
+
##
|
|
1732
|
+
# Create a new client object for McmEarningsService.
|
|
1733
|
+
#
|
|
1734
|
+
# By default, this returns an instance of
|
|
1735
|
+
# [Google::Ads::AdManager::V1::McmEarningsService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/McmEarningsService/Rest/Client)
|
|
1736
|
+
# for a REST client for version V1 of the API.
|
|
1737
|
+
# However, you can specify a different API version by passing it in the
|
|
1738
|
+
# `version` parameter. If the McmEarningsService service is
|
|
1739
|
+
# supported by that API version, and the corresponding gem is available, the
|
|
1740
|
+
# appropriate versioned client will be returned.
|
|
1741
|
+
#
|
|
1742
|
+
# Raises an exception if the currently installed versioned client gem for the
|
|
1743
|
+
# given API version does not support the McmEarningsService service.
|
|
1744
|
+
# You can determine whether the method will succeed by calling
|
|
1745
|
+
# {Google::Ads::AdManager.mcm_earnings_service_available?}.
|
|
1746
|
+
#
|
|
1747
|
+
# ## About McmEarningsService
|
|
1748
|
+
#
|
|
1749
|
+
# Provides methods for handling `McmEarnings` objects.
|
|
1750
|
+
#
|
|
1751
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
1752
|
+
# Defaults to `:v1`.
|
|
1753
|
+
# @return [::Object] A client object for the specified version.
|
|
1754
|
+
#
|
|
1755
|
+
def self.mcm_earnings_service version: :v1, &block
|
|
1756
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
1757
|
+
|
|
1758
|
+
package_name = Google::Ads::AdManager
|
|
1759
|
+
.constants
|
|
1760
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
1761
|
+
.first
|
|
1762
|
+
service_module = Google::Ads::AdManager.const_get(package_name).const_get(:McmEarningsService)
|
|
1763
|
+
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
|
1764
|
+
end
|
|
1765
|
+
|
|
1766
|
+
##
|
|
1767
|
+
# Determines whether the McmEarningsService service is supported by the current client.
|
|
1768
|
+
# If true, you can retrieve a client object by calling {Google::Ads::AdManager.mcm_earnings_service}.
|
|
1769
|
+
# If false, that method will raise an exception. This could happen if the given
|
|
1770
|
+
# API version does not exist or does not support the McmEarningsService service,
|
|
1771
|
+
# or if the versioned client gem needs an update to support the McmEarningsService service.
|
|
1772
|
+
#
|
|
1773
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
1774
|
+
# Defaults to `:v1`.
|
|
1775
|
+
# @return [boolean] Whether the service is available.
|
|
1776
|
+
#
|
|
1777
|
+
def self.mcm_earnings_service_available? version: :v1
|
|
1778
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
1779
|
+
package_name = Google::Ads::AdManager
|
|
1780
|
+
.constants
|
|
1781
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
1782
|
+
.first
|
|
1783
|
+
return false unless package_name
|
|
1784
|
+
service_module = Google::Ads::AdManager.const_get package_name
|
|
1785
|
+
return false unless service_module.const_defined? :McmEarningsService
|
|
1786
|
+
service_module = service_module.const_get :McmEarningsService
|
|
1787
|
+
return false unless service_module.const_defined? :Rest
|
|
1788
|
+
service_module = service_module.const_get :Rest
|
|
1789
|
+
service_module.const_defined? :Client
|
|
1790
|
+
rescue ::LoadError
|
|
1791
|
+
false
|
|
1792
|
+
end
|
|
1793
|
+
|
|
1605
1794
|
##
|
|
1606
1795
|
# Create a new client object for MobileCarrierService.
|
|
1607
1796
|
#
|
|
@@ -2358,6 +2547,69 @@ module Google
|
|
|
2358
2547
|
false
|
|
2359
2548
|
end
|
|
2360
2549
|
|
|
2550
|
+
##
|
|
2551
|
+
# Create a new client object for RichMediaAdsCompanyService.
|
|
2552
|
+
#
|
|
2553
|
+
# By default, this returns an instance of
|
|
2554
|
+
# [Google::Ads::AdManager::V1::RichMediaAdsCompanyService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/RichMediaAdsCompanyService/Rest/Client)
|
|
2555
|
+
# for a REST client for version V1 of the API.
|
|
2556
|
+
# However, you can specify a different API version by passing it in the
|
|
2557
|
+
# `version` parameter. If the RichMediaAdsCompanyService service is
|
|
2558
|
+
# supported by that API version, and the corresponding gem is available, the
|
|
2559
|
+
# appropriate versioned client will be returned.
|
|
2560
|
+
#
|
|
2561
|
+
# Raises an exception if the currently installed versioned client gem for the
|
|
2562
|
+
# given API version does not support the RichMediaAdsCompanyService service.
|
|
2563
|
+
# You can determine whether the method will succeed by calling
|
|
2564
|
+
# {Google::Ads::AdManager.rich_media_ads_company_service_available?}.
|
|
2565
|
+
#
|
|
2566
|
+
# ## About RichMediaAdsCompanyService
|
|
2567
|
+
#
|
|
2568
|
+
# Provides methods for handling `RichMediaAdsCompany` objects.
|
|
2569
|
+
#
|
|
2570
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
2571
|
+
# Defaults to `:v1`.
|
|
2572
|
+
# @return [::Object] A client object for the specified version.
|
|
2573
|
+
#
|
|
2574
|
+
def self.rich_media_ads_company_service version: :v1, &block
|
|
2575
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
2576
|
+
|
|
2577
|
+
package_name = Google::Ads::AdManager
|
|
2578
|
+
.constants
|
|
2579
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
2580
|
+
.first
|
|
2581
|
+
service_module = Google::Ads::AdManager.const_get(package_name).const_get(:RichMediaAdsCompanyService)
|
|
2582
|
+
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
|
2583
|
+
end
|
|
2584
|
+
|
|
2585
|
+
##
|
|
2586
|
+
# Determines whether the RichMediaAdsCompanyService service is supported by the current client.
|
|
2587
|
+
# If true, you can retrieve a client object by calling {Google::Ads::AdManager.rich_media_ads_company_service}.
|
|
2588
|
+
# If false, that method will raise an exception. This could happen if the given
|
|
2589
|
+
# API version does not exist or does not support the RichMediaAdsCompanyService service,
|
|
2590
|
+
# or if the versioned client gem needs an update to support the RichMediaAdsCompanyService service.
|
|
2591
|
+
#
|
|
2592
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
2593
|
+
# Defaults to `:v1`.
|
|
2594
|
+
# @return [boolean] Whether the service is available.
|
|
2595
|
+
#
|
|
2596
|
+
def self.rich_media_ads_company_service_available? version: :v1
|
|
2597
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
2598
|
+
package_name = Google::Ads::AdManager
|
|
2599
|
+
.constants
|
|
2600
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
2601
|
+
.first
|
|
2602
|
+
return false unless package_name
|
|
2603
|
+
service_module = Google::Ads::AdManager.const_get package_name
|
|
2604
|
+
return false unless service_module.const_defined? :RichMediaAdsCompanyService
|
|
2605
|
+
service_module = service_module.const_get :RichMediaAdsCompanyService
|
|
2606
|
+
return false unless service_module.const_defined? :Rest
|
|
2607
|
+
service_module = service_module.const_get :Rest
|
|
2608
|
+
service_module.const_defined? :Client
|
|
2609
|
+
rescue ::LoadError
|
|
2610
|
+
false
|
|
2611
|
+
end
|
|
2612
|
+
|
|
2361
2613
|
##
|
|
2362
2614
|
# Create a new client object for RoleService.
|
|
2363
2615
|
#
|