google-ads-ad_manager 4.1.0 → 5.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 +568 -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: d6ff312509b76fb066cc8d1f22d3902c85bf64fdc5999307f14fff358f63e736
|
|
4
|
+
data.tar.gz: e3e8f400ee3a637f017c650e539b050a29f8a9d75bd83364e799762cf84e9f11
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 995e90e4a20bb353333cf9ae3d849eb9a4cb7a989549649006bc8ff501b8a370c5c8d4619c58a6b5239334f39c5cf42e4e616cfceba022809a278a971ec0a519
|
|
7
|
+
data.tar.gz: 5d511e8d1a5a861e02bb27db368a10075b5a8a1a31540ff13c355abb745384bb2ec8f209574ff25c482aca644e6c35c717319d49cafc0edf5df852e60333d239
|
|
@@ -153,6 +153,132 @@ module Google
|
|
|
153
153
|
false
|
|
154
154
|
end
|
|
155
155
|
|
|
156
|
+
##
|
|
157
|
+
# Create a new client object for AdRuleService.
|
|
158
|
+
#
|
|
159
|
+
# By default, this returns an instance of
|
|
160
|
+
# [Google::Ads::AdManager::V1::AdRuleService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/AdRuleService/Rest/Client)
|
|
161
|
+
# for a REST client for version V1 of the API.
|
|
162
|
+
# However, you can specify a different API version by passing it in the
|
|
163
|
+
# `version` parameter. If the AdRuleService service is
|
|
164
|
+
# supported by that API version, and the corresponding gem is available, the
|
|
165
|
+
# appropriate versioned client will be returned.
|
|
166
|
+
#
|
|
167
|
+
# Raises an exception if the currently installed versioned client gem for the
|
|
168
|
+
# given API version does not support the AdRuleService service.
|
|
169
|
+
# You can determine whether the method will succeed by calling
|
|
170
|
+
# {Google::Ads::AdManager.ad_rule_service_available?}.
|
|
171
|
+
#
|
|
172
|
+
# ## About AdRuleService
|
|
173
|
+
#
|
|
174
|
+
# Provides methods for handling `AdRule` objects.
|
|
175
|
+
#
|
|
176
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
177
|
+
# Defaults to `:v1`.
|
|
178
|
+
# @return [::Object] A client object for the specified version.
|
|
179
|
+
#
|
|
180
|
+
def self.ad_rule_service version: :v1, &block
|
|
181
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
182
|
+
|
|
183
|
+
package_name = Google::Ads::AdManager
|
|
184
|
+
.constants
|
|
185
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
186
|
+
.first
|
|
187
|
+
service_module = Google::Ads::AdManager.const_get(package_name).const_get(:AdRuleService)
|
|
188
|
+
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
##
|
|
192
|
+
# Determines whether the AdRuleService service is supported by the current client.
|
|
193
|
+
# If true, you can retrieve a client object by calling {Google::Ads::AdManager.ad_rule_service}.
|
|
194
|
+
# If false, that method will raise an exception. This could happen if the given
|
|
195
|
+
# API version does not exist or does not support the AdRuleService service,
|
|
196
|
+
# or if the versioned client gem needs an update to support the AdRuleService service.
|
|
197
|
+
#
|
|
198
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
199
|
+
# Defaults to `:v1`.
|
|
200
|
+
# @return [boolean] Whether the service is available.
|
|
201
|
+
#
|
|
202
|
+
def self.ad_rule_service_available? version: :v1
|
|
203
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
204
|
+
package_name = Google::Ads::AdManager
|
|
205
|
+
.constants
|
|
206
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
207
|
+
.first
|
|
208
|
+
return false unless package_name
|
|
209
|
+
service_module = Google::Ads::AdManager.const_get package_name
|
|
210
|
+
return false unless service_module.const_defined? :AdRuleService
|
|
211
|
+
service_module = service_module.const_get :AdRuleService
|
|
212
|
+
return false unless service_module.const_defined? :Rest
|
|
213
|
+
service_module = service_module.const_get :Rest
|
|
214
|
+
service_module.const_defined? :Client
|
|
215
|
+
rescue ::LoadError
|
|
216
|
+
false
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
##
|
|
220
|
+
# Create a new client object for AdSpotService.
|
|
221
|
+
#
|
|
222
|
+
# By default, this returns an instance of
|
|
223
|
+
# [Google::Ads::AdManager::V1::AdSpotService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/AdSpotService/Rest/Client)
|
|
224
|
+
# for a REST client for version V1 of the API.
|
|
225
|
+
# However, you can specify a different API version by passing it in the
|
|
226
|
+
# `version` parameter. If the AdSpotService service is
|
|
227
|
+
# supported by that API version, and the corresponding gem is available, the
|
|
228
|
+
# appropriate versioned client will be returned.
|
|
229
|
+
#
|
|
230
|
+
# Raises an exception if the currently installed versioned client gem for the
|
|
231
|
+
# given API version does not support the AdSpotService service.
|
|
232
|
+
# You can determine whether the method will succeed by calling
|
|
233
|
+
# {Google::Ads::AdManager.ad_spot_service_available?}.
|
|
234
|
+
#
|
|
235
|
+
# ## About AdSpotService
|
|
236
|
+
#
|
|
237
|
+
# Provides methods for handling `AdSpot` objects.
|
|
238
|
+
#
|
|
239
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
240
|
+
# Defaults to `:v1`.
|
|
241
|
+
# @return [::Object] A client object for the specified version.
|
|
242
|
+
#
|
|
243
|
+
def self.ad_spot_service version: :v1, &block
|
|
244
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
245
|
+
|
|
246
|
+
package_name = Google::Ads::AdManager
|
|
247
|
+
.constants
|
|
248
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
249
|
+
.first
|
|
250
|
+
service_module = Google::Ads::AdManager.const_get(package_name).const_get(:AdSpotService)
|
|
251
|
+
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
##
|
|
255
|
+
# Determines whether the AdSpotService service is supported by the current client.
|
|
256
|
+
# If true, you can retrieve a client object by calling {Google::Ads::AdManager.ad_spot_service}.
|
|
257
|
+
# If false, that method will raise an exception. This could happen if the given
|
|
258
|
+
# API version does not exist or does not support the AdSpotService service,
|
|
259
|
+
# or if the versioned client gem needs an update to support the AdSpotService service.
|
|
260
|
+
#
|
|
261
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
262
|
+
# Defaults to `:v1`.
|
|
263
|
+
# @return [boolean] Whether the service is available.
|
|
264
|
+
#
|
|
265
|
+
def self.ad_spot_service_available? version: :v1
|
|
266
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
267
|
+
package_name = Google::Ads::AdManager
|
|
268
|
+
.constants
|
|
269
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
270
|
+
.first
|
|
271
|
+
return false unless package_name
|
|
272
|
+
service_module = Google::Ads::AdManager.const_get package_name
|
|
273
|
+
return false unless service_module.const_defined? :AdSpotService
|
|
274
|
+
service_module = service_module.const_get :AdSpotService
|
|
275
|
+
return false unless service_module.const_defined? :Rest
|
|
276
|
+
service_module = service_module.const_get :Rest
|
|
277
|
+
service_module.const_defined? :Client
|
|
278
|
+
rescue ::LoadError
|
|
279
|
+
false
|
|
280
|
+
end
|
|
281
|
+
|
|
156
282
|
##
|
|
157
283
|
# Create a new client object for AdUnitService.
|
|
158
284
|
#
|
|
@@ -531,6 +657,69 @@ module Google
|
|
|
531
657
|
false
|
|
532
658
|
end
|
|
533
659
|
|
|
660
|
+
##
|
|
661
|
+
# Create a new client object for CdnConfigService.
|
|
662
|
+
#
|
|
663
|
+
# By default, this returns an instance of
|
|
664
|
+
# [Google::Ads::AdManager::V1::CdnConfigService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/CdnConfigService/Rest/Client)
|
|
665
|
+
# for a REST client for version V1 of the API.
|
|
666
|
+
# However, you can specify a different API version by passing it in the
|
|
667
|
+
# `version` parameter. If the CdnConfigService service is
|
|
668
|
+
# supported by that API version, and the corresponding gem is available, the
|
|
669
|
+
# appropriate versioned client will be returned.
|
|
670
|
+
#
|
|
671
|
+
# Raises an exception if the currently installed versioned client gem for the
|
|
672
|
+
# given API version does not support the CdnConfigService service.
|
|
673
|
+
# You can determine whether the method will succeed by calling
|
|
674
|
+
# {Google::Ads::AdManager.cdn_config_service_available?}.
|
|
675
|
+
#
|
|
676
|
+
# ## About CdnConfigService
|
|
677
|
+
#
|
|
678
|
+
# Provides methods for handling `CdnConfig` objects.
|
|
679
|
+
#
|
|
680
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
681
|
+
# Defaults to `:v1`.
|
|
682
|
+
# @return [::Object] A client object for the specified version.
|
|
683
|
+
#
|
|
684
|
+
def self.cdn_config_service version: :v1, &block
|
|
685
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
686
|
+
|
|
687
|
+
package_name = Google::Ads::AdManager
|
|
688
|
+
.constants
|
|
689
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
690
|
+
.first
|
|
691
|
+
service_module = Google::Ads::AdManager.const_get(package_name).const_get(:CdnConfigService)
|
|
692
|
+
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
|
693
|
+
end
|
|
694
|
+
|
|
695
|
+
##
|
|
696
|
+
# Determines whether the CdnConfigService service is supported by the current client.
|
|
697
|
+
# If true, you can retrieve a client object by calling {Google::Ads::AdManager.cdn_config_service}.
|
|
698
|
+
# If false, that method will raise an exception. This could happen if the given
|
|
699
|
+
# API version does not exist or does not support the CdnConfigService service,
|
|
700
|
+
# or if the versioned client gem needs an update to support the CdnConfigService service.
|
|
701
|
+
#
|
|
702
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
703
|
+
# Defaults to `:v1`.
|
|
704
|
+
# @return [boolean] Whether the service is available.
|
|
705
|
+
#
|
|
706
|
+
def self.cdn_config_service_available? version: :v1
|
|
707
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
708
|
+
package_name = Google::Ads::AdManager
|
|
709
|
+
.constants
|
|
710
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
711
|
+
.first
|
|
712
|
+
return false unless package_name
|
|
713
|
+
service_module = Google::Ads::AdManager.const_get package_name
|
|
714
|
+
return false unless service_module.const_defined? :CdnConfigService
|
|
715
|
+
service_module = service_module.const_get :CdnConfigService
|
|
716
|
+
return false unless service_module.const_defined? :Rest
|
|
717
|
+
service_module = service_module.const_get :Rest
|
|
718
|
+
service_module.const_defined? :Client
|
|
719
|
+
rescue ::LoadError
|
|
720
|
+
false
|
|
721
|
+
end
|
|
722
|
+
|
|
534
723
|
##
|
|
535
724
|
# Create a new client object for CmsMetadataKeyService.
|
|
536
725
|
#
|
|
@@ -972,6 +1161,69 @@ module Google
|
|
|
972
1161
|
false
|
|
973
1162
|
end
|
|
974
1163
|
|
|
1164
|
+
##
|
|
1165
|
+
# Create a new client object for CreativeSetService.
|
|
1166
|
+
#
|
|
1167
|
+
# By default, this returns an instance of
|
|
1168
|
+
# [Google::Ads::AdManager::V1::CreativeSetService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/CreativeSetService/Rest/Client)
|
|
1169
|
+
# for a REST client for version V1 of the API.
|
|
1170
|
+
# However, you can specify a different API version by passing it in the
|
|
1171
|
+
# `version` parameter. If the CreativeSetService service is
|
|
1172
|
+
# supported by that API version, and the corresponding gem is available, the
|
|
1173
|
+
# appropriate versioned client will be returned.
|
|
1174
|
+
#
|
|
1175
|
+
# Raises an exception if the currently installed versioned client gem for the
|
|
1176
|
+
# given API version does not support the CreativeSetService service.
|
|
1177
|
+
# You can determine whether the method will succeed by calling
|
|
1178
|
+
# {Google::Ads::AdManager.creative_set_service_available?}.
|
|
1179
|
+
#
|
|
1180
|
+
# ## About CreativeSetService
|
|
1181
|
+
#
|
|
1182
|
+
# Provides methods for handling `CreativeSet` objects.
|
|
1183
|
+
#
|
|
1184
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
1185
|
+
# Defaults to `:v1`.
|
|
1186
|
+
# @return [::Object] A client object for the specified version.
|
|
1187
|
+
#
|
|
1188
|
+
def self.creative_set_service version: :v1, &block
|
|
1189
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
1190
|
+
|
|
1191
|
+
package_name = Google::Ads::AdManager
|
|
1192
|
+
.constants
|
|
1193
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
1194
|
+
.first
|
|
1195
|
+
service_module = Google::Ads::AdManager.const_get(package_name).const_get(:CreativeSetService)
|
|
1196
|
+
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
|
1197
|
+
end
|
|
1198
|
+
|
|
1199
|
+
##
|
|
1200
|
+
# Determines whether the CreativeSetService service is supported by the current client.
|
|
1201
|
+
# If true, you can retrieve a client object by calling {Google::Ads::AdManager.creative_set_service}.
|
|
1202
|
+
# If false, that method will raise an exception. This could happen if the given
|
|
1203
|
+
# API version does not exist or does not support the CreativeSetService service,
|
|
1204
|
+
# or if the versioned client gem needs an update to support the CreativeSetService service.
|
|
1205
|
+
#
|
|
1206
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
1207
|
+
# Defaults to `:v1`.
|
|
1208
|
+
# @return [boolean] Whether the service is available.
|
|
1209
|
+
#
|
|
1210
|
+
def self.creative_set_service_available? version: :v1
|
|
1211
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
1212
|
+
package_name = Google::Ads::AdManager
|
|
1213
|
+
.constants
|
|
1214
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
1215
|
+
.first
|
|
1216
|
+
return false unless package_name
|
|
1217
|
+
service_module = Google::Ads::AdManager.const_get package_name
|
|
1218
|
+
return false unless service_module.const_defined? :CreativeSetService
|
|
1219
|
+
service_module = service_module.const_get :CreativeSetService
|
|
1220
|
+
return false unless service_module.const_defined? :Rest
|
|
1221
|
+
service_module = service_module.const_get :Rest
|
|
1222
|
+
service_module.const_defined? :Client
|
|
1223
|
+
rescue ::LoadError
|
|
1224
|
+
false
|
|
1225
|
+
end
|
|
1226
|
+
|
|
975
1227
|
##
|
|
976
1228
|
# Create a new client object for CreativeTemplateService.
|
|
977
1229
|
#
|
|
@@ -1728,6 +1980,69 @@ module Google
|
|
|
1728
1980
|
false
|
|
1729
1981
|
end
|
|
1730
1982
|
|
|
1983
|
+
##
|
|
1984
|
+
# Create a new client object for LiveStreamService.
|
|
1985
|
+
#
|
|
1986
|
+
# By default, this returns an instance of
|
|
1987
|
+
# [Google::Ads::AdManager::V1::LiveStreamService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/LiveStreamService/Rest/Client)
|
|
1988
|
+
# for a REST client for version V1 of the API.
|
|
1989
|
+
# However, you can specify a different API version by passing it in the
|
|
1990
|
+
# `version` parameter. If the LiveStreamService service is
|
|
1991
|
+
# supported by that API version, and the corresponding gem is available, the
|
|
1992
|
+
# appropriate versioned client will be returned.
|
|
1993
|
+
#
|
|
1994
|
+
# Raises an exception if the currently installed versioned client gem for the
|
|
1995
|
+
# given API version does not support the LiveStreamService service.
|
|
1996
|
+
# You can determine whether the method will succeed by calling
|
|
1997
|
+
# {Google::Ads::AdManager.live_stream_service_available?}.
|
|
1998
|
+
#
|
|
1999
|
+
# ## About LiveStreamService
|
|
2000
|
+
#
|
|
2001
|
+
# Provides methods for handling `LiveStream` objects.
|
|
2002
|
+
#
|
|
2003
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
2004
|
+
# Defaults to `:v1`.
|
|
2005
|
+
# @return [::Object] A client object for the specified version.
|
|
2006
|
+
#
|
|
2007
|
+
def self.live_stream_service version: :v1, &block
|
|
2008
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
2009
|
+
|
|
2010
|
+
package_name = Google::Ads::AdManager
|
|
2011
|
+
.constants
|
|
2012
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
2013
|
+
.first
|
|
2014
|
+
service_module = Google::Ads::AdManager.const_get(package_name).const_get(:LiveStreamService)
|
|
2015
|
+
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
|
2016
|
+
end
|
|
2017
|
+
|
|
2018
|
+
##
|
|
2019
|
+
# Determines whether the LiveStreamService service is supported by the current client.
|
|
2020
|
+
# If true, you can retrieve a client object by calling {Google::Ads::AdManager.live_stream_service}.
|
|
2021
|
+
# If false, that method will raise an exception. This could happen if the given
|
|
2022
|
+
# API version does not exist or does not support the LiveStreamService service,
|
|
2023
|
+
# or if the versioned client gem needs an update to support the LiveStreamService service.
|
|
2024
|
+
#
|
|
2025
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
2026
|
+
# Defaults to `:v1`.
|
|
2027
|
+
# @return [boolean] Whether the service is available.
|
|
2028
|
+
#
|
|
2029
|
+
def self.live_stream_service_available? version: :v1
|
|
2030
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
2031
|
+
package_name = Google::Ads::AdManager
|
|
2032
|
+
.constants
|
|
2033
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
2034
|
+
.first
|
|
2035
|
+
return false unless package_name
|
|
2036
|
+
service_module = Google::Ads::AdManager.const_get package_name
|
|
2037
|
+
return false unless service_module.const_defined? :LiveStreamService
|
|
2038
|
+
service_module = service_module.const_get :LiveStreamService
|
|
2039
|
+
return false unless service_module.const_defined? :Rest
|
|
2040
|
+
service_module = service_module.const_get :Rest
|
|
2041
|
+
service_module.const_defined? :Client
|
|
2042
|
+
rescue ::LoadError
|
|
2043
|
+
false
|
|
2044
|
+
end
|
|
2045
|
+
|
|
1731
2046
|
##
|
|
1732
2047
|
# Create a new client object for McmEarningsService.
|
|
1733
2048
|
#
|
|
@@ -2736,6 +3051,195 @@ module Google
|
|
|
2736
3051
|
false
|
|
2737
3052
|
end
|
|
2738
3053
|
|
|
3054
|
+
##
|
|
3055
|
+
# Create a new client object for SlateService.
|
|
3056
|
+
#
|
|
3057
|
+
# By default, this returns an instance of
|
|
3058
|
+
# [Google::Ads::AdManager::V1::SlateService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/SlateService/Rest/Client)
|
|
3059
|
+
# for a REST client for version V1 of the API.
|
|
3060
|
+
# However, you can specify a different API version by passing it in the
|
|
3061
|
+
# `version` parameter. If the SlateService service is
|
|
3062
|
+
# supported by that API version, and the corresponding gem is available, the
|
|
3063
|
+
# appropriate versioned client will be returned.
|
|
3064
|
+
#
|
|
3065
|
+
# Raises an exception if the currently installed versioned client gem for the
|
|
3066
|
+
# given API version does not support the SlateService service.
|
|
3067
|
+
# You can determine whether the method will succeed by calling
|
|
3068
|
+
# {Google::Ads::AdManager.slate_service_available?}.
|
|
3069
|
+
#
|
|
3070
|
+
# ## About SlateService
|
|
3071
|
+
#
|
|
3072
|
+
# Provides methods for handling `Slate` objects.
|
|
3073
|
+
#
|
|
3074
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
3075
|
+
# Defaults to `:v1`.
|
|
3076
|
+
# @return [::Object] A client object for the specified version.
|
|
3077
|
+
#
|
|
3078
|
+
def self.slate_service version: :v1, &block
|
|
3079
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
3080
|
+
|
|
3081
|
+
package_name = Google::Ads::AdManager
|
|
3082
|
+
.constants
|
|
3083
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
3084
|
+
.first
|
|
3085
|
+
service_module = Google::Ads::AdManager.const_get(package_name).const_get(:SlateService)
|
|
3086
|
+
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
|
3087
|
+
end
|
|
3088
|
+
|
|
3089
|
+
##
|
|
3090
|
+
# Determines whether the SlateService service is supported by the current client.
|
|
3091
|
+
# If true, you can retrieve a client object by calling {Google::Ads::AdManager.slate_service}.
|
|
3092
|
+
# If false, that method will raise an exception. This could happen if the given
|
|
3093
|
+
# API version does not exist or does not support the SlateService service,
|
|
3094
|
+
# or if the versioned client gem needs an update to support the SlateService service.
|
|
3095
|
+
#
|
|
3096
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
3097
|
+
# Defaults to `:v1`.
|
|
3098
|
+
# @return [boolean] Whether the service is available.
|
|
3099
|
+
#
|
|
3100
|
+
def self.slate_service_available? version: :v1
|
|
3101
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
3102
|
+
package_name = Google::Ads::AdManager
|
|
3103
|
+
.constants
|
|
3104
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
3105
|
+
.first
|
|
3106
|
+
return false unless package_name
|
|
3107
|
+
service_module = Google::Ads::AdManager.const_get package_name
|
|
3108
|
+
return false unless service_module.const_defined? :SlateService
|
|
3109
|
+
service_module = service_module.const_get :SlateService
|
|
3110
|
+
return false unless service_module.const_defined? :Rest
|
|
3111
|
+
service_module = service_module.const_get :Rest
|
|
3112
|
+
service_module.const_defined? :Client
|
|
3113
|
+
rescue ::LoadError
|
|
3114
|
+
false
|
|
3115
|
+
end
|
|
3116
|
+
|
|
3117
|
+
##
|
|
3118
|
+
# Create a new client object for SuggestedAdUnitService.
|
|
3119
|
+
#
|
|
3120
|
+
# By default, this returns an instance of
|
|
3121
|
+
# [Google::Ads::AdManager::V1::SuggestedAdUnitService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/SuggestedAdUnitService/Rest/Client)
|
|
3122
|
+
# for a REST client for version V1 of the API.
|
|
3123
|
+
# However, you can specify a different API version by passing it in the
|
|
3124
|
+
# `version` parameter. If the SuggestedAdUnitService service is
|
|
3125
|
+
# supported by that API version, and the corresponding gem is available, the
|
|
3126
|
+
# appropriate versioned client will be returned.
|
|
3127
|
+
#
|
|
3128
|
+
# Raises an exception if the currently installed versioned client gem for the
|
|
3129
|
+
# given API version does not support the SuggestedAdUnitService service.
|
|
3130
|
+
# You can determine whether the method will succeed by calling
|
|
3131
|
+
# {Google::Ads::AdManager.suggested_ad_unit_service_available?}.
|
|
3132
|
+
#
|
|
3133
|
+
# ## About SuggestedAdUnitService
|
|
3134
|
+
#
|
|
3135
|
+
# Provides methods for handling `SuggestedAdUnit` objects.
|
|
3136
|
+
#
|
|
3137
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
3138
|
+
# Defaults to `:v1`.
|
|
3139
|
+
# @return [::Object] A client object for the specified version.
|
|
3140
|
+
#
|
|
3141
|
+
def self.suggested_ad_unit_service version: :v1, &block
|
|
3142
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
3143
|
+
|
|
3144
|
+
package_name = Google::Ads::AdManager
|
|
3145
|
+
.constants
|
|
3146
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
3147
|
+
.first
|
|
3148
|
+
service_module = Google::Ads::AdManager.const_get(package_name).const_get(:SuggestedAdUnitService)
|
|
3149
|
+
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
|
3150
|
+
end
|
|
3151
|
+
|
|
3152
|
+
##
|
|
3153
|
+
# Determines whether the SuggestedAdUnitService service is supported by the current client.
|
|
3154
|
+
# If true, you can retrieve a client object by calling {Google::Ads::AdManager.suggested_ad_unit_service}.
|
|
3155
|
+
# If false, that method will raise an exception. This could happen if the given
|
|
3156
|
+
# API version does not exist or does not support the SuggestedAdUnitService service,
|
|
3157
|
+
# or if the versioned client gem needs an update to support the SuggestedAdUnitService service.
|
|
3158
|
+
#
|
|
3159
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
3160
|
+
# Defaults to `:v1`.
|
|
3161
|
+
# @return [boolean] Whether the service is available.
|
|
3162
|
+
#
|
|
3163
|
+
def self.suggested_ad_unit_service_available? version: :v1
|
|
3164
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
3165
|
+
package_name = Google::Ads::AdManager
|
|
3166
|
+
.constants
|
|
3167
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
3168
|
+
.first
|
|
3169
|
+
return false unless package_name
|
|
3170
|
+
service_module = Google::Ads::AdManager.const_get package_name
|
|
3171
|
+
return false unless service_module.const_defined? :SuggestedAdUnitService
|
|
3172
|
+
service_module = service_module.const_get :SuggestedAdUnitService
|
|
3173
|
+
return false unless service_module.const_defined? :Rest
|
|
3174
|
+
service_module = service_module.const_get :Rest
|
|
3175
|
+
service_module.const_defined? :Client
|
|
3176
|
+
rescue ::LoadError
|
|
3177
|
+
false
|
|
3178
|
+
end
|
|
3179
|
+
|
|
3180
|
+
##
|
|
3181
|
+
# Create a new client object for TargetingPresetService.
|
|
3182
|
+
#
|
|
3183
|
+
# By default, this returns an instance of
|
|
3184
|
+
# [Google::Ads::AdManager::V1::TargetingPresetService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/TargetingPresetService/Rest/Client)
|
|
3185
|
+
# for a REST client for version V1 of the API.
|
|
3186
|
+
# However, you can specify a different API version by passing it in the
|
|
3187
|
+
# `version` parameter. If the TargetingPresetService service is
|
|
3188
|
+
# supported by that API version, and the corresponding gem is available, the
|
|
3189
|
+
# appropriate versioned client will be returned.
|
|
3190
|
+
#
|
|
3191
|
+
# Raises an exception if the currently installed versioned client gem for the
|
|
3192
|
+
# given API version does not support the TargetingPresetService service.
|
|
3193
|
+
# You can determine whether the method will succeed by calling
|
|
3194
|
+
# {Google::Ads::AdManager.targeting_preset_service_available?}.
|
|
3195
|
+
#
|
|
3196
|
+
# ## About TargetingPresetService
|
|
3197
|
+
#
|
|
3198
|
+
# Provides methods for handling `TargetingPreset` objects.
|
|
3199
|
+
#
|
|
3200
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
3201
|
+
# Defaults to `:v1`.
|
|
3202
|
+
# @return [::Object] A client object for the specified version.
|
|
3203
|
+
#
|
|
3204
|
+
def self.targeting_preset_service version: :v1, &block
|
|
3205
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
3206
|
+
|
|
3207
|
+
package_name = Google::Ads::AdManager
|
|
3208
|
+
.constants
|
|
3209
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
3210
|
+
.first
|
|
3211
|
+
service_module = Google::Ads::AdManager.const_get(package_name).const_get(:TargetingPresetService)
|
|
3212
|
+
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
|
3213
|
+
end
|
|
3214
|
+
|
|
3215
|
+
##
|
|
3216
|
+
# Determines whether the TargetingPresetService service is supported by the current client.
|
|
3217
|
+
# If true, you can retrieve a client object by calling {Google::Ads::AdManager.targeting_preset_service}.
|
|
3218
|
+
# If false, that method will raise an exception. This could happen if the given
|
|
3219
|
+
# API version does not exist or does not support the TargetingPresetService service,
|
|
3220
|
+
# or if the versioned client gem needs an update to support the TargetingPresetService service.
|
|
3221
|
+
#
|
|
3222
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
3223
|
+
# Defaults to `:v1`.
|
|
3224
|
+
# @return [boolean] Whether the service is available.
|
|
3225
|
+
#
|
|
3226
|
+
def self.targeting_preset_service_available? version: :v1
|
|
3227
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
3228
|
+
package_name = Google::Ads::AdManager
|
|
3229
|
+
.constants
|
|
3230
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
3231
|
+
.first
|
|
3232
|
+
return false unless package_name
|
|
3233
|
+
service_module = Google::Ads::AdManager.const_get package_name
|
|
3234
|
+
return false unless service_module.const_defined? :TargetingPresetService
|
|
3235
|
+
service_module = service_module.const_get :TargetingPresetService
|
|
3236
|
+
return false unless service_module.const_defined? :Rest
|
|
3237
|
+
service_module = service_module.const_get :Rest
|
|
3238
|
+
service_module.const_defined? :Client
|
|
3239
|
+
rescue ::LoadError
|
|
3240
|
+
false
|
|
3241
|
+
end
|
|
3242
|
+
|
|
2739
3243
|
##
|
|
2740
3244
|
# Create a new client object for TaxonomyCategoryService.
|
|
2741
3245
|
#
|
|
@@ -2862,6 +3366,70 @@ module Google
|
|
|
2862
3366
|
false
|
|
2863
3367
|
end
|
|
2864
3368
|
|
|
3369
|
+
##
|
|
3370
|
+
# Create a new client object for ThirdPartyCompanyService.
|
|
3371
|
+
#
|
|
3372
|
+
# By default, this returns an instance of
|
|
3373
|
+
# [Google::Ads::AdManager::V1::ThirdPartyCompanyService::Rest::Client](https://rubydoc.info/gems/google-ads-ad_manager-v1/Google/Ads/AdManager/V1/ThirdPartyCompanyService/Rest/Client)
|
|
3374
|
+
# for a REST client for version V1 of the API.
|
|
3375
|
+
# However, you can specify a different API version by passing it in the
|
|
3376
|
+
# `version` parameter. If the ThirdPartyCompanyService service is
|
|
3377
|
+
# supported by that API version, and the corresponding gem is available, the
|
|
3378
|
+
# appropriate versioned client will be returned.
|
|
3379
|
+
#
|
|
3380
|
+
# Raises an exception if the currently installed versioned client gem for the
|
|
3381
|
+
# given API version does not support the ThirdPartyCompanyService service.
|
|
3382
|
+
# You can determine whether the method will succeed by calling
|
|
3383
|
+
# {Google::Ads::AdManager.third_party_company_service_available?}.
|
|
3384
|
+
#
|
|
3385
|
+
# ## About ThirdPartyCompanyService
|
|
3386
|
+
#
|
|
3387
|
+
# Service to retrieve and list recognized third-party companies in Google Ad
|
|
3388
|
+
# Manager.
|
|
3389
|
+
#
|
|
3390
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
3391
|
+
# Defaults to `:v1`.
|
|
3392
|
+
# @return [::Object] A client object for the specified version.
|
|
3393
|
+
#
|
|
3394
|
+
def self.third_party_company_service version: :v1, &block
|
|
3395
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
3396
|
+
|
|
3397
|
+
package_name = Google::Ads::AdManager
|
|
3398
|
+
.constants
|
|
3399
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
3400
|
+
.first
|
|
3401
|
+
service_module = Google::Ads::AdManager.const_get(package_name).const_get(:ThirdPartyCompanyService)
|
|
3402
|
+
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
|
3403
|
+
end
|
|
3404
|
+
|
|
3405
|
+
##
|
|
3406
|
+
# Determines whether the ThirdPartyCompanyService service is supported by the current client.
|
|
3407
|
+
# If true, you can retrieve a client object by calling {Google::Ads::AdManager.third_party_company_service}.
|
|
3408
|
+
# If false, that method will raise an exception. This could happen if the given
|
|
3409
|
+
# API version does not exist or does not support the ThirdPartyCompanyService service,
|
|
3410
|
+
# or if the versioned client gem needs an update to support the ThirdPartyCompanyService service.
|
|
3411
|
+
#
|
|
3412
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
3413
|
+
# Defaults to `:v1`.
|
|
3414
|
+
# @return [boolean] Whether the service is available.
|
|
3415
|
+
#
|
|
3416
|
+
def self.third_party_company_service_available? version: :v1
|
|
3417
|
+
require "google/ads/ad_manager/#{version.to_s.downcase}"
|
|
3418
|
+
package_name = Google::Ads::AdManager
|
|
3419
|
+
.constants
|
|
3420
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
3421
|
+
.first
|
|
3422
|
+
return false unless package_name
|
|
3423
|
+
service_module = Google::Ads::AdManager.const_get package_name
|
|
3424
|
+
return false unless service_module.const_defined? :ThirdPartyCompanyService
|
|
3425
|
+
service_module = service_module.const_get :ThirdPartyCompanyService
|
|
3426
|
+
return false unless service_module.const_defined? :Rest
|
|
3427
|
+
service_module = service_module.const_get :Rest
|
|
3428
|
+
service_module.const_defined? :Client
|
|
3429
|
+
rescue ::LoadError
|
|
3430
|
+
false
|
|
3431
|
+
end
|
|
3432
|
+
|
|
2865
3433
|
##
|
|
2866
3434
|
# Create a new client object for UserService.
|
|
2867
3435
|
#
|