google-apis-adsense_v2 0.21.0 → 0.22.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: 24fd4988b7c6a246f286fd180ca47932e6f1c822b930a6a55fdd4314f4060583
4
- data.tar.gz: 8e1ceae16e1d23d655c30e9fc4267485a3c5acfe62be00d220aca889367c3d84
3
+ metadata.gz: 626cd01520963650067eadb6e07834187f693c805e33258941682555e112aebb
4
+ data.tar.gz: 574304a41556fc8a98091b5fbb62357b7b1d2f1bc20f4c677f92905a46656d8b
5
5
  SHA512:
6
- metadata.gz: f876eb16e1ee83c01f90a5fe59bb90c48e7a768764b050209aa1c30102a9a4333784bff63e572b3d3601cc86c7004dc609c6f594cf0c341bb3a590f76859ab6f
7
- data.tar.gz: 93e4b61551c1bac5c072c75f3438cd7499cc7a5e3b4d42a5db050c90981e5bfe9c7f5ad7ba2cd2810ea873819dd839e1400848eccf05ad43f083c9606c7fb2f5
6
+ metadata.gz: 7652fe624752b4a6c74bceb8f981665d494ae4bf7b24940c5b246123f9c343a71e42d0989df7cbfb699a8224a73145c633cea25898f79b63d6c0ab3bc348ca2d
7
+ data.tar.gz: 32e0b170b2ee0c5ba5223cb2f52c1afe659442248786af77cb38a2a61789564c7bb4a571672e55d1d0df4426d653a9af3c5eb431a1712f0ca557e84aacd8a54a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
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
+
3
7
  ### v0.21.0 (2022-08-09)
4
8
 
5
9
  * Regenerated from discovery document revision 20220808
@@ -81,6 +81,36 @@ 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
@@ -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.21.0"
19
+ GEM_VERSION = "0.22.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.9.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220808"
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
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.21.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-08-15 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.21.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: []