google-apis-adsense_v2 0.14.0 → 0.17.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: 7043c97180eac33f139e24c6d5b027fa7e155ec4fd07cd4869ee0910f44fd37d
4
- data.tar.gz: c21fc3b437cbed90724fdc24fe6926d0be3ea091101338a15667d4b29f3c747e
3
+ metadata.gz: 724cad02e962e207ad4a496160e0f14102d3915f692c39826912d9d8fc828864
4
+ data.tar.gz: 12628b0f69a4a052c9e70a62dfce57bbed94a2c89d063da0ebeae45ecdba60e2
5
5
  SHA512:
6
- metadata.gz: 1b7f145cd0945220bba3cb8945a76f861ea21e585f19228dda2433558b7de4fae7fec93e4aad00b648342da2ae8a01909edf8bfd65d72b01663ead84105217cd
7
- data.tar.gz: 9b406757d4de0f7da0b40fd38170aab715b1f634845cb58ea36c1c9524777318d7bec30db42e2f8f9cb60761da6f3966b15d0f15f5f1afc04da8815c4caaf268
6
+ metadata.gz: e0bd9d0e74380bbea7003bf5252596003886070f5efa12e6641ef81556781914d240af3c05322e4204fbe0c790b93fb8097c7fd5cd4a152d08e302a985640838
7
+ data.tar.gz: a2bd86eff5eb1eeee59f81a94a111f914ef50c61edb25fdf591acb72606bb04c7b747e6bf62266f1ba55e015499689681e0ff21271c43510e7a1049ab8dfb342
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-adsense_v2
2
2
 
3
+ ### v0.17.0 (2022-06-02)
4
+
5
+ * Unspecified changes
6
+
7
+ ### v0.16.0 (2022-05-03)
8
+
9
+ * Regenerated from discovery document revision 20220503
10
+
11
+ ### v0.15.0 (2022-04-19)
12
+
13
+ * Regenerated from discovery document revision 20220419
14
+
3
15
  ### v0.14.0 (2022-04-01)
4
16
 
5
17
  * Regenerated from discovery document revision 20220330
@@ -91,8 +91,9 @@ module Google
91
91
  # @return [String]
92
92
  attr_accessor :name
93
93
 
94
- # Output only. Product code of the ad client. For example, "AFC" for AdSense for
95
- # 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.
96
97
  # Corresponds to the JSON property `productCode`
97
98
  # @return [String]
98
99
  attr_accessor :product_code
@@ -170,8 +171,8 @@ module Google
170
171
  # @return [String]
171
172
  attr_accessor :display_name
172
173
 
173
- # Required. Resource name of the ad unit. Format: accounts/`account`/adclients/`
174
- # adclient`/adunits/`adunit`
174
+ # Resource name of the ad unit. Format: accounts/`account`/adclients/`adclient`/
175
+ # adunits/`adunit`
175
176
  # Corresponds to the JSON property `name`
176
177
  # @return [String]
177
178
  attr_accessor :name
@@ -284,12 +285,12 @@ module Google
284
285
  class ContentAdsSettings
285
286
  include Google::Apis::Core::Hashable
286
287
 
287
- # 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).
288
289
  # Corresponds to the JSON property `size`
289
290
  # @return [String]
290
291
  attr_accessor :size
291
292
 
292
- # Type of the ad unit.
293
+ # Required. Type of the ad unit.
293
294
  # Corresponds to the JSON property `type`
294
295
  # @return [String]
295
296
  attr_accessor :type
@@ -309,7 +310,7 @@ module Google
309
310
  class CustomChannel
310
311
  include Google::Apis::Core::Hashable
311
312
 
312
- # Display name of the custom channel.
313
+ # Required. Display name of the custom channel.
313
314
  # Corresponds to the JSON property `displayName`
314
315
  # @return [String]
315
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.14.0"
19
+ GEM_VERSION = "0.17.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 = "20220330"
25
+ REVISION = "20220503"
26
26
  end
27
27
  end
28
28
  end
@@ -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.14.0
4
+ version: 0.17.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-04-04 00:00:00.000000000 Z
11
+ date: 2022-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.4'
19
+ version: '0.5'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.4'
29
+ version: '0.5'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.14.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-adsense_v2/v0.17.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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.5
78
+ rubygems_version: 3.3.14
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for AdSense Management API V2