google-ads-ad_manager 4.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e4d537c88374b19565c5f91d2046513b76f733594becff19879055229e0441c6
4
- data.tar.gz: b30e511b8d61c9981a81c54e13ea24361ebc0957d9d6971c73a905f1d4f74692
3
+ metadata.gz: d6ff312509b76fb066cc8d1f22d3902c85bf64fdc5999307f14fff358f63e736
4
+ data.tar.gz: e3e8f400ee3a637f017c650e539b050a29f8a9d75bd83364e799762cf84e9f11
5
5
  SHA512:
6
- metadata.gz: 218493ed3eb92c62d959874e7fb6bc33e82904c3251a7f6a1acf0c58f2bcbbe9f2f3f3224d6c68bc721f96c30382f2403be19858d785fb91afed911721cf8f90
7
- data.tar.gz: 2dcc8781c30c63ef1fd3316ba5b8ac401efe5709fd06c21537dbbd3295e1981a3df5401d1da07f9085504d1bb8cb2507f3bfaabcc1f6051eff45c21a22213a27
6
+ metadata.gz: 995e90e4a20bb353333cf9ae3d849eb9a4cb7a989549649006bc8ff501b8a370c5c8d4619c58a6b5239334f39c5cf42e4e616cfceba022809a278a971ec0a519
7
+ data.tar.gz: 5d511e8d1a5a861e02bb27db368a10075b5a8a1a31540ff13c355abb745384bb2ec8f209574ff25c482aca644e6c35c717319d49cafc0edf5df852e60333d239
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Ads
22
22
  module AdManager
23
- VERSION = "4.2.0"
23
+ VERSION = "5.0.0"
24
24
  end
25
25
  end
26
26
  end
@@ -1161,6 +1161,69 @@ module Google
1161
1161
  false
1162
1162
  end
1163
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
+
1164
1227
  ##
1165
1228
  # Create a new client object for CreativeTemplateService.
1166
1229
  #
@@ -2988,6 +3051,69 @@ module Google
2988
3051
  false
2989
3052
  end
2990
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
+
2991
3117
  ##
2992
3118
  # Create a new client object for SuggestedAdUnitService.
2993
3119
  #
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: 4.2.0
4
+ version: 5.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC