google-apis-admob_v1 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9bd42024b703dff66cd5686341d308b0cf6b4d4eed8e26cf0d5c9db6f493ead0
4
- data.tar.gz: 9e63123cfeaf2cff7568c5795372c28f9e4c31ece9df63e309326a74d262d325
3
+ metadata.gz: 988bb71d286866a4c8ed8272dc95ae69953c4ce31e86f3a888d901c8af5b3cb2
4
+ data.tar.gz: dbdda7b776d023edb1791c02d1b614fe85988e6eccbd249002d07175a8375b02
5
5
  SHA512:
6
- metadata.gz: 93da3f3bb709cae80f982b66b7eca0f4ee804521efbaca5b6198603240832f1c4df215bd5a1c08f67684998fe11894d4679e8d65e08bc37fb5b0cd31e16eaff3
7
- data.tar.gz: a680f5531c95f0f928876f26c88c855bc5f6928f52d30e63eca067dee2936b2bd4277d597b2b0c9335fb22613fefc9f26e6ae94e94395c367bde371bdd7fa9f2
6
+ metadata.gz: d0c4a631acf6606b1a313abb987c2138f8a3525d0cfcffdcb6cf055da6504f1a357046b8895aa481e769b103af49d8a570021004228b6497aceb53608cca03e1
7
+ data.tar.gz: 10ae86b10672da95dbd87ff6a96f8712dfcc08f304d6decb1f47483a8ad824eb6147acbf2d78525d606d81485093698113ba6f77d5d75bc39d5a7c2d645b00d2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-admob_v1
2
2
 
3
+ ### v0.3.0 (2021-04-16)
4
+
5
+ * Regenerated from discovery document revision 20210414
6
+ * Regenerated using generator version 0.2.0
7
+
3
8
  ### v0.2.0 (2021-03-04)
4
9
 
5
10
  * Regenerated from discovery document revision 20210227
@@ -22,6 +22,168 @@ module Google
22
22
  module Apis
23
23
  module AdmobV1
24
24
 
25
+ # Describes an AdMob ad unit.
26
+ class AdUnit
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # AdFormat of the ad unit. Possible values are as follows: "BANNER" - Banner ad
30
+ # format. "BANNER_INTERSTITIAL" - Legacy format that can be used as either
31
+ # banner or interstitial. This format can no longer be created but can be
32
+ # targeted by mediation groups. "INTERSTITIAL" - A full screen ad. Supported ad
33
+ # types are "RICH_MEDIA" and "VIDEO". "NATIVE" - Native ad format. "REWARDED" -
34
+ # An ad that, once viewed, gets a callback verifying the view so that a reward
35
+ # can be given to the user. Supported ad types are "RICH_MEDIA" (interactive)
36
+ # and video where video can not be excluded.
37
+ # Corresponds to the JSON property `adFormat`
38
+ # @return [String]
39
+ attr_accessor :ad_format
40
+
41
+ # Ad media type supported by this ad unit. Possible values as follows: "
42
+ # RICH_MEDIA" - Text, image, and other non-video media. "VIDEO" - Video media.
43
+ # Corresponds to the JSON property `adTypes`
44
+ # @return [Array<String>]
45
+ attr_accessor :ad_types
46
+
47
+ # The externally visible ID of the ad unit which can be used to integrate with
48
+ # the AdMob SDK. This is a read only property. Example: ca-app-pub-
49
+ # 9876543210987654/0123456789
50
+ # Corresponds to the JSON property `adUnitId`
51
+ # @return [String]
52
+ attr_accessor :ad_unit_id
53
+
54
+ # The externally visible ID of the app this ad unit is associated with. Example:
55
+ # ca-app-pub-9876543210987654~0123456789
56
+ # Corresponds to the JSON property `appId`
57
+ # @return [String]
58
+ attr_accessor :app_id
59
+
60
+ # The display name of the ad unit as shown in the AdMob UI, which is provided by
61
+ # the user. The maximum length allowed is 80 characters.
62
+ # Corresponds to the JSON property `displayName`
63
+ # @return [String]
64
+ attr_accessor :display_name
65
+
66
+ # Resource name for this ad unit. Format is accounts/`publisher_id`/adUnits/`
67
+ # ad_unit_id_fragment` Example: accounts/pub-9876543210987654/adUnits/0123456789
68
+ # Corresponds to the JSON property `name`
69
+ # @return [String]
70
+ attr_accessor :name
71
+
72
+ def initialize(**args)
73
+ update!(**args)
74
+ end
75
+
76
+ # Update properties of this object
77
+ def update!(**args)
78
+ @ad_format = args[:ad_format] if args.key?(:ad_format)
79
+ @ad_types = args[:ad_types] if args.key?(:ad_types)
80
+ @ad_unit_id = args[:ad_unit_id] if args.key?(:ad_unit_id)
81
+ @app_id = args[:app_id] if args.key?(:app_id)
82
+ @display_name = args[:display_name] if args.key?(:display_name)
83
+ @name = args[:name] if args.key?(:name)
84
+ end
85
+ end
86
+
87
+ # Describes an AdMob app for a specific platform (For example: Android or iOS).
88
+ class App
89
+ include Google::Apis::Core::Hashable
90
+
91
+ # The externally visible ID of the app which can be used to integrate with the
92
+ # AdMob SDK. This is a read only property. Example: ca-app-pub-9876543210987654~
93
+ # 0123456789
94
+ # Corresponds to the JSON property `appId`
95
+ # @return [String]
96
+ attr_accessor :app_id
97
+
98
+ # Information from the app store if the app is linked to an app store.
99
+ # Corresponds to the JSON property `linkedAppInfo`
100
+ # @return [Google::Apis::AdmobV1::AppLinkedAppInfo]
101
+ attr_accessor :linked_app_info
102
+
103
+ # Information provided for manual apps which are not linked to an application
104
+ # store (Example: Google Play, App Store).
105
+ # Corresponds to the JSON property `manualAppInfo`
106
+ # @return [Google::Apis::AdmobV1::AppManualAppInfo]
107
+ attr_accessor :manual_app_info
108
+
109
+ # Resource name for this app. Format is accounts/`publisher_id`/apps/`
110
+ # app_id_fragment` Example: accounts/pub-9876543210987654/apps/0123456789
111
+ # Corresponds to the JSON property `name`
112
+ # @return [String]
113
+ attr_accessor :name
114
+
115
+ # Describes the platform of the app. Limited to "IOS" and "ANDROID".
116
+ # Corresponds to the JSON property `platform`
117
+ # @return [String]
118
+ attr_accessor :platform
119
+
120
+ def initialize(**args)
121
+ update!(**args)
122
+ end
123
+
124
+ # Update properties of this object
125
+ def update!(**args)
126
+ @app_id = args[:app_id] if args.key?(:app_id)
127
+ @linked_app_info = args[:linked_app_info] if args.key?(:linked_app_info)
128
+ @manual_app_info = args[:manual_app_info] if args.key?(:manual_app_info)
129
+ @name = args[:name] if args.key?(:name)
130
+ @platform = args[:platform] if args.key?(:platform)
131
+ end
132
+ end
133
+
134
+ # Information from the app store if the app is linked to an app store.
135
+ class AppLinkedAppInfo
136
+ include Google::Apis::Core::Hashable
137
+
138
+ # The app store ID of the app; present if and only if the app is linked to an
139
+ # app store. If the app is added to the Google Play store, it will be the
140
+ # application ID of the app. For example: "com.example.myapp". See https://
141
+ # developer.android.com/studio/build/application-id. If the app is added to the
142
+ # Apple App Store, it will be app store ID. For example "105169111". Note that
143
+ # setting the app store id is considered an irreversible action. Once an app is
144
+ # linked, it cannot be unlinked.
145
+ # Corresponds to the JSON property `appStoreId`
146
+ # @return [String]
147
+ attr_accessor :app_store_id
148
+
149
+ # Output only. Display name of the app as it appears in the app store. This is
150
+ # an output-only field, and may be empty if the app cannot be found in the store.
151
+ # Corresponds to the JSON property `displayName`
152
+ # @return [String]
153
+ attr_accessor :display_name
154
+
155
+ def initialize(**args)
156
+ update!(**args)
157
+ end
158
+
159
+ # Update properties of this object
160
+ def update!(**args)
161
+ @app_store_id = args[:app_store_id] if args.key?(:app_store_id)
162
+ @display_name = args[:display_name] if args.key?(:display_name)
163
+ end
164
+ end
165
+
166
+ # Information provided for manual apps which are not linked to an application
167
+ # store (Example: Google Play, App Store).
168
+ class AppManualAppInfo
169
+ include Google::Apis::Core::Hashable
170
+
171
+ # The display name of the app as shown in the AdMob UI, which is provided by the
172
+ # user. The maximum length allowed is 80 characters.
173
+ # Corresponds to the JSON property `displayName`
174
+ # @return [String]
175
+ attr_accessor :display_name
176
+
177
+ def initialize(**args)
178
+ update!(**args)
179
+ end
180
+
181
+ # Update properties of this object
182
+ def update!(**args)
183
+ @display_name = args[:display_name] if args.key?(:display_name)
184
+ end
185
+ end
186
+
25
187
  # Represents a whole or partial calendar date, such as a birthday. The time of
26
188
  # day and time zone are either specified elsewhere or are insignificant. The
27
189
  # date is relative to the Gregorian Calendar. This can represent one of the
@@ -248,6 +410,58 @@ module Google
248
410
  end
249
411
  end
250
412
 
413
+ # Response for the ad units list request.
414
+ class ListAdUnitsResponse
415
+ include Google::Apis::Core::Hashable
416
+
417
+ # The resulting ad units for the requested account.
418
+ # Corresponds to the JSON property `adUnits`
419
+ # @return [Array<Google::Apis::AdmobV1::AdUnit>]
420
+ attr_accessor :ad_units
421
+
422
+ # If not empty, indicates that there may be more ad units for the request; this
423
+ # value should be passed in a new `ListAdUnitsRequest`.
424
+ # Corresponds to the JSON property `nextPageToken`
425
+ # @return [String]
426
+ attr_accessor :next_page_token
427
+
428
+ def initialize(**args)
429
+ update!(**args)
430
+ end
431
+
432
+ # Update properties of this object
433
+ def update!(**args)
434
+ @ad_units = args[:ad_units] if args.key?(:ad_units)
435
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
436
+ end
437
+ end
438
+
439
+ # Response for the apps list request.
440
+ class ListAppsResponse
441
+ include Google::Apis::Core::Hashable
442
+
443
+ # The resulting apps for the requested account.
444
+ # Corresponds to the JSON property `apps`
445
+ # @return [Array<Google::Apis::AdmobV1::App>]
446
+ attr_accessor :apps
447
+
448
+ # If not empty, indicates that there may be more apps for the request; this
449
+ # value should be passed in a new `ListAppsRequest`.
450
+ # Corresponds to the JSON property `nextPageToken`
451
+ # @return [String]
452
+ attr_accessor :next_page_token
453
+
454
+ def initialize(**args)
455
+ update!(**args)
456
+ end
457
+
458
+ # Update properties of this object
459
+ def update!(**args)
460
+ @apps = args[:apps] if args.key?(:apps)
461
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
462
+ end
463
+ end
464
+
251
465
  # Response for the publisher account list request.
252
466
  class ListPublisherAccountsResponse
253
467
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module AdmobV1
18
18
  # Version of the google-apis-admob_v1 gem
19
- GEM_VERSION = "0.2.0"
19
+ GEM_VERSION = "0.3.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.2"
22
+ GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210227"
25
+ REVISION = "20210414"
26
26
  end
27
27
  end
28
28
  end
@@ -22,6 +22,30 @@ module Google
22
22
  module Apis
23
23
  module AdmobV1
24
24
 
25
+ class AdUnit
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class App
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class AppLinkedAppInfo
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class AppManualAppInfo
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
25
49
  class Date
26
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
51
 
@@ -58,6 +82,18 @@ module Google
58
82
  include Google::Apis::Core::JsonObjectSupport
59
83
  end
60
84
 
85
+ class ListAdUnitsResponse
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class ListAppsResponse
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
61
97
  class ListPublisherAccountsResponse
62
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
99
 
@@ -154,6 +190,46 @@ module Google
154
190
  include Google::Apis::Core::JsonObjectSupport
155
191
  end
156
192
 
193
+ class AdUnit
194
+ # @private
195
+ class Representation < Google::Apis::Core::JsonRepresentation
196
+ property :ad_format, as: 'adFormat'
197
+ collection :ad_types, as: 'adTypes'
198
+ property :ad_unit_id, as: 'adUnitId'
199
+ property :app_id, as: 'appId'
200
+ property :display_name, as: 'displayName'
201
+ property :name, as: 'name'
202
+ end
203
+ end
204
+
205
+ class App
206
+ # @private
207
+ class Representation < Google::Apis::Core::JsonRepresentation
208
+ property :app_id, as: 'appId'
209
+ property :linked_app_info, as: 'linkedAppInfo', class: Google::Apis::AdmobV1::AppLinkedAppInfo, decorator: Google::Apis::AdmobV1::AppLinkedAppInfo::Representation
210
+
211
+ property :manual_app_info, as: 'manualAppInfo', class: Google::Apis::AdmobV1::AppManualAppInfo, decorator: Google::Apis::AdmobV1::AppManualAppInfo::Representation
212
+
213
+ property :name, as: 'name'
214
+ property :platform, as: 'platform'
215
+ end
216
+ end
217
+
218
+ class AppLinkedAppInfo
219
+ # @private
220
+ class Representation < Google::Apis::Core::JsonRepresentation
221
+ property :app_store_id, as: 'appStoreId'
222
+ property :display_name, as: 'displayName'
223
+ end
224
+ end
225
+
226
+ class AppManualAppInfo
227
+ # @private
228
+ class Representation < Google::Apis::Core::JsonRepresentation
229
+ property :display_name, as: 'displayName'
230
+ end
231
+ end
232
+
157
233
  class Date
158
234
  # @private
159
235
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -213,6 +289,24 @@ module Google
213
289
  end
214
290
  end
215
291
 
292
+ class ListAdUnitsResponse
293
+ # @private
294
+ class Representation < Google::Apis::Core::JsonRepresentation
295
+ collection :ad_units, as: 'adUnits', class: Google::Apis::AdmobV1::AdUnit, decorator: Google::Apis::AdmobV1::AdUnit::Representation
296
+
297
+ property :next_page_token, as: 'nextPageToken'
298
+ end
299
+ end
300
+
301
+ class ListAppsResponse
302
+ # @private
303
+ class Representation < Google::Apis::Core::JsonRepresentation
304
+ collection :apps, as: 'apps', class: Google::Apis::AdmobV1::App, decorator: Google::Apis::AdmobV1::App::Representation
305
+
306
+ property :next_page_token, as: 'nextPageToken'
307
+ end
308
+ end
309
+
216
310
  class ListPublisherAccountsResponse
217
311
  # @private
218
312
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -118,6 +118,88 @@ module Google
118
118
  execute_or_queue_command(command, &block)
119
119
  end
120
120
 
121
+ # List the ad units under the specified AdMob account.
122
+ # @param [String] parent
123
+ # Required. Resource name of the account to list ad units for. Example: accounts/
124
+ # pub-9876543210987654
125
+ # @param [Fixnum] page_size
126
+ # The maximum number of ad units to return. If unspecified or 0, at most 1000 ad
127
+ # units will be returned. The maximum value is 10,000; values above 10,000 will
128
+ # be coerced to 10,000.
129
+ # @param [String] page_token
130
+ # The value returned by the last `ListAdUnitsResponse`; indicates that this is a
131
+ # continuation of a prior `ListAdUnits` call, and that the system should return
132
+ # the next page of data.
133
+ # @param [String] fields
134
+ # Selector specifying which fields to include in a partial response.
135
+ # @param [String] quota_user
136
+ # Available to use for quota purposes for server-side applications. Can be any
137
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
138
+ # @param [Google::Apis::RequestOptions] options
139
+ # Request-specific options
140
+ #
141
+ # @yield [result, err] Result & error if block supplied
142
+ # @yieldparam result [Google::Apis::AdmobV1::ListAdUnitsResponse] parsed result object
143
+ # @yieldparam err [StandardError] error object if request failed
144
+ #
145
+ # @return [Google::Apis::AdmobV1::ListAdUnitsResponse]
146
+ #
147
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
148
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
149
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
150
+ def list_account_ad_units(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
151
+ command = make_simple_command(:get, 'v1/{+parent}/adUnits', options)
152
+ command.response_representation = Google::Apis::AdmobV1::ListAdUnitsResponse::Representation
153
+ command.response_class = Google::Apis::AdmobV1::ListAdUnitsResponse
154
+ command.params['parent'] = parent unless parent.nil?
155
+ command.query['pageSize'] = page_size unless page_size.nil?
156
+ command.query['pageToken'] = page_token unless page_token.nil?
157
+ command.query['fields'] = fields unless fields.nil?
158
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
159
+ execute_or_queue_command(command, &block)
160
+ end
161
+
162
+ # List the apps under the specified AdMob account.
163
+ # @param [String] parent
164
+ # Required. Resource name of the account to list apps for. Example: accounts/pub-
165
+ # 9876543210987654
166
+ # @param [Fixnum] page_size
167
+ # The maximum number of apps to return. If unspecified or 0, at most 1000 apps
168
+ # will be returned. The maximum value is 10,000; values above 10,000 will be
169
+ # coerced to 10,000.
170
+ # @param [String] page_token
171
+ # The value returned by the last `ListAppsResponse`; indicates that this is a
172
+ # continuation of a prior `ListApps` call, and that the system should return the
173
+ # next page of data.
174
+ # @param [String] fields
175
+ # Selector specifying which fields to include in a partial response.
176
+ # @param [String] quota_user
177
+ # Available to use for quota purposes for server-side applications. Can be any
178
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
179
+ # @param [Google::Apis::RequestOptions] options
180
+ # Request-specific options
181
+ #
182
+ # @yield [result, err] Result & error if block supplied
183
+ # @yieldparam result [Google::Apis::AdmobV1::ListAppsResponse] parsed result object
184
+ # @yieldparam err [StandardError] error object if request failed
185
+ #
186
+ # @return [Google::Apis::AdmobV1::ListAppsResponse]
187
+ #
188
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
189
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
190
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
191
+ def list_account_apps(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
192
+ command = make_simple_command(:get, 'v1/{+parent}/apps', options)
193
+ command.response_representation = Google::Apis::AdmobV1::ListAppsResponse::Representation
194
+ command.response_class = Google::Apis::AdmobV1::ListAppsResponse
195
+ command.params['parent'] = parent unless parent.nil?
196
+ command.query['pageSize'] = page_size unless page_size.nil?
197
+ command.query['pageToken'] = page_token unless page_token.nil?
198
+ command.query['fields'] = fields unless fields.nil?
199
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
200
+ execute_or_queue_command(command, &block)
201
+ end
202
+
121
203
  # Generates an AdMob Mediation report based on the provided report specification.
122
204
  # Returns result of a server-side streaming RPC. The result is returned in a
123
205
  # sequence of responses.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-admob_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-08 00:00:00.000000000 Z
11
+ date: 2021-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-admob_v1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-admob_v1/v0.2.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-admob_v1/v0.3.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-admob_v1
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.2.13
72
+ rubygems_version: 3.2.17
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for AdMob API V1