google-apis-adsense_v2 0.15.0 → 0.18.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 +4 -4
- data/CHANGELOG.md +12 -0
- data/lib/google/apis/adsense_v2/classes.rb +3 -2
- data/lib/google/apis/adsense_v2/gem_version.rb +3 -3
- data/lib/google/apis/adsense_v2/service.rb +93 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 585330224f224e5bdc5a08db33b4dacd86fc5236d4ea1e10fdd2b89729fdbc6c
|
4
|
+
data.tar.gz: 1c12ab10ea0306b24876512898ea71dde89b3ebe69df1b11a5b778f861b367ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37ca4505a19aca399a57a7cc6e0bae0598aa85f22d706acaf3fc69a1bbdf0ac4aaa6492cb0aa53298b36e738196881e2c662f0fe47faf36a0720215db9bd720a
|
7
|
+
data.tar.gz: 27e46bbb4e4dda0813244180489904db38337b65ee1d83113d7dab89b85226cd836c3904098b1cbddbd0e3804549a1a4fa4d2c1e65db476b79bf93554db419e4
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Release history for google-apis-adsense_v2
|
2
2
|
|
3
|
+
### v0.18.0 (2022-06-18)
|
4
|
+
|
5
|
+
* Regenerated using generator version 0.7.0
|
6
|
+
|
7
|
+
### v0.17.0 (2022-06-02)
|
8
|
+
|
9
|
+
* Unspecified changes
|
10
|
+
|
11
|
+
### v0.16.0 (2022-05-03)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20220503
|
14
|
+
|
3
15
|
### v0.15.0 (2022-04-19)
|
4
16
|
|
5
17
|
* Regenerated from discovery document revision 20220419
|
@@ -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.18.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.7.0"
|
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.18.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-06-20 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.
|
19
|
+
version: '0.6'
|
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.
|
29
|
+
version: '0.6'
|
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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-adsense_v2/v0.18.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.
|
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
|