google-apis-adsense_v2 0.19.0 → 0.22.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: 8099a5a8e96814df3a7f9a8a0047805c2659bbe306b71dbb79278af24b5ade47
4
- data.tar.gz: b4b794834fd0f190bd47916a4b2294be2af6d12ed71402e698bc6a661296c314
3
+ metadata.gz: 626cd01520963650067eadb6e07834187f693c805e33258941682555e112aebb
4
+ data.tar.gz: 574304a41556fc8a98091b5fbb62357b7b1d2f1bc20f4c677f92905a46656d8b
5
5
  SHA512:
6
- metadata.gz: 6e361eb9b5ab3c249397446df86002b944c2103f1ab784df96e1ff11bf3b9bbc29990a6b057e9f8a60e1baf000bca96f613eb9e6a33471b958e39991bb61aecb
7
- data.tar.gz: bf536cbe9a855bfead0106fac2e1fe0d6d77b6a6f7099e38045e3ecfa8e37050104f91c98b3ddf9791a53c5df81b8b265abee1923f2b796c2d0629c2037f37a3
6
+ metadata.gz: 7652fe624752b4a6c74bceb8f981665d494ae4bf7b24940c5b246123f9c343a71e42d0989df7cbfb699a8224a73145c633cea25898f79b63d6c0ab3bc348ca2d
7
+ data.tar.gz: 32e0b170b2ee0c5ba5223cb2f52c1afe659442248786af77cb38a2a61789564c7bb4a571672e55d1d0df4426d653a9af3c5eb431a1712f0ca557e84aacd8a54a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release history for google-apis-adsense_v2
2
2
 
3
+ ### v0.22.0 (2022-08-20)
4
+
5
+ * Regenerated from discovery document revision 20220817
6
+
7
+ ### v0.21.0 (2022-08-09)
8
+
9
+ * Regenerated from discovery document revision 20220808
10
+
11
+ ### v0.20.0 (2022-07-27)
12
+
13
+ * Regenerated from discovery document revision 20220727
14
+ * Regenerated using generator version 0.9.0
15
+
3
16
  ### v0.19.0 (2022-06-30)
4
17
 
5
18
  * Regenerated using generator version 0.8.0
@@ -36,7 +36,7 @@ module Google
36
36
  # @return [String]
37
37
  attr_accessor :display_name
38
38
 
39
- # Resource name of the account. Format: accounts/pub-[0-9]+
39
+ # Output only. Resource name of the account. Format: accounts/pub-[0-9]+
40
40
  # Corresponds to the JSON property `name`
41
41
  # @return [String]
42
42
  attr_accessor :name
@@ -81,12 +81,43 @@ module Google
81
81
  end
82
82
  end
83
83
 
84
+ # Representation of an ad blocking recovery tag. See https://support.google.com/
85
+ # adsense/answer/11575177.
86
+ class AdBlockingRecoveryTag
87
+ include Google::Apis::Core::Hashable
88
+
89
+ # Error protection code that can be used in conjunction with the tag. It'll
90
+ # display a message to users if an [ad blocking extension blocks their access to
91
+ # your site](https://support.google.com/adsense/answer/11575480).
92
+ # Corresponds to the JSON property `errorProtectionCode`
93
+ # @return [String]
94
+ attr_accessor :error_protection_code
95
+
96
+ # The ad blocking recovery tag. Note that the message generated by the tag can
97
+ # be blocked by an ad blocking extension. If this is not your desired outcome,
98
+ # then you'll need to use it in conjunction with the error protection code.
99
+ # Corresponds to the JSON property `tag`
100
+ # @return [String]
101
+ attr_accessor :tag
102
+
103
+ def initialize(**args)
104
+ update!(**args)
105
+ end
106
+
107
+ # Update properties of this object
108
+ def update!(**args)
109
+ @error_protection_code = args[:error_protection_code] if args.key?(:error_protection_code)
110
+ @tag = args[:tag] if args.key?(:tag)
111
+ end
112
+ end
113
+
84
114
  # Representation of an ad client. An ad client represents a user's subscription
85
115
  # with a specific AdSense product.
86
116
  class AdClient
87
117
  include Google::Apis::Core::Hashable
88
118
 
89
- # Resource name of the ad client. Format: accounts/`account`/adclients/`adclient`
119
+ # Output only. Resource name of the ad client. Format: accounts/`account`/
120
+ # adclients/`adclient`
90
121
  # Corresponds to the JSON property `name`
91
122
  # @return [String]
92
123
  attr_accessor :name
@@ -171,8 +202,8 @@ module Google
171
202
  # @return [String]
172
203
  attr_accessor :display_name
173
204
 
174
- # Resource name of the ad unit. Format: accounts/`account`/adclients/`adclient`/
175
- # adunits/`adunit`
205
+ # Output only. Resource name of the ad unit. Format: accounts/`account`/
206
+ # adclients/`adclient`/adunits/`adunit`
176
207
  # Corresponds to the JSON property `name`
177
208
  # @return [String]
178
209
  attr_accessor :name
@@ -202,11 +233,14 @@ module Google
202
233
  end
203
234
  end
204
235
 
205
- # Representation of the AdSense code for a given ad unit.
236
+ # Representation of the ad unit code for a given ad unit. For more information,
237
+ # see [About the AdSense code](https://support.google.com/adsense/answer/9274634)
238
+ # and [Where to place the ad code in your HTML](https://support.google.com/
239
+ # adsense/answer/9190028).
206
240
  class AdUnitAdCode
207
241
  include Google::Apis::Core::Hashable
208
242
 
209
- # Output only. The AdSense code snippet to add to the body of an HTML page.
243
+ # Output only. The code snippet to add to the body of an HTML page.
210
244
  # Corresponds to the JSON property `adCode`
211
245
  # @return [String]
212
246
  attr_accessor :ad_code
@@ -231,7 +265,8 @@ module Google
231
265
  # @return [String]
232
266
  attr_accessor :message
233
267
 
234
- # Resource name of the alert. Format: accounts/`account`/alerts/`alert`
268
+ # Output only. Resource name of the alert. Format: accounts/`account`/alerts/`
269
+ # alert`
235
270
  # Corresponds to the JSON property `name`
236
271
  # @return [String]
237
272
  attr_accessor :name
@@ -315,8 +350,8 @@ module Google
315
350
  # @return [String]
316
351
  attr_accessor :display_name
317
352
 
318
- # Resource name of the custom channel. Format: accounts/`account`/adclients/`
319
- # adclient`/customchannels/`customchannel`
353
+ # Output only. Resource name of the custom channel. Format: accounts/`account`/
354
+ # adclients/`adclient`/customchannels/`customchannel`
320
355
  # Corresponds to the JSON property `name`
321
356
  # @return [String]
322
357
  attr_accessor :name
@@ -784,11 +819,11 @@ module Google
784
819
  # @return [Google::Apis::AdsenseV2::Date]
785
820
  attr_accessor :date
786
821
 
787
- # Resource name of the payment. Format: - accounts/`account`/payments/unpaid for
788
- # unpaid (current) AdSense earnings. - accounts/`account`/payments/youtube-
789
- # unpaid for unpaid (current) YouTube earnings. - accounts/`account`/payments/
790
- # yyyy-MM-dd for paid AdSense earnings. - accounts/`account`/payments/youtube-
791
- # yyyy-MM-dd for paid YouTube earnings.
822
+ # Output only. Resource name of the payment. Format: - accounts/`account`/
823
+ # payments/unpaid for unpaid (current) AdSense earnings. - accounts/`account`/
824
+ # payments/youtube-unpaid for unpaid (current) YouTube earnings. - accounts/`
825
+ # account`/payments/yyyy-MM-dd for paid AdSense earnings. - accounts/`account`/
826
+ # payments/youtube-yyyy-MM-dd for paid YouTube earnings.
792
827
  # Corresponds to the JSON property `name`
793
828
  # @return [String]
794
829
  attr_accessor :name
@@ -906,7 +941,8 @@ module Google
906
941
  class SavedReport
907
942
  include Google::Apis::Core::Hashable
908
943
 
909
- # Resource name of the report. Format: accounts/`account`/reports/`report`
944
+ # Output only. Resource name of the report. Format: accounts/`account`/reports/`
945
+ # report`
910
946
  # Corresponds to the JSON property `name`
911
947
  # @return [String]
912
948
  attr_accessor :name
@@ -943,7 +979,7 @@ module Google
943
979
  # @return [String]
944
980
  attr_accessor :domain
945
981
 
946
- # Resource name of a site. Format: accounts/`account`/sites/`site`
982
+ # Output only. Resource name of a site. Format: accounts/`account`/sites/`site`
947
983
  # Corresponds to the JSON property `name`
948
984
  # @return [String]
949
985
  attr_accessor :name
@@ -1005,8 +1041,8 @@ module Google
1005
1041
  class UrlChannel
1006
1042
  include Google::Apis::Core::Hashable
1007
1043
 
1008
- # Resource name of the URL channel. Format: accounts/`account`/adclients/`
1009
- # adclient`/urlchannels/`urlchannel`
1044
+ # Output only. Resource name of the URL channel. Format: accounts/`account`/
1045
+ # adclients/`adclient`/urlchannels/`urlchannel`
1010
1046
  # Corresponds to the JSON property `name`
1011
1047
  # @return [String]
1012
1048
  attr_accessor :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.0"
19
+ GEM_VERSION = "0.22.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.8.0"
22
+ GENERATOR_VERSION = "0.9.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220503"
25
+ REVISION = "20220817"
26
26
  end
27
27
  end
28
28
  end
@@ -28,6 +28,12 @@ module Google
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
+ class AdBlockingRecoveryTag
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
31
37
  class AdClient
32
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
39
 
@@ -222,6 +228,14 @@ module Google
222
228
  end
223
229
  end
224
230
 
231
+ class AdBlockingRecoveryTag
232
+ # @private
233
+ class Representation < Google::Apis::Core::JsonRepresentation
234
+ property :error_protection_code, as: 'errorProtectionCode'
235
+ property :tag, as: 'tag'
236
+ end
237
+ end
238
+
225
239
  class AdClient
226
240
  # @private
227
241
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -80,6 +80,37 @@ module Google
80
80
  execute_or_queue_command(command, &block)
81
81
  end
82
82
 
83
+ # Gets the ad blocking recovery tag of an account.
84
+ # @param [String] name
85
+ # Required. The name of the account to get the tag for. Format: accounts/`
86
+ # account`
87
+ # @param [String] fields
88
+ # Selector specifying which fields to include in a partial response.
89
+ # @param [String] quota_user
90
+ # Available to use for quota purposes for server-side applications. Can be any
91
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
92
+ # @param [Google::Apis::RequestOptions] options
93
+ # Request-specific options
94
+ #
95
+ # @yield [result, err] Result & error if block supplied
96
+ # @yieldparam result [Google::Apis::AdsenseV2::AdBlockingRecoveryTag] parsed result object
97
+ # @yieldparam err [StandardError] error object if request failed
98
+ #
99
+ # @return [Google::Apis::AdsenseV2::AdBlockingRecoveryTag]
100
+ #
101
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
102
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
103
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
104
+ def get_account_ad_blocking_recovery_tag(name, fields: nil, quota_user: nil, options: nil, &block)
105
+ command = make_simple_command(:get, 'v2/{+name}/adBlockingRecoveryTag', options)
106
+ command.response_representation = Google::Apis::AdsenseV2::AdBlockingRecoveryTag::Representation
107
+ command.response_class = Google::Apis::AdsenseV2::AdBlockingRecoveryTag
108
+ command.params['name'] = name unless name.nil?
109
+ command.query['fields'] = fields unless fields.nil?
110
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
111
+ execute_or_queue_command(command, &block)
112
+ end
113
+
83
114
  # Lists all accounts available to this user.
84
115
  # @param [Fixnum] page_size
85
116
  # The maximum number of accounts to include in the response, used for paging. If
@@ -295,7 +326,10 @@ module Google
295
326
  execute_or_queue_command(command, &block)
296
327
  end
297
328
 
298
- # Gets the AdSense code for a given ad unit.
329
+ # Gets the ad unit code for a given ad unit. For more information, see [About
330
+ # the AdSense code](https://support.google.com/adsense/answer/9274634) and [
331
+ # Where to place the ad code in your HTML](https://support.google.com/adsense/
332
+ # answer/9190028).
299
333
  # @param [String] name
300
334
  # Required. Name of the adunit for which to get the adcode. Format: accounts/`
301
335
  # account`/adclients/`adclient`/adunits/`adunit`
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.19.0
4
+ version: 0.22.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-07-04 00:00:00.000000000 Z
11
+ date: 2022-08-22 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.19.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-adsense_v2/v0.22.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: []