google-apis-adsense_v2 0.15.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
@@ -91,8 +91,9 @@ module Google
|
|
91
91
|
# @return [String]
|
92
92
|
attr_accessor :name
|
93
93
|
|
94
|
-
# Output only.
|
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
|
@@ -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
|
@@ -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: []
|