google-apis-adsense_v2 0.13.0 → 0.16.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9182b805adaf85cd58be7774e68fc54f6d33244350026b11ba24c7b5f19e6b1
|
4
|
+
data.tar.gz: a8fda02437ea3cb186de610118c9f1da1c4fced4b153ad7075ac04d96a3ffc7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4780869fdd188e8f825de758219f8a4861b7ffd6957a4ef3a5314b98123ce691aebff7d5a6813ccfb35949f473065e2d49fcce2d4c4782a020d2ff398eb7761
|
7
|
+
data.tar.gz: 4fa3742f57c0b9f211eb6bcc6ce8fdbd9dc55e2dabdf56d6d830d833dfc002398de4f7febfa4721d00417c511d4043adbf978e07311bc41e975ce44ce8e5fd1f
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Release history for google-apis-adsense_v2
|
2
2
|
|
3
|
+
### v0.16.0 (2022-05-03)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220503
|
6
|
+
|
7
|
+
### v0.15.0 (2022-04-19)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220419
|
10
|
+
|
11
|
+
### v0.14.0 (2022-04-01)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20220330
|
14
|
+
|
3
15
|
### v0.13.0 (2022-03-22)
|
4
16
|
|
5
17
|
* Regenerated from discovery document revision 20220319
|
@@ -54,6 +54,11 @@ module Google
|
|
54
54
|
attr_accessor :premium
|
55
55
|
alias_method :premium?, :premium
|
56
56
|
|
57
|
+
# Output only. State of the account.
|
58
|
+
# Corresponds to the JSON property `state`
|
59
|
+
# @return [String]
|
60
|
+
attr_accessor :state
|
61
|
+
|
57
62
|
# Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/
|
58
63
|
# time-zones).
|
59
64
|
# Corresponds to the JSON property `timeZone`
|
@@ -71,6 +76,7 @@ module Google
|
|
71
76
|
@name = args[:name] if args.key?(:name)
|
72
77
|
@pending_tasks = args[:pending_tasks] if args.key?(:pending_tasks)
|
73
78
|
@premium = args[:premium] if args.key?(:premium)
|
79
|
+
@state = args[:state] if args.key?(:state)
|
74
80
|
@time_zone = args[:time_zone] if args.key?(:time_zone)
|
75
81
|
end
|
76
82
|
end
|
@@ -85,8 +91,9 @@ module Google
|
|
85
91
|
# @return [String]
|
86
92
|
attr_accessor :name
|
87
93
|
|
88
|
-
# Output only.
|
89
|
-
# Content.
|
94
|
+
# Output only. Reporting product code of the ad client. For example, "AFC" for
|
95
|
+
# AdSense for Content. Corresponds to the `PRODUCT_CODE` dimension, and present
|
96
|
+
# only if the ad client supports reporting.
|
90
97
|
# Corresponds to the JSON property `productCode`
|
91
98
|
# @return [String]
|
92
99
|
attr_accessor :product_code
|
@@ -97,6 +104,11 @@ module Google
|
|
97
104
|
# @return [String]
|
98
105
|
attr_accessor :reporting_dimension_id
|
99
106
|
|
107
|
+
# Output only. State of the ad client.
|
108
|
+
# Corresponds to the JSON property `state`
|
109
|
+
# @return [String]
|
110
|
+
attr_accessor :state
|
111
|
+
|
100
112
|
def initialize(**args)
|
101
113
|
update!(**args)
|
102
114
|
end
|
@@ -106,6 +118,7 @@ module Google
|
|
106
118
|
@name = args[:name] if args.key?(:name)
|
107
119
|
@product_code = args[:product_code] if args.key?(:product_code)
|
108
120
|
@reporting_dimension_id = args[:reporting_dimension_id] if args.key?(:reporting_dimension_id)
|
121
|
+
@state = args[:state] if args.key?(:state)
|
109
122
|
end
|
110
123
|
end
|
111
124
|
|
@@ -158,8 +171,8 @@ module Google
|
|
158
171
|
# @return [String]
|
159
172
|
attr_accessor :display_name
|
160
173
|
|
161
|
-
#
|
162
|
-
#
|
174
|
+
# Resource name of the ad unit. Format: accounts/`account`/adclients/`adclient`/
|
175
|
+
# adunits/`adunit`
|
163
176
|
# Corresponds to the JSON property `name`
|
164
177
|
# @return [String]
|
165
178
|
attr_accessor :name
|
@@ -272,12 +285,12 @@ module Google
|
|
272
285
|
class ContentAdsSettings
|
273
286
|
include Google::Apis::Core::Hashable
|
274
287
|
|
275
|
-
# Size of the ad unit. e.g. "728x90", "1x3" (for responsive ad units).
|
288
|
+
# Required. Size of the ad unit. e.g. "728x90", "1x3" (for responsive ad units).
|
276
289
|
# Corresponds to the JSON property `size`
|
277
290
|
# @return [String]
|
278
291
|
attr_accessor :size
|
279
292
|
|
280
|
-
# Type of the ad unit.
|
293
|
+
# Required. Type of the ad unit.
|
281
294
|
# Corresponds to the JSON property `type`
|
282
295
|
# @return [String]
|
283
296
|
attr_accessor :type
|
@@ -297,7 +310,7 @@ module Google
|
|
297
310
|
class CustomChannel
|
298
311
|
include Google::Apis::Core::Hashable
|
299
312
|
|
300
|
-
# Display name of the custom channel.
|
313
|
+
# Required. Display name of the custom channel.
|
301
314
|
# Corresponds to the JSON property `displayName`
|
302
315
|
# @return [String]
|
303
316
|
attr_accessor :display_name
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module AdsenseV2
|
18
18
|
# Version of the google-apis-adsense_v2 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.16.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220503"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -216,6 +216,7 @@ module Google
|
|
216
216
|
property :name, as: 'name'
|
217
217
|
collection :pending_tasks, as: 'pendingTasks'
|
218
218
|
property :premium, as: 'premium'
|
219
|
+
property :state, as: 'state'
|
219
220
|
property :time_zone, as: 'timeZone', class: Google::Apis::AdsenseV2::TimeZone, decorator: Google::Apis::AdsenseV2::TimeZone::Representation
|
220
221
|
|
221
222
|
end
|
@@ -227,6 +228,7 @@ module Google
|
|
227
228
|
property :name, as: 'name'
|
228
229
|
property :product_code, as: 'productCode'
|
229
230
|
property :reporting_dimension_id, as: 'reportingDimensionId'
|
231
|
+
property :state, as: 'state'
|
230
232
|
end
|
231
233
|
end
|
232
234
|
|
@@ -158,6 +158,37 @@ module Google
|
|
158
158
|
execute_or_queue_command(command, &block)
|
159
159
|
end
|
160
160
|
|
161
|
+
# Gets the ad client from the given resource name.
|
162
|
+
# @param [String] name
|
163
|
+
# Required. The name of the ad client to retrieve. Format: accounts/`account`/
|
164
|
+
# adclients/`adclient`
|
165
|
+
# @param [String] fields
|
166
|
+
# Selector specifying which fields to include in a partial response.
|
167
|
+
# @param [String] quota_user
|
168
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
169
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
170
|
+
# @param [Google::Apis::RequestOptions] options
|
171
|
+
# Request-specific options
|
172
|
+
#
|
173
|
+
# @yield [result, err] Result & error if block supplied
|
174
|
+
# @yieldparam result [Google::Apis::AdsenseV2::AdClient] parsed result object
|
175
|
+
# @yieldparam err [StandardError] error object if request failed
|
176
|
+
#
|
177
|
+
# @return [Google::Apis::AdsenseV2::AdClient]
|
178
|
+
#
|
179
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
180
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
181
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
182
|
+
def get_account_adclient(name, fields: nil, quota_user: nil, options: nil, &block)
|
183
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
184
|
+
command.response_representation = Google::Apis::AdsenseV2::AdClient::Representation
|
185
|
+
command.response_class = Google::Apis::AdsenseV2::AdClient
|
186
|
+
command.params['name'] = name unless name.nil?
|
187
|
+
command.query['fields'] = fields unless fields.nil?
|
188
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
189
|
+
execute_or_queue_command(command, &block)
|
190
|
+
end
|
191
|
+
|
161
192
|
# Gets the AdSense code for a given ad client. This returns what was previously
|
162
193
|
# known as the 'auto ad code'. This is only supported for ad clients with a
|
163
194
|
# product_code of AFC. For more information, see [About the AdSense code](https:/
|
@@ -493,6 +524,37 @@ module Google
|
|
493
524
|
execute_or_queue_command(command, &block)
|
494
525
|
end
|
495
526
|
|
527
|
+
# Gets information about the selected url channel.
|
528
|
+
# @param [String] name
|
529
|
+
# Required. The name of the url channel to retrieve. Format: accounts/`account`/
|
530
|
+
# adclients/`adclient`/urlchannels/`urlchannel`
|
531
|
+
# @param [String] fields
|
532
|
+
# Selector specifying which fields to include in a partial response.
|
533
|
+
# @param [String] quota_user
|
534
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
535
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
536
|
+
# @param [Google::Apis::RequestOptions] options
|
537
|
+
# Request-specific options
|
538
|
+
#
|
539
|
+
# @yield [result, err] Result & error if block supplied
|
540
|
+
# @yieldparam result [Google::Apis::AdsenseV2::UrlChannel] parsed result object
|
541
|
+
# @yieldparam err [StandardError] error object if request failed
|
542
|
+
#
|
543
|
+
# @return [Google::Apis::AdsenseV2::UrlChannel]
|
544
|
+
#
|
545
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
546
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
547
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
548
|
+
def get_account_adclient_urlchannel(name, fields: nil, quota_user: nil, options: nil, &block)
|
549
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
550
|
+
command.response_representation = Google::Apis::AdsenseV2::UrlChannel::Representation
|
551
|
+
command.response_class = Google::Apis::AdsenseV2::UrlChannel
|
552
|
+
command.params['name'] = name unless name.nil?
|
553
|
+
command.query['fields'] = fields unless fields.nil?
|
554
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
555
|
+
execute_or_queue_command(command, &block)
|
556
|
+
end
|
557
|
+
|
496
558
|
# Lists active url channels.
|
497
559
|
# @param [String] parent
|
498
560
|
# Required. The ad client which owns the collection of url channels. Format:
|
@@ -794,6 +856,37 @@ module Google
|
|
794
856
|
execute_or_queue_command(command, &block)
|
795
857
|
end
|
796
858
|
|
859
|
+
# Gets the saved report from the given resource name.
|
860
|
+
# @param [String] name
|
861
|
+
# Required. The name of the saved report to retrieve. Format: accounts/`account`/
|
862
|
+
# reports/`report`
|
863
|
+
# @param [String] fields
|
864
|
+
# Selector specifying which fields to include in a partial response.
|
865
|
+
# @param [String] quota_user
|
866
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
867
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
868
|
+
# @param [Google::Apis::RequestOptions] options
|
869
|
+
# Request-specific options
|
870
|
+
#
|
871
|
+
# @yield [result, err] Result & error if block supplied
|
872
|
+
# @yieldparam result [Google::Apis::AdsenseV2::SavedReport] parsed result object
|
873
|
+
# @yieldparam err [StandardError] error object if request failed
|
874
|
+
#
|
875
|
+
# @return [Google::Apis::AdsenseV2::SavedReport]
|
876
|
+
#
|
877
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
878
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
879
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
880
|
+
def get_account_report_saved(name, fields: nil, quota_user: nil, options: nil, &block)
|
881
|
+
command = make_simple_command(:get, 'v2/{+name}/saved', options)
|
882
|
+
command.response_representation = Google::Apis::AdsenseV2::SavedReport::Representation
|
883
|
+
command.response_class = Google::Apis::AdsenseV2::SavedReport
|
884
|
+
command.params['name'] = name unless name.nil?
|
885
|
+
command.query['fields'] = fields unless fields.nil?
|
886
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
887
|
+
execute_or_queue_command(command, &block)
|
888
|
+
end
|
889
|
+
|
797
890
|
# Generates a saved report.
|
798
891
|
# @param [String] name
|
799
892
|
# Required. Name of the saved report. Format: accounts/`account`/reports/`report`
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-adsense_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.16.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: 2022-
|
11
|
+
date: 2022-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-adsense_v2/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-adsense_v2/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-adsense_v2/v0.16.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-adsense_v2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|