google-ads-ad_manager 5.0.1 → 5.1.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/README.md +0 -1
- data/lib/google/ads/ad_manager/version.rb +1 -1
- data/lib/google/ads/ad_manager.rb +446 -1
- metadata +2 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a363132388fac3f60be9c21402bb25edb2aa06846d2c03c9c353a2b31acaadaa
|
|
4
|
+
data.tar.gz: 416d1519edf3a12ba980ab15c947bdc887dbcd3903720194f2d0e2f2b9605f72
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ec7c682582dcd578c261ed388a0ad7d5b49015eb7f64b196e14a3a76f37741c711d34ee01b57967451f85e9d70c2f973902ff7a776e12d9cf35e456a7ca272ea
|
|
7
|
+
data.tar.gz: db8ef486005eacfdf109ab3d5b197753a274204a8ad38f7b81197c0140a7514ac63f15db7b1575add6d18ac254257a43feb4df13d4d00382cd5258c7188fa4fc
|
data/README.md
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Manage your Ad Manager inventory, run reports and more.
|
|
4
4
|
|
|
5
|
-
The Ad Manager API enables an app to integrate with Google Ad Manager. You can read and write Ad Manager data and run reports using the API.
|
|
6
5
|
|
|
7
6
|
Actual client classes for the various versions of this API are defined in
|
|
8
7
|
_versioned_ client gems, with names of the form `google-ads-ad_manager-v*`.
|
|
@@ -720,6 +720,70 @@ module Google
|
|
|
720
720
|
false
|
|
721
721
|
end
|
|
722
722
|
|
|
723
|
+
##
|
|
724
|
+
# Create a new client object for ChildPublisherService.
|
|
725
|
+
#
|
|
726
|
+
# By default, this returns an instance of
|
|
727
|
+
# [Google::Ads::AdManager::V1::ChildPublisherService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/ChildPublisherService/Rest/Client)
|
|
728
|
+
# for a REST client for version V1 of the API.
|
|
729
|
+
# However, you can specify a different API version by passing it in the
|
|
730
|
+
# `version` parameter. If the ChildPublisherService service is
|
|
731
|
+
# supported by that API version, and the corresponding gem is available, the
|
|
732
|
+
# appropriate versioned client will be returned.
|
|
733
|
+
#
|
|
734
|
+
# Raises an exception if the currently installed versioned client gem for the
|
|
735
|
+
# given API version does not support the ChildPublisherService service.
|
|
736
|
+
# You can determine whether the method will succeed by calling
|
|
737
|
+
# {Google::Ads::AdManager.child_publisher_service_available?}.
|
|
738
|
+
#
|
|
739
|
+
# ## About ChildPublisherService
|
|
740
|
+
#
|
|
741
|
+
# Provides methods for handling
|
|
742
|
+
# ChildPublisher objects.
|
|
743
|
+
#
|
|
744
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
745
|
+
# Defaults to `:v1`.
|
|
746
|
+
# @return [::Object] A client object for the specified version.
|
|
747
|
+
#
|
|
748
|
+
def self.child_publisher_service version: :v1, &block
|
|
749
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
750
|
+
|
|
751
|
+
package_name = Google::Ads::AdManager
|
|
752
|
+
.constants
|
|
753
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
754
|
+
.first
|
|
755
|
+
service_module = Google::Ads::AdManager.const_get(package_name).const_get(:ChildPublisherService)
|
|
756
|
+
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
|
757
|
+
end
|
|
758
|
+
|
|
759
|
+
##
|
|
760
|
+
# Determines whether the ChildPublisherService service is supported by the current client.
|
|
761
|
+
# If true, you can retrieve a client object by calling {Google::Ads::AdManager.child_publisher_service}.
|
|
762
|
+
# If false, that method will raise an exception. This could happen if the given
|
|
763
|
+
# API version does not exist or does not support the ChildPublisherService service,
|
|
764
|
+
# or if the versioned client gem needs an update to support the ChildPublisherService service.
|
|
765
|
+
#
|
|
766
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
767
|
+
# Defaults to `:v1`.
|
|
768
|
+
# @return [boolean] Whether the service is available.
|
|
769
|
+
#
|
|
770
|
+
def self.child_publisher_service_available? version: :v1
|
|
771
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
772
|
+
package_name = Google::Ads::AdManager
|
|
773
|
+
.constants
|
|
774
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
775
|
+
.first
|
|
776
|
+
return false unless package_name
|
|
777
|
+
service_module = Google::Ads::AdManager.const_get package_name
|
|
778
|
+
return false unless service_module.const_defined? :ChildPublisherService
|
|
779
|
+
service_module = service_module.const_get :ChildPublisherService
|
|
780
|
+
return false unless service_module.const_defined? :Rest
|
|
781
|
+
service_module = service_module.const_get :Rest
|
|
782
|
+
service_module.const_defined? :Client
|
|
783
|
+
rescue ::LoadError
|
|
784
|
+
false
|
|
785
|
+
end
|
|
786
|
+
|
|
723
787
|
##
|
|
724
788
|
# Create a new client object for CmsMetadataKeyService.
|
|
725
789
|
#
|
|
@@ -864,7 +928,8 @@ module Google
|
|
|
864
928
|
#
|
|
865
929
|
# ## About CompanyService
|
|
866
930
|
#
|
|
867
|
-
# Provides methods for handling
|
|
931
|
+
# Provides methods for handling Company
|
|
932
|
+
# objects.
|
|
868
933
|
#
|
|
869
934
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
870
935
|
# Defaults to `:v1`.
|
|
@@ -1287,6 +1352,69 @@ module Google
|
|
|
1287
1352
|
false
|
|
1288
1353
|
end
|
|
1289
1354
|
|
|
1355
|
+
##
|
|
1356
|
+
# Create a new client object for CreativeWrapperService.
|
|
1357
|
+
#
|
|
1358
|
+
# By default, this returns an instance of
|
|
1359
|
+
# [Google::Ads::AdManager::V1::CreativeWrapperService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/CreativeWrapperService/Rest/Client)
|
|
1360
|
+
# for a REST client for version V1 of the API.
|
|
1361
|
+
# However, you can specify a different API version by passing it in the
|
|
1362
|
+
# `version` parameter. If the CreativeWrapperService service is
|
|
1363
|
+
# supported by that API version, and the corresponding gem is available, the
|
|
1364
|
+
# appropriate versioned client will be returned.
|
|
1365
|
+
#
|
|
1366
|
+
# Raises an exception if the currently installed versioned client gem for the
|
|
1367
|
+
# given API version does not support the CreativeWrapperService service.
|
|
1368
|
+
# You can determine whether the method will succeed by calling
|
|
1369
|
+
# {Google::Ads::AdManager.creative_wrapper_service_available?}.
|
|
1370
|
+
#
|
|
1371
|
+
# ## About CreativeWrapperService
|
|
1372
|
+
#
|
|
1373
|
+
# Provides methods for handling `CreativeWrapper` objects.
|
|
1374
|
+
#
|
|
1375
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
1376
|
+
# Defaults to `:v1`.
|
|
1377
|
+
# @return [::Object] A client object for the specified version.
|
|
1378
|
+
#
|
|
1379
|
+
def self.creative_wrapper_service version: :v1, &block
|
|
1380
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
1381
|
+
|
|
1382
|
+
package_name = Google::Ads::AdManager
|
|
1383
|
+
.constants
|
|
1384
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
1385
|
+
.first
|
|
1386
|
+
service_module = Google::Ads::AdManager.const_get(package_name).const_get(:CreativeWrapperService)
|
|
1387
|
+
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
|
1388
|
+
end
|
|
1389
|
+
|
|
1390
|
+
##
|
|
1391
|
+
# Determines whether the CreativeWrapperService service is supported by the current client.
|
|
1392
|
+
# If true, you can retrieve a client object by calling {Google::Ads::AdManager.creative_wrapper_service}.
|
|
1393
|
+
# If false, that method will raise an exception. This could happen if the given
|
|
1394
|
+
# API version does not exist or does not support the CreativeWrapperService service,
|
|
1395
|
+
# or if the versioned client gem needs an update to support the CreativeWrapperService service.
|
|
1396
|
+
#
|
|
1397
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
1398
|
+
# Defaults to `:v1`.
|
|
1399
|
+
# @return [boolean] Whether the service is available.
|
|
1400
|
+
#
|
|
1401
|
+
def self.creative_wrapper_service_available? version: :v1
|
|
1402
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
1403
|
+
package_name = Google::Ads::AdManager
|
|
1404
|
+
.constants
|
|
1405
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
1406
|
+
.first
|
|
1407
|
+
return false unless package_name
|
|
1408
|
+
service_module = Google::Ads::AdManager.const_get package_name
|
|
1409
|
+
return false unless service_module.const_defined? :CreativeWrapperService
|
|
1410
|
+
service_module = service_module.const_get :CreativeWrapperService
|
|
1411
|
+
return false unless service_module.const_defined? :Rest
|
|
1412
|
+
service_module = service_module.const_get :Rest
|
|
1413
|
+
service_module.const_defined? :Client
|
|
1414
|
+
rescue ::LoadError
|
|
1415
|
+
false
|
|
1416
|
+
end
|
|
1417
|
+
|
|
1290
1418
|
##
|
|
1291
1419
|
# Create a new client object for CustomFieldService.
|
|
1292
1420
|
#
|
|
@@ -1476,6 +1604,132 @@ module Google
|
|
|
1476
1604
|
false
|
|
1477
1605
|
end
|
|
1478
1606
|
|
|
1607
|
+
##
|
|
1608
|
+
# Create a new client object for DaiAuthenticationKeyService.
|
|
1609
|
+
#
|
|
1610
|
+
# By default, this returns an instance of
|
|
1611
|
+
# [Google::Ads::AdManager::V1::DaiAuthenticationKeyService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/DaiAuthenticationKeyService/Rest/Client)
|
|
1612
|
+
# for a REST client for version V1 of the API.
|
|
1613
|
+
# However, you can specify a different API version by passing it in the
|
|
1614
|
+
# `version` parameter. If the DaiAuthenticationKeyService service is
|
|
1615
|
+
# supported by that API version, and the corresponding gem is available, the
|
|
1616
|
+
# appropriate versioned client will be returned.
|
|
1617
|
+
#
|
|
1618
|
+
# Raises an exception if the currently installed versioned client gem for the
|
|
1619
|
+
# given API version does not support the DaiAuthenticationKeyService service.
|
|
1620
|
+
# You can determine whether the method will succeed by calling
|
|
1621
|
+
# {Google::Ads::AdManager.dai_authentication_key_service_available?}.
|
|
1622
|
+
#
|
|
1623
|
+
# ## About DaiAuthenticationKeyService
|
|
1624
|
+
#
|
|
1625
|
+
# Provides methods for handling `DaiAuthenticationKey` objects.
|
|
1626
|
+
#
|
|
1627
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
1628
|
+
# Defaults to `:v1`.
|
|
1629
|
+
# @return [::Object] A client object for the specified version.
|
|
1630
|
+
#
|
|
1631
|
+
def self.dai_authentication_key_service version: :v1, &block
|
|
1632
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
1633
|
+
|
|
1634
|
+
package_name = Google::Ads::AdManager
|
|
1635
|
+
.constants
|
|
1636
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
1637
|
+
.first
|
|
1638
|
+
service_module = Google::Ads::AdManager.const_get(package_name).const_get(:DaiAuthenticationKeyService)
|
|
1639
|
+
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
|
1640
|
+
end
|
|
1641
|
+
|
|
1642
|
+
##
|
|
1643
|
+
# Determines whether the DaiAuthenticationKeyService service is supported by the current client.
|
|
1644
|
+
# If true, you can retrieve a client object by calling {Google::Ads::AdManager.dai_authentication_key_service}.
|
|
1645
|
+
# If false, that method will raise an exception. This could happen if the given
|
|
1646
|
+
# API version does not exist or does not support the DaiAuthenticationKeyService service,
|
|
1647
|
+
# or if the versioned client gem needs an update to support the DaiAuthenticationKeyService service.
|
|
1648
|
+
#
|
|
1649
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
1650
|
+
# Defaults to `:v1`.
|
|
1651
|
+
# @return [boolean] Whether the service is available.
|
|
1652
|
+
#
|
|
1653
|
+
def self.dai_authentication_key_service_available? version: :v1
|
|
1654
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
1655
|
+
package_name = Google::Ads::AdManager
|
|
1656
|
+
.constants
|
|
1657
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
1658
|
+
.first
|
|
1659
|
+
return false unless package_name
|
|
1660
|
+
service_module = Google::Ads::AdManager.const_get package_name
|
|
1661
|
+
return false unless service_module.const_defined? :DaiAuthenticationKeyService
|
|
1662
|
+
service_module = service_module.const_get :DaiAuthenticationKeyService
|
|
1663
|
+
return false unless service_module.const_defined? :Rest
|
|
1664
|
+
service_module = service_module.const_get :Rest
|
|
1665
|
+
service_module.const_defined? :Client
|
|
1666
|
+
rescue ::LoadError
|
|
1667
|
+
false
|
|
1668
|
+
end
|
|
1669
|
+
|
|
1670
|
+
##
|
|
1671
|
+
# Create a new client object for DaiEncodingProfileService.
|
|
1672
|
+
#
|
|
1673
|
+
# By default, this returns an instance of
|
|
1674
|
+
# [Google::Ads::AdManager::V1::DaiEncodingProfileService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/DaiEncodingProfileService/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 DaiEncodingProfileService 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 DaiEncodingProfileService service.
|
|
1683
|
+
# You can determine whether the method will succeed by calling
|
|
1684
|
+
# {Google::Ads::AdManager.dai_encoding_profile_service_available?}.
|
|
1685
|
+
#
|
|
1686
|
+
# ## About DaiEncodingProfileService
|
|
1687
|
+
#
|
|
1688
|
+
# Provides methods for handling `DaiEncodingProfile` 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_encoding_profile_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(:DaiEncodingProfileService)
|
|
1702
|
+
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
|
1703
|
+
end
|
|
1704
|
+
|
|
1705
|
+
##
|
|
1706
|
+
# Determines whether the DaiEncodingProfileService service is supported by the current client.
|
|
1707
|
+
# If true, you can retrieve a client object by calling {Google::Ads::AdManager.dai_encoding_profile_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 DaiEncodingProfileService service,
|
|
1710
|
+
# or if the versioned client gem needs an update to support the DaiEncodingProfileService 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_encoding_profile_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? :DaiEncodingProfileService
|
|
1725
|
+
service_module = service_module.const_get :DaiEncodingProfileService
|
|
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
|
+
|
|
1479
1733
|
##
|
|
1480
1734
|
# Create a new client object for DeviceCapabilityService.
|
|
1481
1735
|
#
|
|
@@ -2295,6 +2549,69 @@ module Google
|
|
|
2295
2549
|
false
|
|
2296
2550
|
end
|
|
2297
2551
|
|
|
2552
|
+
##
|
|
2553
|
+
# Create a new client object for NativeStyleService.
|
|
2554
|
+
#
|
|
2555
|
+
# By default, this returns an instance of
|
|
2556
|
+
# [Google::Ads::AdManager::V1::NativeStyleService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/NativeStyleService/Rest/Client)
|
|
2557
|
+
# for a REST client for version V1 of the API.
|
|
2558
|
+
# However, you can specify a different API version by passing it in the
|
|
2559
|
+
# `version` parameter. If the NativeStyleService service is
|
|
2560
|
+
# supported by that API version, and the corresponding gem is available, the
|
|
2561
|
+
# appropriate versioned client will be returned.
|
|
2562
|
+
#
|
|
2563
|
+
# Raises an exception if the currently installed versioned client gem for the
|
|
2564
|
+
# given API version does not support the NativeStyleService service.
|
|
2565
|
+
# You can determine whether the method will succeed by calling
|
|
2566
|
+
# {Google::Ads::AdManager.native_style_service_available?}.
|
|
2567
|
+
#
|
|
2568
|
+
# ## About NativeStyleService
|
|
2569
|
+
#
|
|
2570
|
+
# Provides methods for handling `NativeStyle` objects.
|
|
2571
|
+
#
|
|
2572
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
2573
|
+
# Defaults to `:v1`.
|
|
2574
|
+
# @return [::Object] A client object for the specified version.
|
|
2575
|
+
#
|
|
2576
|
+
def self.native_style_service version: :v1, &block
|
|
2577
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
2578
|
+
|
|
2579
|
+
package_name = Google::Ads::AdManager
|
|
2580
|
+
.constants
|
|
2581
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
2582
|
+
.first
|
|
2583
|
+
service_module = Google::Ads::AdManager.const_get(package_name).const_get(:NativeStyleService)
|
|
2584
|
+
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
|
2585
|
+
end
|
|
2586
|
+
|
|
2587
|
+
##
|
|
2588
|
+
# Determines whether the NativeStyleService service is supported by the current client.
|
|
2589
|
+
# If true, you can retrieve a client object by calling {Google::Ads::AdManager.native_style_service}.
|
|
2590
|
+
# If false, that method will raise an exception. This could happen if the given
|
|
2591
|
+
# API version does not exist or does not support the NativeStyleService service,
|
|
2592
|
+
# or if the versioned client gem needs an update to support the NativeStyleService service.
|
|
2593
|
+
#
|
|
2594
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
2595
|
+
# Defaults to `:v1`.
|
|
2596
|
+
# @return [boolean] Whether the service is available.
|
|
2597
|
+
#
|
|
2598
|
+
def self.native_style_service_available? version: :v1
|
|
2599
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
2600
|
+
package_name = Google::Ads::AdManager
|
|
2601
|
+
.constants
|
|
2602
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
2603
|
+
.first
|
|
2604
|
+
return false unless package_name
|
|
2605
|
+
service_module = Google::Ads::AdManager.const_get package_name
|
|
2606
|
+
return false unless service_module.const_defined? :NativeStyleService
|
|
2607
|
+
service_module = service_module.const_get :NativeStyleService
|
|
2608
|
+
return false unless service_module.const_defined? :Rest
|
|
2609
|
+
service_module = service_module.const_get :Rest
|
|
2610
|
+
service_module.const_defined? :Client
|
|
2611
|
+
rescue ::LoadError
|
|
2612
|
+
false
|
|
2613
|
+
end
|
|
2614
|
+
|
|
2298
2615
|
##
|
|
2299
2616
|
# Create a new client object for NetworkService.
|
|
2300
2617
|
#
|
|
@@ -2547,6 +2864,70 @@ module Google
|
|
|
2547
2864
|
false
|
|
2548
2865
|
end
|
|
2549
2866
|
|
|
2867
|
+
##
|
|
2868
|
+
# Create a new client object for PartnerService.
|
|
2869
|
+
#
|
|
2870
|
+
# By default, this returns an instance of
|
|
2871
|
+
# [Google::Ads::AdManager::V1::PartnerService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/PartnerService/Rest/Client)
|
|
2872
|
+
# for a REST client for version V1 of the API.
|
|
2873
|
+
# However, you can specify a different API version by passing it in the
|
|
2874
|
+
# `version` parameter. If the PartnerService service is
|
|
2875
|
+
# supported by that API version, and the corresponding gem is available, the
|
|
2876
|
+
# appropriate versioned client will be returned.
|
|
2877
|
+
#
|
|
2878
|
+
# Raises an exception if the currently installed versioned client gem for the
|
|
2879
|
+
# given API version does not support the PartnerService service.
|
|
2880
|
+
# You can determine whether the method will succeed by calling
|
|
2881
|
+
# {Google::Ads::AdManager.partner_service_available?}.
|
|
2882
|
+
#
|
|
2883
|
+
# ## About PartnerService
|
|
2884
|
+
#
|
|
2885
|
+
# Provides methods for handling Partner
|
|
2886
|
+
# objects.
|
|
2887
|
+
#
|
|
2888
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
2889
|
+
# Defaults to `:v1`.
|
|
2890
|
+
# @return [::Object] A client object for the specified version.
|
|
2891
|
+
#
|
|
2892
|
+
def self.partner_service version: :v1, &block
|
|
2893
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
2894
|
+
|
|
2895
|
+
package_name = Google::Ads::AdManager
|
|
2896
|
+
.constants
|
|
2897
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
2898
|
+
.first
|
|
2899
|
+
service_module = Google::Ads::AdManager.const_get(package_name).const_get(:PartnerService)
|
|
2900
|
+
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
|
2901
|
+
end
|
|
2902
|
+
|
|
2903
|
+
##
|
|
2904
|
+
# Determines whether the PartnerService service is supported by the current client.
|
|
2905
|
+
# If true, you can retrieve a client object by calling {Google::Ads::AdManager.partner_service}.
|
|
2906
|
+
# If false, that method will raise an exception. This could happen if the given
|
|
2907
|
+
# API version does not exist or does not support the PartnerService service,
|
|
2908
|
+
# or if the versioned client gem needs an update to support the PartnerService service.
|
|
2909
|
+
#
|
|
2910
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
2911
|
+
# Defaults to `:v1`.
|
|
2912
|
+
# @return [boolean] Whether the service is available.
|
|
2913
|
+
#
|
|
2914
|
+
def self.partner_service_available? version: :v1
|
|
2915
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
2916
|
+
package_name = Google::Ads::AdManager
|
|
2917
|
+
.constants
|
|
2918
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
2919
|
+
.first
|
|
2920
|
+
return false unless package_name
|
|
2921
|
+
service_module = Google::Ads::AdManager.const_get package_name
|
|
2922
|
+
return false unless service_module.const_defined? :PartnerService
|
|
2923
|
+
service_module = service_module.const_get :PartnerService
|
|
2924
|
+
return false unless service_module.const_defined? :Rest
|
|
2925
|
+
service_module = service_module.const_get :Rest
|
|
2926
|
+
service_module.const_defined? :Client
|
|
2927
|
+
rescue ::LoadError
|
|
2928
|
+
false
|
|
2929
|
+
end
|
|
2930
|
+
|
|
2550
2931
|
##
|
|
2551
2932
|
# Create a new client object for PlacementService.
|
|
2552
2933
|
#
|
|
@@ -3492,6 +3873,70 @@ module Google
|
|
|
3492
3873
|
rescue ::LoadError
|
|
3493
3874
|
false
|
|
3494
3875
|
end
|
|
3876
|
+
|
|
3877
|
+
##
|
|
3878
|
+
# Create a new client object for ViewabilityProviderService.
|
|
3879
|
+
#
|
|
3880
|
+
# By default, this returns an instance of
|
|
3881
|
+
# [Google::Ads::AdManager::V1::ViewabilityProviderService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/ViewabilityProviderService/Rest/Client)
|
|
3882
|
+
# for a REST client for version V1 of the API.
|
|
3883
|
+
# However, you can specify a different API version by passing it in the
|
|
3884
|
+
# `version` parameter. If the ViewabilityProviderService service is
|
|
3885
|
+
# supported by that API version, and the corresponding gem is available, the
|
|
3886
|
+
# appropriate versioned client will be returned.
|
|
3887
|
+
#
|
|
3888
|
+
# Raises an exception if the currently installed versioned client gem for the
|
|
3889
|
+
# given API version does not support the ViewabilityProviderService service.
|
|
3890
|
+
# You can determine whether the method will succeed by calling
|
|
3891
|
+
# {Google::Ads::AdManager.viewability_provider_service_available?}.
|
|
3892
|
+
#
|
|
3893
|
+
# ## About ViewabilityProviderService
|
|
3894
|
+
#
|
|
3895
|
+
# Provides methods for handling
|
|
3896
|
+
# ViewabilityProvider objects.
|
|
3897
|
+
#
|
|
3898
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
3899
|
+
# Defaults to `:v1`.
|
|
3900
|
+
# @return [::Object] A client object for the specified version.
|
|
3901
|
+
#
|
|
3902
|
+
def self.viewability_provider_service version: :v1, &block
|
|
3903
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
3904
|
+
|
|
3905
|
+
package_name = Google::Ads::AdManager
|
|
3906
|
+
.constants
|
|
3907
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
3908
|
+
.first
|
|
3909
|
+
service_module = Google::Ads::AdManager.const_get(package_name).const_get(:ViewabilityProviderService)
|
|
3910
|
+
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
|
3911
|
+
end
|
|
3912
|
+
|
|
3913
|
+
##
|
|
3914
|
+
# Determines whether the ViewabilityProviderService service is supported by the current client.
|
|
3915
|
+
# If true, you can retrieve a client object by calling {Google::Ads::AdManager.viewability_provider_service}.
|
|
3916
|
+
# If false, that method will raise an exception. This could happen if the given
|
|
3917
|
+
# API version does not exist or does not support the ViewabilityProviderService service,
|
|
3918
|
+
# or if the versioned client gem needs an update to support the ViewabilityProviderService service.
|
|
3919
|
+
#
|
|
3920
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
3921
|
+
# Defaults to `:v1`.
|
|
3922
|
+
# @return [boolean] Whether the service is available.
|
|
3923
|
+
#
|
|
3924
|
+
def self.viewability_provider_service_available? version: :v1
|
|
3925
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
3926
|
+
package_name = Google::Ads::AdManager
|
|
3927
|
+
.constants
|
|
3928
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
3929
|
+
.first
|
|
3930
|
+
return false unless package_name
|
|
3931
|
+
service_module = Google::Ads::AdManager.const_get package_name
|
|
3932
|
+
return false unless service_module.const_defined? :ViewabilityProviderService
|
|
3933
|
+
service_module = service_module.const_get :ViewabilityProviderService
|
|
3934
|
+
return false unless service_module.const_defined? :Rest
|
|
3935
|
+
service_module = service_module.const_get :Rest
|
|
3936
|
+
service_module.const_defined? :Client
|
|
3937
|
+
rescue ::LoadError
|
|
3938
|
+
false
|
|
3939
|
+
end
|
|
3495
3940
|
end
|
|
3496
3941
|
end
|
|
3497
3942
|
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.0
|
|
4
|
+
version: 5.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -37,8 +37,7 @@ dependencies:
|
|
|
37
37
|
- - "~>"
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
39
|
version: '1.6'
|
|
40
|
-
description:
|
|
41
|
-
You can read and write Ad Manager data and run reports using the API.
|
|
40
|
+
description: Manage your Ad Manager inventory, run reports and more.
|
|
42
41
|
email: googleapis-packages@google.com
|
|
43
42
|
executables: []
|
|
44
43
|
extensions: []
|