google-apis-adsense_v1_4 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +13 -0
- data/CHANGELOG.md +7 -0
- data/LICENSE.md +202 -0
- data/OVERVIEW.md +96 -0
- data/lib/google-apis-adsense_v1_4.rb +15 -0
- data/lib/google/apis/adsense_v1_4.rb +39 -0
- data/lib/google/apis/adsense_v1_4/classes.rb +1292 -0
- data/lib/google/apis/adsense_v1_4/gem_version.rb +28 -0
- data/lib/google/apis/adsense_v1_4/representations.rb +557 -0
- data/lib/google/apis/adsense_v1_4/service.rb +1677 -0
- metadata +76 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 676512b19e5dae6d15f060c02b55da88ec206ef1fcfc02db749540cc977cdc24
|
4
|
+
data.tar.gz: 80b6440b5a3bd40b831d0edcad2fb4d4fec1b633d86b36373300bbaf524d6f09
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 390c06ae410eda6536b02151390de45325e3f7cd6b749314808fe9fe47273895d8c9b31b8edae98a4c27bdd9e0b5a0d0379f6072ceb868bc3aae1f2c2309ed2d
|
7
|
+
data.tar.gz: f4b737093d3107ac3d7ed6905f800dd23807bfed1cf8877db51998bbb86527d0a2142c3b0690468dc7a34f865e6c962afaa600b586b5437239b73643dc857cd0
|
data/.yardopts
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
--hide-void-return
|
2
|
+
--no-private
|
3
|
+
--verbose
|
4
|
+
--title=google-apis-adsense_v1_4
|
5
|
+
--markup-provider=redcarpet
|
6
|
+
--markup=markdown
|
7
|
+
--main OVERVIEW.md
|
8
|
+
lib/google/apis/adsense_v1_4/*.rb
|
9
|
+
lib/google/apis/adsense_v1_4.rb
|
10
|
+
-
|
11
|
+
OVERVIEW.md
|
12
|
+
CHANGELOG.md
|
13
|
+
LICENSE.md
|
data/CHANGELOG.md
ADDED
data/LICENSE.md
ADDED
@@ -0,0 +1,202 @@
|
|
1
|
+
|
2
|
+
Apache License
|
3
|
+
Version 2.0, January 2004
|
4
|
+
http://www.apache.org/licenses/
|
5
|
+
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
7
|
+
|
8
|
+
1. Definitions.
|
9
|
+
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
12
|
+
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
14
|
+
the copyright owner that is granting the License.
|
15
|
+
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
17
|
+
other entities that control, are controlled by, or are under common
|
18
|
+
control with that entity. For the purposes of this definition,
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
20
|
+
direction or management of such entity, whether by contract or
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
23
|
+
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
25
|
+
exercising permissions granted by this License.
|
26
|
+
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
28
|
+
including but not limited to software source code, documentation
|
29
|
+
source, and configuration files.
|
30
|
+
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
32
|
+
transformation or translation of a Source form, including but
|
33
|
+
not limited to compiled object code, generated documentation,
|
34
|
+
and conversions to other media types.
|
35
|
+
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
37
|
+
Object form, made available under the License, as indicated by a
|
38
|
+
copyright notice that is included in or attached to the work
|
39
|
+
(an example is provided in the Appendix below).
|
40
|
+
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
47
|
+
the Work and Derivative Works thereof.
|
48
|
+
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
50
|
+
the original version of the Work and any modifications or additions
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
62
|
+
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
65
|
+
subsequently incorporated within the Work.
|
66
|
+
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
73
|
+
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
79
|
+
where such license applies only to those patent claims licensable
|
80
|
+
by such Contributor that are necessarily infringed by their
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
83
|
+
institute patent litigation against any entity (including a
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
86
|
+
or contributory patent infringement, then any patent licenses
|
87
|
+
granted to You under this License for that Work shall terminate
|
88
|
+
as of the date such litigation is filed.
|
89
|
+
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
92
|
+
modifications, and in Source or Object form, provided that You
|
93
|
+
meet the following conditions:
|
94
|
+
|
95
|
+
(a) You must give any other recipients of the Work or
|
96
|
+
Derivative Works a copy of this License; and
|
97
|
+
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
99
|
+
stating that You changed the files; and
|
100
|
+
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
103
|
+
attribution notices from the Source form of the Work,
|
104
|
+
excluding those notices that do not pertain to any part of
|
105
|
+
the Derivative Works; and
|
106
|
+
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
109
|
+
include a readable copy of the attribution notices contained
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
112
|
+
of the following places: within a NOTICE text file distributed
|
113
|
+
as part of the Derivative Works; within the Source form or
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
115
|
+
within a display generated by the Derivative Works, if and
|
116
|
+
wherever such third-party notices normally appear. The contents
|
117
|
+
of the NOTICE file are for informational purposes only and
|
118
|
+
do not modify the License. You may add Your own attribution
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
121
|
+
that such additional attribution notices cannot be construed
|
122
|
+
as modifying the License.
|
123
|
+
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
125
|
+
may provide additional or different license terms and conditions
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
129
|
+
the conditions stated in this License.
|
130
|
+
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
134
|
+
this License, without any additional terms or conditions.
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
136
|
+
the terms of any separate license agreement you may have executed
|
137
|
+
with Licensor regarding such Contributions.
|
138
|
+
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
141
|
+
except as required for reasonable and customary use in describing the
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
143
|
+
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
153
|
+
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
159
|
+
incidental, or consequential damages of any character arising as a
|
160
|
+
result of this License or out of the use or inability to use the
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
163
|
+
other commercial damages or losses), even if such Contributor
|
164
|
+
has been advised of the possibility of such damages.
|
165
|
+
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
169
|
+
or other liability obligations and/or rights consistent with this
|
170
|
+
License. However, in accepting such obligations, You may act only
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
175
|
+
of your accepting any such warranty or additional liability.
|
176
|
+
|
177
|
+
END OF TERMS AND CONDITIONS
|
178
|
+
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
180
|
+
|
181
|
+
To apply the Apache License to your work, attach the following
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
183
|
+
replaced with your own identifying information. (Don't include
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
185
|
+
comment syntax for the file format. We also recommend that a
|
186
|
+
file or class name and description of purpose be included on the
|
187
|
+
same "printed page" as the copyright notice for easier
|
188
|
+
identification within third-party archives.
|
189
|
+
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
191
|
+
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
193
|
+
you may not use this file except in compliance with the License.
|
194
|
+
You may obtain a copy of the License at
|
195
|
+
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
197
|
+
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
201
|
+
See the License for the specific language governing permissions and
|
202
|
+
limitations under the License.
|
data/OVERVIEW.md
ADDED
@@ -0,0 +1,96 @@
|
|
1
|
+
# Simple REST client for version V1_4 of the AdSense Management API
|
2
|
+
|
3
|
+
This is a simple client library for version V1_4 of the AdSense Management API. It provides:
|
4
|
+
|
5
|
+
* A client object that connects to the HTTP/JSON REST endpoint for the service.
|
6
|
+
* Ruby objects for data structures related to the service.
|
7
|
+
* Integration with the googleauth gem for authentication using OAuth, API keys, and service accounts.
|
8
|
+
* Control of retry, pagination, and timeouts.
|
9
|
+
|
10
|
+
Note that although this client library is supported and will continue to be updated to track changes to the service, it is otherwise considered complete and not under active development. Many Google services, especially Google Cloud Platform services, may provide a more modern client that is under more active development and improvement. See the section below titled *Which client should I use?* for more information.
|
11
|
+
|
12
|
+
## Getting started
|
13
|
+
|
14
|
+
### Before you begin
|
15
|
+
|
16
|
+
There are a few setup steps you need to complete before you can use this library:
|
17
|
+
|
18
|
+
1. If you don't already have a Google account, [sign up](https://www.google.com/accounts).
|
19
|
+
2. If you have never created a Google APIs Console project, read about [Managing Projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects) and create a project in the [Google API Console](https://console.cloud.google.com/).
|
20
|
+
3. Most APIs need to be enabled for your project. [Enable it](https://console.cloud.google.com/apis/library/adsense.googleapis.com) in the console.
|
21
|
+
|
22
|
+
### Installation
|
23
|
+
|
24
|
+
Add this line to your application's Gemfile:
|
25
|
+
|
26
|
+
```ruby
|
27
|
+
gem 'google-apis-adsense_v1_4', '~> 0.1'
|
28
|
+
```
|
29
|
+
|
30
|
+
And then execute:
|
31
|
+
|
32
|
+
```
|
33
|
+
$ bundle
|
34
|
+
```
|
35
|
+
|
36
|
+
Or install it yourself as:
|
37
|
+
|
38
|
+
```
|
39
|
+
$ gem install google-apis-adsense_v1_4
|
40
|
+
```
|
41
|
+
|
42
|
+
### Creating a client object
|
43
|
+
|
44
|
+
Once the gem is installed, you can load the client code and instantiate a client.
|
45
|
+
|
46
|
+
```ruby
|
47
|
+
# Load the client
|
48
|
+
require "google/apis/adsense_v1_4"
|
49
|
+
|
50
|
+
# Create a client object
|
51
|
+
client = Google::Apis::AdsenseV1_4::AdSenseService.new
|
52
|
+
|
53
|
+
# Authenticate calls
|
54
|
+
client.authentication = # ... use the googleauth gem to create credentials
|
55
|
+
```
|
56
|
+
|
57
|
+
See the class reference docs for information on the methods you can call from a client.
|
58
|
+
|
59
|
+
## Documentation
|
60
|
+
|
61
|
+
More detailed descriptions of the Google simple REST clients are available in two documents.
|
62
|
+
|
63
|
+
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
|
64
|
+
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
|
65
|
+
|
66
|
+
(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Adsense service in particular.)
|
67
|
+
|
68
|
+
For reference information on specific calls in the AdSense Management API, see the {Google::Apis::AdsenseV1_4::AdSenseService class reference docs}.
|
69
|
+
|
70
|
+
## Which client should I use?
|
71
|
+
|
72
|
+
Google provides two types of Ruby API client libraries: **simple REST clients** and **modern clients**.
|
73
|
+
|
74
|
+
This library, `google-apis-adsense_v1_4`, is a simple REST client. You can identify these clients by their gem names, which are always in the form `google-apis-<servicename>_<serviceversion>`. The simple REST clients connect to HTTP/JSON REST endpoints and are automatically generated from service discovery documents. They support most API functionality, but their class interfaces are sometimes awkward.
|
75
|
+
|
76
|
+
Modern clients are produced by a modern code generator, sometimes combined with hand-crafted functionality. Most modern clients connect to high-performance gRPC endpoints, although a few are backed by REST services. Modern clients are available for many Google services, especially Google Cloud Platform services, but do not yet support all the services covered by the simple clients.
|
77
|
+
|
78
|
+
Gem names for modern clients are often of the form `google-cloud-<service_name>`. (For example, [google-cloud-pubsub](https://rubygems.org/gems/google-cloud-pubsub).) Note that most modern clients also have corresponding "versioned" gems with names like `google-cloud-<service_name>-<version>`. (For example, [google-cloud-pubsub-v1](https://rubygems.org/gems/google-cloud-pubsub-v1).) The "versioned" gems can be used directly, but often provide lower-level interfaces. In most cases, the main gem is recommended.
|
79
|
+
|
80
|
+
**For most users, we recommend the modern client, if one is available.** Compared with simple clients, modern clients are generally much easier to use and more Ruby-like, support more advanced features such as streaming and long-running operations, and often provide much better performance. You may consider using a simple client instead, if a modern client is not yet available for the service you want to use, or if you are not able to use gRPC on your infrastructure.
|
81
|
+
|
82
|
+
The [product documentation](https://developers.google.com/adsense/management/) may provide guidance regarding the preferred client library to use.
|
83
|
+
|
84
|
+
## Supported Ruby versions
|
85
|
+
|
86
|
+
This library is supported on Ruby 2.5+.
|
87
|
+
|
88
|
+
Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Currently, this means Ruby 2.5 and later. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
|
89
|
+
|
90
|
+
## License
|
91
|
+
|
92
|
+
This library is licensed under Apache 2.0. Full license text is available in the {file:LICENSE.md LICENSE}.
|
93
|
+
|
94
|
+
## Support
|
95
|
+
|
96
|
+
Please [report bugs at the project on Github](https://github.com/google/google-api-ruby-client/issues). Don't hesitate to [ask questions](http://stackoverflow.com/questions/tagged/google-api-ruby-client) about the client or APIs on [StackOverflow](http://stackoverflow.com).
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require "google/apis/adsense_v1_4"
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'google/apis/adsense_v1_4/service.rb'
|
16
|
+
require 'google/apis/adsense_v1_4/classes.rb'
|
17
|
+
require 'google/apis/adsense_v1_4/representations.rb'
|
18
|
+
require 'google/apis/adsense_v1_4/gem_version.rb'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
# AdSense Management API
|
23
|
+
#
|
24
|
+
# Accesses AdSense publishers' inventory and generates performance reports.
|
25
|
+
#
|
26
|
+
# @see https://developers.google.com/adsense/management/
|
27
|
+
module AdsenseV1_4
|
28
|
+
# Version of the AdSense Management API this client connects to.
|
29
|
+
# This is NOT the gem version.
|
30
|
+
VERSION = 'V1_4'
|
31
|
+
|
32
|
+
# View and manage your AdSense data
|
33
|
+
AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense'
|
34
|
+
|
35
|
+
# View your AdSense data
|
36
|
+
AUTH_ADSENSE_READONLY = 'https://www.googleapis.com/auth/adsense.readonly'
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,1292 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'date'
|
16
|
+
require 'google/apis/core/base_service'
|
17
|
+
require 'google/apis/core/json_representation'
|
18
|
+
require 'google/apis/core/hashable'
|
19
|
+
require 'google/apis/errors'
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Apis
|
23
|
+
module AdsenseV1_4
|
24
|
+
|
25
|
+
#
|
26
|
+
class Account
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
#
|
30
|
+
# Corresponds to the JSON property `creation_time`
|
31
|
+
# @return [Fixnum]
|
32
|
+
attr_accessor :creation_time
|
33
|
+
|
34
|
+
# Unique identifier of this account.
|
35
|
+
# Corresponds to the JSON property `id`
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :id
|
38
|
+
|
39
|
+
# Kind of resource this is, in this case adsense#account.
|
40
|
+
# Corresponds to the JSON property `kind`
|
41
|
+
# @return [String]
|
42
|
+
attr_accessor :kind
|
43
|
+
|
44
|
+
# Name of this account.
|
45
|
+
# Corresponds to the JSON property `name`
|
46
|
+
# @return [String]
|
47
|
+
attr_accessor :name
|
48
|
+
|
49
|
+
# Whether this account is premium.
|
50
|
+
# Corresponds to the JSON property `premium`
|
51
|
+
# @return [Boolean]
|
52
|
+
attr_accessor :premium
|
53
|
+
alias_method :premium?, :premium
|
54
|
+
|
55
|
+
# Sub accounts of the this account.
|
56
|
+
# Corresponds to the JSON property `subAccounts`
|
57
|
+
# @return [Array<Google::Apis::AdsenseV1_4::Account>]
|
58
|
+
attr_accessor :sub_accounts
|
59
|
+
|
60
|
+
# AdSense timezone of this account.
|
61
|
+
# Corresponds to the JSON property `timezone`
|
62
|
+
# @return [String]
|
63
|
+
attr_accessor :timezone
|
64
|
+
|
65
|
+
def initialize(**args)
|
66
|
+
update!(**args)
|
67
|
+
end
|
68
|
+
|
69
|
+
# Update properties of this object
|
70
|
+
def update!(**args)
|
71
|
+
@creation_time = args[:creation_time] if args.key?(:creation_time)
|
72
|
+
@id = args[:id] if args.key?(:id)
|
73
|
+
@kind = args[:kind] if args.key?(:kind)
|
74
|
+
@name = args[:name] if args.key?(:name)
|
75
|
+
@premium = args[:premium] if args.key?(:premium)
|
76
|
+
@sub_accounts = args[:sub_accounts] if args.key?(:sub_accounts)
|
77
|
+
@timezone = args[:timezone] if args.key?(:timezone)
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
#
|
82
|
+
class Accounts
|
83
|
+
include Google::Apis::Core::Hashable
|
84
|
+
|
85
|
+
# ETag of this response for caching purposes.
|
86
|
+
# Corresponds to the JSON property `etag`
|
87
|
+
# @return [String]
|
88
|
+
attr_accessor :etag
|
89
|
+
|
90
|
+
# The accounts returned in this list response.
|
91
|
+
# Corresponds to the JSON property `items`
|
92
|
+
# @return [Array<Google::Apis::AdsenseV1_4::Account>]
|
93
|
+
attr_accessor :items
|
94
|
+
|
95
|
+
# Kind of list this is, in this case adsense#accounts.
|
96
|
+
# Corresponds to the JSON property `kind`
|
97
|
+
# @return [String]
|
98
|
+
attr_accessor :kind
|
99
|
+
|
100
|
+
# Continuation token used to page through accounts. To retrieve the next page of
|
101
|
+
# results, set the next request's "pageToken" value to this.
|
102
|
+
# Corresponds to the JSON property `nextPageToken`
|
103
|
+
# @return [String]
|
104
|
+
attr_accessor :next_page_token
|
105
|
+
|
106
|
+
def initialize(**args)
|
107
|
+
update!(**args)
|
108
|
+
end
|
109
|
+
|
110
|
+
# Update properties of this object
|
111
|
+
def update!(**args)
|
112
|
+
@etag = args[:etag] if args.key?(:etag)
|
113
|
+
@items = args[:items] if args.key?(:items)
|
114
|
+
@kind = args[:kind] if args.key?(:kind)
|
115
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
#
|
120
|
+
class AdClient
|
121
|
+
include Google::Apis::Core::Hashable
|
122
|
+
|
123
|
+
# Whether this ad client is opted in to ARC.
|
124
|
+
# Corresponds to the JSON property `arcOptIn`
|
125
|
+
# @return [Boolean]
|
126
|
+
attr_accessor :arc_opt_in
|
127
|
+
alias_method :arc_opt_in?, :arc_opt_in
|
128
|
+
|
129
|
+
# Unique identifier of this ad client.
|
130
|
+
# Corresponds to the JSON property `id`
|
131
|
+
# @return [String]
|
132
|
+
attr_accessor :id
|
133
|
+
|
134
|
+
# Kind of resource this is, in this case adsense#adClient.
|
135
|
+
# Corresponds to the JSON property `kind`
|
136
|
+
# @return [String]
|
137
|
+
attr_accessor :kind
|
138
|
+
|
139
|
+
# This ad client's product code, which corresponds to the PRODUCT_CODE report
|
140
|
+
# dimension.
|
141
|
+
# Corresponds to the JSON property `productCode`
|
142
|
+
# @return [String]
|
143
|
+
attr_accessor :product_code
|
144
|
+
|
145
|
+
# Whether this ad client supports being reported on.
|
146
|
+
# Corresponds to the JSON property `supportsReporting`
|
147
|
+
# @return [Boolean]
|
148
|
+
attr_accessor :supports_reporting
|
149
|
+
alias_method :supports_reporting?, :supports_reporting
|
150
|
+
|
151
|
+
def initialize(**args)
|
152
|
+
update!(**args)
|
153
|
+
end
|
154
|
+
|
155
|
+
# Update properties of this object
|
156
|
+
def update!(**args)
|
157
|
+
@arc_opt_in = args[:arc_opt_in] if args.key?(:arc_opt_in)
|
158
|
+
@id = args[:id] if args.key?(:id)
|
159
|
+
@kind = args[:kind] if args.key?(:kind)
|
160
|
+
@product_code = args[:product_code] if args.key?(:product_code)
|
161
|
+
@supports_reporting = args[:supports_reporting] if args.key?(:supports_reporting)
|
162
|
+
end
|
163
|
+
end
|
164
|
+
|
165
|
+
#
|
166
|
+
class AdClients
|
167
|
+
include Google::Apis::Core::Hashable
|
168
|
+
|
169
|
+
# ETag of this response for caching purposes.
|
170
|
+
# Corresponds to the JSON property `etag`
|
171
|
+
# @return [String]
|
172
|
+
attr_accessor :etag
|
173
|
+
|
174
|
+
# The ad clients returned in this list response.
|
175
|
+
# Corresponds to the JSON property `items`
|
176
|
+
# @return [Array<Google::Apis::AdsenseV1_4::AdClient>]
|
177
|
+
attr_accessor :items
|
178
|
+
|
179
|
+
# Kind of list this is, in this case adsense#adClients.
|
180
|
+
# Corresponds to the JSON property `kind`
|
181
|
+
# @return [String]
|
182
|
+
attr_accessor :kind
|
183
|
+
|
184
|
+
# Continuation token used to page through ad clients. To retrieve the next page
|
185
|
+
# of results, set the next request's "pageToken" value to this.
|
186
|
+
# Corresponds to the JSON property `nextPageToken`
|
187
|
+
# @return [String]
|
188
|
+
attr_accessor :next_page_token
|
189
|
+
|
190
|
+
def initialize(**args)
|
191
|
+
update!(**args)
|
192
|
+
end
|
193
|
+
|
194
|
+
# Update properties of this object
|
195
|
+
def update!(**args)
|
196
|
+
@etag = args[:etag] if args.key?(:etag)
|
197
|
+
@items = args[:items] if args.key?(:items)
|
198
|
+
@kind = args[:kind] if args.key?(:kind)
|
199
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
200
|
+
end
|
201
|
+
end
|
202
|
+
|
203
|
+
#
|
204
|
+
class AdCode
|
205
|
+
include Google::Apis::Core::Hashable
|
206
|
+
|
207
|
+
# The Auto ad code snippet. The ad code snippet.
|
208
|
+
# Corresponds to the JSON property `adCode`
|
209
|
+
# @return [String]
|
210
|
+
attr_accessor :ad_code
|
211
|
+
|
212
|
+
# The AMP Auto ad code snippet that goes in the body of an AMP page.
|
213
|
+
# Corresponds to the JSON property `ampBody`
|
214
|
+
# @return [String]
|
215
|
+
attr_accessor :amp_body
|
216
|
+
|
217
|
+
# The AMP Auto ad code snippet that goes in the head of an AMP page.
|
218
|
+
# Corresponds to the JSON property `ampHead`
|
219
|
+
# @return [String]
|
220
|
+
attr_accessor :amp_head
|
221
|
+
|
222
|
+
# Kind this is, in this case adsense#adCode.
|
223
|
+
# Corresponds to the JSON property `kind`
|
224
|
+
# @return [String]
|
225
|
+
attr_accessor :kind
|
226
|
+
|
227
|
+
def initialize(**args)
|
228
|
+
update!(**args)
|
229
|
+
end
|
230
|
+
|
231
|
+
# Update properties of this object
|
232
|
+
def update!(**args)
|
233
|
+
@ad_code = args[:ad_code] if args.key?(:ad_code)
|
234
|
+
@amp_body = args[:amp_body] if args.key?(:amp_body)
|
235
|
+
@amp_head = args[:amp_head] if args.key?(:amp_head)
|
236
|
+
@kind = args[:kind] if args.key?(:kind)
|
237
|
+
end
|
238
|
+
end
|
239
|
+
|
240
|
+
#
|
241
|
+
class AdStyle
|
242
|
+
include Google::Apis::Core::Hashable
|
243
|
+
|
244
|
+
# The colors which are included in the style. These are represented as six
|
245
|
+
# hexadecimal characters, similar to HTML color codes, but without the leading
|
246
|
+
# hash.
|
247
|
+
# Corresponds to the JSON property `colors`
|
248
|
+
# @return [Google::Apis::AdsenseV1_4::AdStyle::Colors]
|
249
|
+
attr_accessor :colors
|
250
|
+
|
251
|
+
# The style of the corners in the ad (deprecated: never populated, ignored).
|
252
|
+
# Corresponds to the JSON property `corners`
|
253
|
+
# @return [String]
|
254
|
+
attr_accessor :corners
|
255
|
+
|
256
|
+
# The font which is included in the style.
|
257
|
+
# Corresponds to the JSON property `font`
|
258
|
+
# @return [Google::Apis::AdsenseV1_4::AdStyle::Font]
|
259
|
+
attr_accessor :font
|
260
|
+
|
261
|
+
# Kind this is, in this case adsense#adStyle.
|
262
|
+
# Corresponds to the JSON property `kind`
|
263
|
+
# @return [String]
|
264
|
+
attr_accessor :kind
|
265
|
+
|
266
|
+
def initialize(**args)
|
267
|
+
update!(**args)
|
268
|
+
end
|
269
|
+
|
270
|
+
# Update properties of this object
|
271
|
+
def update!(**args)
|
272
|
+
@colors = args[:colors] if args.key?(:colors)
|
273
|
+
@corners = args[:corners] if args.key?(:corners)
|
274
|
+
@font = args[:font] if args.key?(:font)
|
275
|
+
@kind = args[:kind] if args.key?(:kind)
|
276
|
+
end
|
277
|
+
|
278
|
+
# The colors which are included in the style. These are represented as six
|
279
|
+
# hexadecimal characters, similar to HTML color codes, but without the leading
|
280
|
+
# hash.
|
281
|
+
class Colors
|
282
|
+
include Google::Apis::Core::Hashable
|
283
|
+
|
284
|
+
# The color of the ad background.
|
285
|
+
# Corresponds to the JSON property `background`
|
286
|
+
# @return [String]
|
287
|
+
attr_accessor :background
|
288
|
+
|
289
|
+
# The color of the ad border.
|
290
|
+
# Corresponds to the JSON property `border`
|
291
|
+
# @return [String]
|
292
|
+
attr_accessor :border
|
293
|
+
|
294
|
+
# The color of the ad text.
|
295
|
+
# Corresponds to the JSON property `text`
|
296
|
+
# @return [String]
|
297
|
+
attr_accessor :text
|
298
|
+
|
299
|
+
# The color of the ad title.
|
300
|
+
# Corresponds to the JSON property `title`
|
301
|
+
# @return [String]
|
302
|
+
attr_accessor :title
|
303
|
+
|
304
|
+
# The color of the ad url.
|
305
|
+
# Corresponds to the JSON property `url`
|
306
|
+
# @return [String]
|
307
|
+
attr_accessor :url
|
308
|
+
|
309
|
+
def initialize(**args)
|
310
|
+
update!(**args)
|
311
|
+
end
|
312
|
+
|
313
|
+
# Update properties of this object
|
314
|
+
def update!(**args)
|
315
|
+
@background = args[:background] if args.key?(:background)
|
316
|
+
@border = args[:border] if args.key?(:border)
|
317
|
+
@text = args[:text] if args.key?(:text)
|
318
|
+
@title = args[:title] if args.key?(:title)
|
319
|
+
@url = args[:url] if args.key?(:url)
|
320
|
+
end
|
321
|
+
end
|
322
|
+
|
323
|
+
# The font which is included in the style.
|
324
|
+
class Font
|
325
|
+
include Google::Apis::Core::Hashable
|
326
|
+
|
327
|
+
# The family of the font.
|
328
|
+
# Corresponds to the JSON property `family`
|
329
|
+
# @return [String]
|
330
|
+
attr_accessor :family
|
331
|
+
|
332
|
+
# The size of the font.
|
333
|
+
# Corresponds to the JSON property `size`
|
334
|
+
# @return [String]
|
335
|
+
attr_accessor :size
|
336
|
+
|
337
|
+
def initialize(**args)
|
338
|
+
update!(**args)
|
339
|
+
end
|
340
|
+
|
341
|
+
# Update properties of this object
|
342
|
+
def update!(**args)
|
343
|
+
@family = args[:family] if args.key?(:family)
|
344
|
+
@size = args[:size] if args.key?(:size)
|
345
|
+
end
|
346
|
+
end
|
347
|
+
end
|
348
|
+
|
349
|
+
#
|
350
|
+
class AdUnit
|
351
|
+
include Google::Apis::Core::Hashable
|
352
|
+
|
353
|
+
# Identity code of this ad unit, not necessarily unique across ad clients.
|
354
|
+
# Corresponds to the JSON property `code`
|
355
|
+
# @return [String]
|
356
|
+
attr_accessor :code
|
357
|
+
|
358
|
+
# Settings specific to content ads (AFC) and highend mobile content ads (AFMC -
|
359
|
+
# deprecated).
|
360
|
+
# Corresponds to the JSON property `contentAdsSettings`
|
361
|
+
# @return [Google::Apis::AdsenseV1_4::AdUnit::ContentAdsSettings]
|
362
|
+
attr_accessor :content_ads_settings
|
363
|
+
|
364
|
+
# Custom style information specific to this ad unit.
|
365
|
+
# Corresponds to the JSON property `customStyle`
|
366
|
+
# @return [Google::Apis::AdsenseV1_4::AdStyle]
|
367
|
+
attr_accessor :custom_style
|
368
|
+
|
369
|
+
# Settings specific to feed ads (AFF) - deprecated.
|
370
|
+
# Corresponds to the JSON property `feedAdsSettings`
|
371
|
+
# @return [Google::Apis::AdsenseV1_4::AdUnit::FeedAdsSettings]
|
372
|
+
attr_accessor :feed_ads_settings
|
373
|
+
|
374
|
+
# Unique identifier of this ad unit. This should be considered an opaque
|
375
|
+
# identifier; it is not safe to rely on it being in any particular format.
|
376
|
+
# Corresponds to the JSON property `id`
|
377
|
+
# @return [String]
|
378
|
+
attr_accessor :id
|
379
|
+
|
380
|
+
# Kind of resource this is, in this case adsense#adUnit.
|
381
|
+
# Corresponds to the JSON property `kind`
|
382
|
+
# @return [String]
|
383
|
+
attr_accessor :kind
|
384
|
+
|
385
|
+
# Settings specific to WAP mobile content ads (AFMC) - deprecated.
|
386
|
+
# Corresponds to the JSON property `mobileContentAdsSettings`
|
387
|
+
# @return [Google::Apis::AdsenseV1_4::AdUnit::MobileContentAdsSettings]
|
388
|
+
attr_accessor :mobile_content_ads_settings
|
389
|
+
|
390
|
+
# Name of this ad unit.
|
391
|
+
# Corresponds to the JSON property `name`
|
392
|
+
# @return [String]
|
393
|
+
attr_accessor :name
|
394
|
+
|
395
|
+
# ID of the saved ad style which holds this ad unit's style information.
|
396
|
+
# Corresponds to the JSON property `savedStyleId`
|
397
|
+
# @return [String]
|
398
|
+
attr_accessor :saved_style_id
|
399
|
+
|
400
|
+
# Status of this ad unit. Possible values are:
|
401
|
+
# NEW: Indicates that the ad unit was created within the last seven days and
|
402
|
+
# does not yet have any activity associated with it.
|
403
|
+
# ACTIVE: Indicates that there has been activity on this ad unit in the last
|
404
|
+
# seven days.
|
405
|
+
# INACTIVE: Indicates that there has been no activity on this ad unit in the
|
406
|
+
# last seven days.
|
407
|
+
# Corresponds to the JSON property `status`
|
408
|
+
# @return [String]
|
409
|
+
attr_accessor :status
|
410
|
+
|
411
|
+
def initialize(**args)
|
412
|
+
update!(**args)
|
413
|
+
end
|
414
|
+
|
415
|
+
# Update properties of this object
|
416
|
+
def update!(**args)
|
417
|
+
@code = args[:code] if args.key?(:code)
|
418
|
+
@content_ads_settings = args[:content_ads_settings] if args.key?(:content_ads_settings)
|
419
|
+
@custom_style = args[:custom_style] if args.key?(:custom_style)
|
420
|
+
@feed_ads_settings = args[:feed_ads_settings] if args.key?(:feed_ads_settings)
|
421
|
+
@id = args[:id] if args.key?(:id)
|
422
|
+
@kind = args[:kind] if args.key?(:kind)
|
423
|
+
@mobile_content_ads_settings = args[:mobile_content_ads_settings] if args.key?(:mobile_content_ads_settings)
|
424
|
+
@name = args[:name] if args.key?(:name)
|
425
|
+
@saved_style_id = args[:saved_style_id] if args.key?(:saved_style_id)
|
426
|
+
@status = args[:status] if args.key?(:status)
|
427
|
+
end
|
428
|
+
|
429
|
+
# Settings specific to content ads (AFC) and highend mobile content ads (AFMC -
|
430
|
+
# deprecated).
|
431
|
+
class ContentAdsSettings
|
432
|
+
include Google::Apis::Core::Hashable
|
433
|
+
|
434
|
+
# The backup option to be used in instances where no ad is available.
|
435
|
+
# Corresponds to the JSON property `backupOption`
|
436
|
+
# @return [Google::Apis::AdsenseV1_4::AdUnit::ContentAdsSettings::BackupOption]
|
437
|
+
attr_accessor :backup_option
|
438
|
+
|
439
|
+
# Size of this ad unit.
|
440
|
+
# Corresponds to the JSON property `size`
|
441
|
+
# @return [String]
|
442
|
+
attr_accessor :size
|
443
|
+
|
444
|
+
# Type of this ad unit.
|
445
|
+
# Corresponds to the JSON property `type`
|
446
|
+
# @return [String]
|
447
|
+
attr_accessor :type
|
448
|
+
|
449
|
+
def initialize(**args)
|
450
|
+
update!(**args)
|
451
|
+
end
|
452
|
+
|
453
|
+
# Update properties of this object
|
454
|
+
def update!(**args)
|
455
|
+
@backup_option = args[:backup_option] if args.key?(:backup_option)
|
456
|
+
@size = args[:size] if args.key?(:size)
|
457
|
+
@type = args[:type] if args.key?(:type)
|
458
|
+
end
|
459
|
+
|
460
|
+
# The backup option to be used in instances where no ad is available.
|
461
|
+
class BackupOption
|
462
|
+
include Google::Apis::Core::Hashable
|
463
|
+
|
464
|
+
# Color to use when type is set to COLOR.
|
465
|
+
# Corresponds to the JSON property `color`
|
466
|
+
# @return [String]
|
467
|
+
attr_accessor :color
|
468
|
+
|
469
|
+
# Type of the backup option. Possible values are BLANK, COLOR and URL.
|
470
|
+
# Corresponds to the JSON property `type`
|
471
|
+
# @return [String]
|
472
|
+
attr_accessor :type
|
473
|
+
|
474
|
+
# URL to use when type is set to URL.
|
475
|
+
# Corresponds to the JSON property `url`
|
476
|
+
# @return [String]
|
477
|
+
attr_accessor :url
|
478
|
+
|
479
|
+
def initialize(**args)
|
480
|
+
update!(**args)
|
481
|
+
end
|
482
|
+
|
483
|
+
# Update properties of this object
|
484
|
+
def update!(**args)
|
485
|
+
@color = args[:color] if args.key?(:color)
|
486
|
+
@type = args[:type] if args.key?(:type)
|
487
|
+
@url = args[:url] if args.key?(:url)
|
488
|
+
end
|
489
|
+
end
|
490
|
+
end
|
491
|
+
|
492
|
+
# Settings specific to feed ads (AFF) - deprecated.
|
493
|
+
class FeedAdsSettings
|
494
|
+
include Google::Apis::Core::Hashable
|
495
|
+
|
496
|
+
# The position of the ads relative to the feed entries.
|
497
|
+
# Corresponds to the JSON property `adPosition`
|
498
|
+
# @return [String]
|
499
|
+
attr_accessor :ad_position
|
500
|
+
|
501
|
+
# The frequency at which ads should appear in the feed (i.e. every N entries).
|
502
|
+
# Corresponds to the JSON property `frequency`
|
503
|
+
# @return [Fixnum]
|
504
|
+
attr_accessor :frequency
|
505
|
+
|
506
|
+
# The minimum length an entry should be in order to have attached ads.
|
507
|
+
# Corresponds to the JSON property `minimumWordCount`
|
508
|
+
# @return [Fixnum]
|
509
|
+
attr_accessor :minimum_word_count
|
510
|
+
|
511
|
+
# The type of ads which should appear.
|
512
|
+
# Corresponds to the JSON property `type`
|
513
|
+
# @return [String]
|
514
|
+
attr_accessor :type
|
515
|
+
|
516
|
+
def initialize(**args)
|
517
|
+
update!(**args)
|
518
|
+
end
|
519
|
+
|
520
|
+
# Update properties of this object
|
521
|
+
def update!(**args)
|
522
|
+
@ad_position = args[:ad_position] if args.key?(:ad_position)
|
523
|
+
@frequency = args[:frequency] if args.key?(:frequency)
|
524
|
+
@minimum_word_count = args[:minimum_word_count] if args.key?(:minimum_word_count)
|
525
|
+
@type = args[:type] if args.key?(:type)
|
526
|
+
end
|
527
|
+
end
|
528
|
+
|
529
|
+
# Settings specific to WAP mobile content ads (AFMC) - deprecated.
|
530
|
+
class MobileContentAdsSettings
|
531
|
+
include Google::Apis::Core::Hashable
|
532
|
+
|
533
|
+
# The markup language to use for this ad unit.
|
534
|
+
# Corresponds to the JSON property `markupLanguage`
|
535
|
+
# @return [String]
|
536
|
+
attr_accessor :markup_language
|
537
|
+
|
538
|
+
# The scripting language to use for this ad unit.
|
539
|
+
# Corresponds to the JSON property `scriptingLanguage`
|
540
|
+
# @return [String]
|
541
|
+
attr_accessor :scripting_language
|
542
|
+
|
543
|
+
# Size of this ad unit.
|
544
|
+
# Corresponds to the JSON property `size`
|
545
|
+
# @return [String]
|
546
|
+
attr_accessor :size
|
547
|
+
|
548
|
+
# Type of this ad unit.
|
549
|
+
# Corresponds to the JSON property `type`
|
550
|
+
# @return [String]
|
551
|
+
attr_accessor :type
|
552
|
+
|
553
|
+
def initialize(**args)
|
554
|
+
update!(**args)
|
555
|
+
end
|
556
|
+
|
557
|
+
# Update properties of this object
|
558
|
+
def update!(**args)
|
559
|
+
@markup_language = args[:markup_language] if args.key?(:markup_language)
|
560
|
+
@scripting_language = args[:scripting_language] if args.key?(:scripting_language)
|
561
|
+
@size = args[:size] if args.key?(:size)
|
562
|
+
@type = args[:type] if args.key?(:type)
|
563
|
+
end
|
564
|
+
end
|
565
|
+
end
|
566
|
+
|
567
|
+
#
|
568
|
+
class AdUnits
|
569
|
+
include Google::Apis::Core::Hashable
|
570
|
+
|
571
|
+
# ETag of this response for caching purposes.
|
572
|
+
# Corresponds to the JSON property `etag`
|
573
|
+
# @return [String]
|
574
|
+
attr_accessor :etag
|
575
|
+
|
576
|
+
# The ad units returned in this list response.
|
577
|
+
# Corresponds to the JSON property `items`
|
578
|
+
# @return [Array<Google::Apis::AdsenseV1_4::AdUnit>]
|
579
|
+
attr_accessor :items
|
580
|
+
|
581
|
+
# Kind of list this is, in this case adsense#adUnits.
|
582
|
+
# Corresponds to the JSON property `kind`
|
583
|
+
# @return [String]
|
584
|
+
attr_accessor :kind
|
585
|
+
|
586
|
+
# Continuation token used to page through ad units. To retrieve the next page of
|
587
|
+
# results, set the next request's "pageToken" value to this.
|
588
|
+
# Corresponds to the JSON property `nextPageToken`
|
589
|
+
# @return [String]
|
590
|
+
attr_accessor :next_page_token
|
591
|
+
|
592
|
+
def initialize(**args)
|
593
|
+
update!(**args)
|
594
|
+
end
|
595
|
+
|
596
|
+
# Update properties of this object
|
597
|
+
def update!(**args)
|
598
|
+
@etag = args[:etag] if args.key?(:etag)
|
599
|
+
@items = args[:items] if args.key?(:items)
|
600
|
+
@kind = args[:kind] if args.key?(:kind)
|
601
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
602
|
+
end
|
603
|
+
end
|
604
|
+
|
605
|
+
#
|
606
|
+
class GenerateReportResponse
|
607
|
+
include Google::Apis::Core::Hashable
|
608
|
+
|
609
|
+
# The averages of the report. This is the same length as any other row in the
|
610
|
+
# report; cells corresponding to dimension columns are empty.
|
611
|
+
# Corresponds to the JSON property `averages`
|
612
|
+
# @return [Array<String>]
|
613
|
+
attr_accessor :averages
|
614
|
+
|
615
|
+
# The requested end date in yyyy-mm-dd format.
|
616
|
+
# Corresponds to the JSON property `endDate`
|
617
|
+
# @return [String]
|
618
|
+
attr_accessor :end_date
|
619
|
+
|
620
|
+
# The header information of the columns requested in the report. This is a list
|
621
|
+
# of headers; one for each dimension in the request, followed by one for each
|
622
|
+
# metric in the request.
|
623
|
+
# Corresponds to the JSON property `headers`
|
624
|
+
# @return [Array<Google::Apis::AdsenseV1_4::GenerateReportResponse::Header>]
|
625
|
+
attr_accessor :headers
|
626
|
+
|
627
|
+
# Kind this is, in this case adsense#report.
|
628
|
+
# Corresponds to the JSON property `kind`
|
629
|
+
# @return [String]
|
630
|
+
attr_accessor :kind
|
631
|
+
|
632
|
+
# The output rows of the report. Each row is a list of cells; one for each
|
633
|
+
# dimension in the request, followed by one for each metric in the request. The
|
634
|
+
# dimension cells contain strings, and the metric cells contain numbers.
|
635
|
+
# Corresponds to the JSON property `rows`
|
636
|
+
# @return [Array<Array<String>>]
|
637
|
+
attr_accessor :rows
|
638
|
+
|
639
|
+
# The requested start date in yyyy-mm-dd format.
|
640
|
+
# Corresponds to the JSON property `startDate`
|
641
|
+
# @return [String]
|
642
|
+
attr_accessor :start_date
|
643
|
+
|
644
|
+
# The total number of rows matched by the report request. Fewer rows may be
|
645
|
+
# returned in the response due to being limited by the row count requested or
|
646
|
+
# the report row limit.
|
647
|
+
# Corresponds to the JSON property `totalMatchedRows`
|
648
|
+
# @return [Fixnum]
|
649
|
+
attr_accessor :total_matched_rows
|
650
|
+
|
651
|
+
# The totals of the report. This is the same length as any other row in the
|
652
|
+
# report; cells corresponding to dimension columns are empty.
|
653
|
+
# Corresponds to the JSON property `totals`
|
654
|
+
# @return [Array<String>]
|
655
|
+
attr_accessor :totals
|
656
|
+
|
657
|
+
# Any warnings associated with generation of the report.
|
658
|
+
# Corresponds to the JSON property `warnings`
|
659
|
+
# @return [Array<String>]
|
660
|
+
attr_accessor :warnings
|
661
|
+
|
662
|
+
def initialize(**args)
|
663
|
+
update!(**args)
|
664
|
+
end
|
665
|
+
|
666
|
+
# Update properties of this object
|
667
|
+
def update!(**args)
|
668
|
+
@averages = args[:averages] if args.key?(:averages)
|
669
|
+
@end_date = args[:end_date] if args.key?(:end_date)
|
670
|
+
@headers = args[:headers] if args.key?(:headers)
|
671
|
+
@kind = args[:kind] if args.key?(:kind)
|
672
|
+
@rows = args[:rows] if args.key?(:rows)
|
673
|
+
@start_date = args[:start_date] if args.key?(:start_date)
|
674
|
+
@total_matched_rows = args[:total_matched_rows] if args.key?(:total_matched_rows)
|
675
|
+
@totals = args[:totals] if args.key?(:totals)
|
676
|
+
@warnings = args[:warnings] if args.key?(:warnings)
|
677
|
+
end
|
678
|
+
|
679
|
+
#
|
680
|
+
class Header
|
681
|
+
include Google::Apis::Core::Hashable
|
682
|
+
|
683
|
+
# The currency of this column. Only present if the header type is
|
684
|
+
# METRIC_CURRENCY.
|
685
|
+
# Corresponds to the JSON property `currency`
|
686
|
+
# @return [String]
|
687
|
+
attr_accessor :currency
|
688
|
+
|
689
|
+
# The name of the header.
|
690
|
+
# Corresponds to the JSON property `name`
|
691
|
+
# @return [String]
|
692
|
+
attr_accessor :name
|
693
|
+
|
694
|
+
# The type of the header; one of DIMENSION, METRIC_TALLY, METRIC_RATIO, or
|
695
|
+
# METRIC_CURRENCY.
|
696
|
+
# Corresponds to the JSON property `type`
|
697
|
+
# @return [String]
|
698
|
+
attr_accessor :type
|
699
|
+
|
700
|
+
def initialize(**args)
|
701
|
+
update!(**args)
|
702
|
+
end
|
703
|
+
|
704
|
+
# Update properties of this object
|
705
|
+
def update!(**args)
|
706
|
+
@currency = args[:currency] if args.key?(:currency)
|
707
|
+
@name = args[:name] if args.key?(:name)
|
708
|
+
@type = args[:type] if args.key?(:type)
|
709
|
+
end
|
710
|
+
end
|
711
|
+
end
|
712
|
+
|
713
|
+
#
|
714
|
+
class Alert
|
715
|
+
include Google::Apis::Core::Hashable
|
716
|
+
|
717
|
+
# Unique identifier of this alert. This should be considered an opaque
|
718
|
+
# identifier; it is not safe to rely on it being in any particular format.
|
719
|
+
# Corresponds to the JSON property `id`
|
720
|
+
# @return [String]
|
721
|
+
attr_accessor :id
|
722
|
+
|
723
|
+
# Whether this alert can be dismissed.
|
724
|
+
# Corresponds to the JSON property `isDismissible`
|
725
|
+
# @return [Boolean]
|
726
|
+
attr_accessor :is_dismissible
|
727
|
+
alias_method :is_dismissible?, :is_dismissible
|
728
|
+
|
729
|
+
# Kind of resource this is, in this case adsense#alert.
|
730
|
+
# Corresponds to the JSON property `kind`
|
731
|
+
# @return [String]
|
732
|
+
attr_accessor :kind
|
733
|
+
|
734
|
+
# The localized alert message.
|
735
|
+
# Corresponds to the JSON property `message`
|
736
|
+
# @return [String]
|
737
|
+
attr_accessor :message
|
738
|
+
|
739
|
+
# Severity of this alert. Possible values: INFO, WARNING, SEVERE.
|
740
|
+
# Corresponds to the JSON property `severity`
|
741
|
+
# @return [String]
|
742
|
+
attr_accessor :severity
|
743
|
+
|
744
|
+
# Type of this alert. Possible values: SELF_HOLD, MIGRATED_TO_BILLING3,
|
745
|
+
# ADDRESS_PIN_VERIFICATION, PHONE_PIN_VERIFICATION, CORPORATE_ENTITY,
|
746
|
+
# GRAYLISTED_PUBLISHER, API_HOLD.
|
747
|
+
# Corresponds to the JSON property `type`
|
748
|
+
# @return [String]
|
749
|
+
attr_accessor :type
|
750
|
+
|
751
|
+
def initialize(**args)
|
752
|
+
update!(**args)
|
753
|
+
end
|
754
|
+
|
755
|
+
# Update properties of this object
|
756
|
+
def update!(**args)
|
757
|
+
@id = args[:id] if args.key?(:id)
|
758
|
+
@is_dismissible = args[:is_dismissible] if args.key?(:is_dismissible)
|
759
|
+
@kind = args[:kind] if args.key?(:kind)
|
760
|
+
@message = args[:message] if args.key?(:message)
|
761
|
+
@severity = args[:severity] if args.key?(:severity)
|
762
|
+
@type = args[:type] if args.key?(:type)
|
763
|
+
end
|
764
|
+
end
|
765
|
+
|
766
|
+
#
|
767
|
+
class Alerts
|
768
|
+
include Google::Apis::Core::Hashable
|
769
|
+
|
770
|
+
# The alerts returned in this list response.
|
771
|
+
# Corresponds to the JSON property `items`
|
772
|
+
# @return [Array<Google::Apis::AdsenseV1_4::Alert>]
|
773
|
+
attr_accessor :items
|
774
|
+
|
775
|
+
# Kind of list this is, in this case adsense#alerts.
|
776
|
+
# Corresponds to the JSON property `kind`
|
777
|
+
# @return [String]
|
778
|
+
attr_accessor :kind
|
779
|
+
|
780
|
+
def initialize(**args)
|
781
|
+
update!(**args)
|
782
|
+
end
|
783
|
+
|
784
|
+
# Update properties of this object
|
785
|
+
def update!(**args)
|
786
|
+
@items = args[:items] if args.key?(:items)
|
787
|
+
@kind = args[:kind] if args.key?(:kind)
|
788
|
+
end
|
789
|
+
end
|
790
|
+
|
791
|
+
#
|
792
|
+
class CustomChannel
|
793
|
+
include Google::Apis::Core::Hashable
|
794
|
+
|
795
|
+
# Code of this custom channel, not necessarily unique across ad clients.
|
796
|
+
# Corresponds to the JSON property `code`
|
797
|
+
# @return [String]
|
798
|
+
attr_accessor :code
|
799
|
+
|
800
|
+
# Unique identifier of this custom channel. This should be considered an opaque
|
801
|
+
# identifier; it is not safe to rely on it being in any particular format.
|
802
|
+
# Corresponds to the JSON property `id`
|
803
|
+
# @return [String]
|
804
|
+
attr_accessor :id
|
805
|
+
|
806
|
+
# Kind of resource this is, in this case adsense#customChannel.
|
807
|
+
# Corresponds to the JSON property `kind`
|
808
|
+
# @return [String]
|
809
|
+
attr_accessor :kind
|
810
|
+
|
811
|
+
# Name of this custom channel.
|
812
|
+
# Corresponds to the JSON property `name`
|
813
|
+
# @return [String]
|
814
|
+
attr_accessor :name
|
815
|
+
|
816
|
+
# The targeting information of this custom channel, if activated.
|
817
|
+
# Corresponds to the JSON property `targetingInfo`
|
818
|
+
# @return [Google::Apis::AdsenseV1_4::CustomChannel::TargetingInfo]
|
819
|
+
attr_accessor :targeting_info
|
820
|
+
|
821
|
+
def initialize(**args)
|
822
|
+
update!(**args)
|
823
|
+
end
|
824
|
+
|
825
|
+
# Update properties of this object
|
826
|
+
def update!(**args)
|
827
|
+
@code = args[:code] if args.key?(:code)
|
828
|
+
@id = args[:id] if args.key?(:id)
|
829
|
+
@kind = args[:kind] if args.key?(:kind)
|
830
|
+
@name = args[:name] if args.key?(:name)
|
831
|
+
@targeting_info = args[:targeting_info] if args.key?(:targeting_info)
|
832
|
+
end
|
833
|
+
|
834
|
+
# The targeting information of this custom channel, if activated.
|
835
|
+
class TargetingInfo
|
836
|
+
include Google::Apis::Core::Hashable
|
837
|
+
|
838
|
+
# The name used to describe this channel externally.
|
839
|
+
# Corresponds to the JSON property `adsAppearOn`
|
840
|
+
# @return [String]
|
841
|
+
attr_accessor :ads_appear_on
|
842
|
+
|
843
|
+
# The external description of the channel.
|
844
|
+
# Corresponds to the JSON property `description`
|
845
|
+
# @return [String]
|
846
|
+
attr_accessor :description
|
847
|
+
|
848
|
+
# The locations in which ads appear. (Only valid for content and mobile content
|
849
|
+
# ads (deprecated)). Acceptable values for content ads are: TOP_LEFT, TOP_CENTER,
|
850
|
+
# TOP_RIGHT, MIDDLE_LEFT, MIDDLE_CENTER, MIDDLE_RIGHT, BOTTOM_LEFT,
|
851
|
+
# BOTTOM_CENTER, BOTTOM_RIGHT, MULTIPLE_LOCATIONS. Acceptable values for mobile
|
852
|
+
# content ads (deprecated) are: TOP, MIDDLE, BOTTOM, MULTIPLE_LOCATIONS.
|
853
|
+
# Corresponds to the JSON property `location`
|
854
|
+
# @return [String]
|
855
|
+
attr_accessor :location
|
856
|
+
|
857
|
+
# The language of the sites ads will be displayed on.
|
858
|
+
# Corresponds to the JSON property `siteLanguage`
|
859
|
+
# @return [String]
|
860
|
+
attr_accessor :site_language
|
861
|
+
|
862
|
+
def initialize(**args)
|
863
|
+
update!(**args)
|
864
|
+
end
|
865
|
+
|
866
|
+
# Update properties of this object
|
867
|
+
def update!(**args)
|
868
|
+
@ads_appear_on = args[:ads_appear_on] if args.key?(:ads_appear_on)
|
869
|
+
@description = args[:description] if args.key?(:description)
|
870
|
+
@location = args[:location] if args.key?(:location)
|
871
|
+
@site_language = args[:site_language] if args.key?(:site_language)
|
872
|
+
end
|
873
|
+
end
|
874
|
+
end
|
875
|
+
|
876
|
+
#
|
877
|
+
class CustomChannels
|
878
|
+
include Google::Apis::Core::Hashable
|
879
|
+
|
880
|
+
# ETag of this response for caching purposes.
|
881
|
+
# Corresponds to the JSON property `etag`
|
882
|
+
# @return [String]
|
883
|
+
attr_accessor :etag
|
884
|
+
|
885
|
+
# The custom channels returned in this list response.
|
886
|
+
# Corresponds to the JSON property `items`
|
887
|
+
# @return [Array<Google::Apis::AdsenseV1_4::CustomChannel>]
|
888
|
+
attr_accessor :items
|
889
|
+
|
890
|
+
# Kind of list this is, in this case adsense#customChannels.
|
891
|
+
# Corresponds to the JSON property `kind`
|
892
|
+
# @return [String]
|
893
|
+
attr_accessor :kind
|
894
|
+
|
895
|
+
# Continuation token used to page through custom channels. To retrieve the next
|
896
|
+
# page of results, set the next request's "pageToken" value to this.
|
897
|
+
# Corresponds to the JSON property `nextPageToken`
|
898
|
+
# @return [String]
|
899
|
+
attr_accessor :next_page_token
|
900
|
+
|
901
|
+
def initialize(**args)
|
902
|
+
update!(**args)
|
903
|
+
end
|
904
|
+
|
905
|
+
# Update properties of this object
|
906
|
+
def update!(**args)
|
907
|
+
@etag = args[:etag] if args.key?(:etag)
|
908
|
+
@items = args[:items] if args.key?(:items)
|
909
|
+
@kind = args[:kind] if args.key?(:kind)
|
910
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
911
|
+
end
|
912
|
+
end
|
913
|
+
|
914
|
+
#
|
915
|
+
class Metadata
|
916
|
+
include Google::Apis::Core::Hashable
|
917
|
+
|
918
|
+
#
|
919
|
+
# Corresponds to the JSON property `items`
|
920
|
+
# @return [Array<Google::Apis::AdsenseV1_4::ReportingMetadataEntry>]
|
921
|
+
attr_accessor :items
|
922
|
+
|
923
|
+
# Kind of list this is, in this case adsense#metadata.
|
924
|
+
# Corresponds to the JSON property `kind`
|
925
|
+
# @return [String]
|
926
|
+
attr_accessor :kind
|
927
|
+
|
928
|
+
def initialize(**args)
|
929
|
+
update!(**args)
|
930
|
+
end
|
931
|
+
|
932
|
+
# Update properties of this object
|
933
|
+
def update!(**args)
|
934
|
+
@items = args[:items] if args.key?(:items)
|
935
|
+
@kind = args[:kind] if args.key?(:kind)
|
936
|
+
end
|
937
|
+
end
|
938
|
+
|
939
|
+
#
|
940
|
+
class Payment
|
941
|
+
include Google::Apis::Core::Hashable
|
942
|
+
|
943
|
+
# Unique identifier of this Payment.
|
944
|
+
# Corresponds to the JSON property `id`
|
945
|
+
# @return [String]
|
946
|
+
attr_accessor :id
|
947
|
+
|
948
|
+
# Kind of resource this is, in this case adsense#payment.
|
949
|
+
# Corresponds to the JSON property `kind`
|
950
|
+
# @return [String]
|
951
|
+
attr_accessor :kind
|
952
|
+
|
953
|
+
# The amount to be paid.
|
954
|
+
# Corresponds to the JSON property `paymentAmount`
|
955
|
+
# @return [String]
|
956
|
+
attr_accessor :payment_amount
|
957
|
+
|
958
|
+
# The currency code for the amount to be paid.
|
959
|
+
# Corresponds to the JSON property `paymentAmountCurrencyCode`
|
960
|
+
# @return [String]
|
961
|
+
attr_accessor :payment_amount_currency_code
|
962
|
+
|
963
|
+
# The date this payment was/will be credited to the user, or none if the payment
|
964
|
+
# threshold has not been met.
|
965
|
+
# Corresponds to the JSON property `paymentDate`
|
966
|
+
# @return [String]
|
967
|
+
attr_accessor :payment_date
|
968
|
+
|
969
|
+
def initialize(**args)
|
970
|
+
update!(**args)
|
971
|
+
end
|
972
|
+
|
973
|
+
# Update properties of this object
|
974
|
+
def update!(**args)
|
975
|
+
@id = args[:id] if args.key?(:id)
|
976
|
+
@kind = args[:kind] if args.key?(:kind)
|
977
|
+
@payment_amount = args[:payment_amount] if args.key?(:payment_amount)
|
978
|
+
@payment_amount_currency_code = args[:payment_amount_currency_code] if args.key?(:payment_amount_currency_code)
|
979
|
+
@payment_date = args[:payment_date] if args.key?(:payment_date)
|
980
|
+
end
|
981
|
+
end
|
982
|
+
|
983
|
+
#
|
984
|
+
class Payments
|
985
|
+
include Google::Apis::Core::Hashable
|
986
|
+
|
987
|
+
# The list of Payments for the account. One or both of a) the account's most
|
988
|
+
# recent payment; and b) the account's upcoming payment.
|
989
|
+
# Corresponds to the JSON property `items`
|
990
|
+
# @return [Array<Google::Apis::AdsenseV1_4::Payment>]
|
991
|
+
attr_accessor :items
|
992
|
+
|
993
|
+
# Kind of list this is, in this case adsense#payments.
|
994
|
+
# Corresponds to the JSON property `kind`
|
995
|
+
# @return [String]
|
996
|
+
attr_accessor :kind
|
997
|
+
|
998
|
+
def initialize(**args)
|
999
|
+
update!(**args)
|
1000
|
+
end
|
1001
|
+
|
1002
|
+
# Update properties of this object
|
1003
|
+
def update!(**args)
|
1004
|
+
@items = args[:items] if args.key?(:items)
|
1005
|
+
@kind = args[:kind] if args.key?(:kind)
|
1006
|
+
end
|
1007
|
+
end
|
1008
|
+
|
1009
|
+
#
|
1010
|
+
class ReportingMetadataEntry
|
1011
|
+
include Google::Apis::Core::Hashable
|
1012
|
+
|
1013
|
+
# For metrics this is a list of dimension IDs which the metric is compatible
|
1014
|
+
# with, for dimensions it is a list of compatibility groups the dimension
|
1015
|
+
# belongs to.
|
1016
|
+
# Corresponds to the JSON property `compatibleDimensions`
|
1017
|
+
# @return [Array<String>]
|
1018
|
+
attr_accessor :compatible_dimensions
|
1019
|
+
|
1020
|
+
# The names of the metrics the dimension or metric this reporting metadata entry
|
1021
|
+
# describes is compatible with.
|
1022
|
+
# Corresponds to the JSON property `compatibleMetrics`
|
1023
|
+
# @return [Array<String>]
|
1024
|
+
attr_accessor :compatible_metrics
|
1025
|
+
|
1026
|
+
# Unique identifier of this reporting metadata entry, corresponding to the name
|
1027
|
+
# of the appropriate dimension or metric.
|
1028
|
+
# Corresponds to the JSON property `id`
|
1029
|
+
# @return [String]
|
1030
|
+
attr_accessor :id
|
1031
|
+
|
1032
|
+
# Kind of resource this is, in this case adsense#reportingMetadataEntry.
|
1033
|
+
# Corresponds to the JSON property `kind`
|
1034
|
+
# @return [String]
|
1035
|
+
attr_accessor :kind
|
1036
|
+
|
1037
|
+
# The names of the dimensions which the dimension or metric this reporting
|
1038
|
+
# metadata entry describes requires to also be present in order for the report
|
1039
|
+
# to be valid. Omitting these will not cause an error or warning, but may result
|
1040
|
+
# in data which cannot be correctly interpreted.
|
1041
|
+
# Corresponds to the JSON property `requiredDimensions`
|
1042
|
+
# @return [Array<String>]
|
1043
|
+
attr_accessor :required_dimensions
|
1044
|
+
|
1045
|
+
# The names of the metrics which the dimension or metric this reporting metadata
|
1046
|
+
# entry describes requires to also be present in order for the report to be
|
1047
|
+
# valid. Omitting these will not cause an error or warning, but may result in
|
1048
|
+
# data which cannot be correctly interpreted.
|
1049
|
+
# Corresponds to the JSON property `requiredMetrics`
|
1050
|
+
# @return [Array<String>]
|
1051
|
+
attr_accessor :required_metrics
|
1052
|
+
|
1053
|
+
# The codes of the projects supported by the dimension or metric this reporting
|
1054
|
+
# metadata entry describes.
|
1055
|
+
# Corresponds to the JSON property `supportedProducts`
|
1056
|
+
# @return [Array<String>]
|
1057
|
+
attr_accessor :supported_products
|
1058
|
+
|
1059
|
+
def initialize(**args)
|
1060
|
+
update!(**args)
|
1061
|
+
end
|
1062
|
+
|
1063
|
+
# Update properties of this object
|
1064
|
+
def update!(**args)
|
1065
|
+
@compatible_dimensions = args[:compatible_dimensions] if args.key?(:compatible_dimensions)
|
1066
|
+
@compatible_metrics = args[:compatible_metrics] if args.key?(:compatible_metrics)
|
1067
|
+
@id = args[:id] if args.key?(:id)
|
1068
|
+
@kind = args[:kind] if args.key?(:kind)
|
1069
|
+
@required_dimensions = args[:required_dimensions] if args.key?(:required_dimensions)
|
1070
|
+
@required_metrics = args[:required_metrics] if args.key?(:required_metrics)
|
1071
|
+
@supported_products = args[:supported_products] if args.key?(:supported_products)
|
1072
|
+
end
|
1073
|
+
end
|
1074
|
+
|
1075
|
+
#
|
1076
|
+
class SavedAdStyle
|
1077
|
+
include Google::Apis::Core::Hashable
|
1078
|
+
|
1079
|
+
# The AdStyle itself.
|
1080
|
+
# Corresponds to the JSON property `adStyle`
|
1081
|
+
# @return [Google::Apis::AdsenseV1_4::AdStyle]
|
1082
|
+
attr_accessor :ad_style
|
1083
|
+
|
1084
|
+
# Unique identifier of this saved ad style. This should be considered an opaque
|
1085
|
+
# identifier; it is not safe to rely on it being in any particular format.
|
1086
|
+
# Corresponds to the JSON property `id`
|
1087
|
+
# @return [String]
|
1088
|
+
attr_accessor :id
|
1089
|
+
|
1090
|
+
# Kind of resource this is, in this case adsense#savedAdStyle.
|
1091
|
+
# Corresponds to the JSON property `kind`
|
1092
|
+
# @return [String]
|
1093
|
+
attr_accessor :kind
|
1094
|
+
|
1095
|
+
# The user selected name of this SavedAdStyle.
|
1096
|
+
# Corresponds to the JSON property `name`
|
1097
|
+
# @return [String]
|
1098
|
+
attr_accessor :name
|
1099
|
+
|
1100
|
+
def initialize(**args)
|
1101
|
+
update!(**args)
|
1102
|
+
end
|
1103
|
+
|
1104
|
+
# Update properties of this object
|
1105
|
+
def update!(**args)
|
1106
|
+
@ad_style = args[:ad_style] if args.key?(:ad_style)
|
1107
|
+
@id = args[:id] if args.key?(:id)
|
1108
|
+
@kind = args[:kind] if args.key?(:kind)
|
1109
|
+
@name = args[:name] if args.key?(:name)
|
1110
|
+
end
|
1111
|
+
end
|
1112
|
+
|
1113
|
+
#
|
1114
|
+
class SavedAdStyles
|
1115
|
+
include Google::Apis::Core::Hashable
|
1116
|
+
|
1117
|
+
# ETag of this response for caching purposes.
|
1118
|
+
# Corresponds to the JSON property `etag`
|
1119
|
+
# @return [String]
|
1120
|
+
attr_accessor :etag
|
1121
|
+
|
1122
|
+
# The saved ad styles returned in this list response.
|
1123
|
+
# Corresponds to the JSON property `items`
|
1124
|
+
# @return [Array<Google::Apis::AdsenseV1_4::SavedAdStyle>]
|
1125
|
+
attr_accessor :items
|
1126
|
+
|
1127
|
+
# Kind of list this is, in this case adsense#savedAdStyles.
|
1128
|
+
# Corresponds to the JSON property `kind`
|
1129
|
+
# @return [String]
|
1130
|
+
attr_accessor :kind
|
1131
|
+
|
1132
|
+
# Continuation token used to page through ad units. To retrieve the next page of
|
1133
|
+
# results, set the next request's "pageToken" value to this.
|
1134
|
+
# Corresponds to the JSON property `nextPageToken`
|
1135
|
+
# @return [String]
|
1136
|
+
attr_accessor :next_page_token
|
1137
|
+
|
1138
|
+
def initialize(**args)
|
1139
|
+
update!(**args)
|
1140
|
+
end
|
1141
|
+
|
1142
|
+
# Update properties of this object
|
1143
|
+
def update!(**args)
|
1144
|
+
@etag = args[:etag] if args.key?(:etag)
|
1145
|
+
@items = args[:items] if args.key?(:items)
|
1146
|
+
@kind = args[:kind] if args.key?(:kind)
|
1147
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1148
|
+
end
|
1149
|
+
end
|
1150
|
+
|
1151
|
+
#
|
1152
|
+
class SavedReport
|
1153
|
+
include Google::Apis::Core::Hashable
|
1154
|
+
|
1155
|
+
# Unique identifier of this saved report.
|
1156
|
+
# Corresponds to the JSON property `id`
|
1157
|
+
# @return [String]
|
1158
|
+
attr_accessor :id
|
1159
|
+
|
1160
|
+
# Kind of resource this is, in this case adsense#savedReport.
|
1161
|
+
# Corresponds to the JSON property `kind`
|
1162
|
+
# @return [String]
|
1163
|
+
attr_accessor :kind
|
1164
|
+
|
1165
|
+
# This saved report's name.
|
1166
|
+
# Corresponds to the JSON property `name`
|
1167
|
+
# @return [String]
|
1168
|
+
attr_accessor :name
|
1169
|
+
|
1170
|
+
def initialize(**args)
|
1171
|
+
update!(**args)
|
1172
|
+
end
|
1173
|
+
|
1174
|
+
# Update properties of this object
|
1175
|
+
def update!(**args)
|
1176
|
+
@id = args[:id] if args.key?(:id)
|
1177
|
+
@kind = args[:kind] if args.key?(:kind)
|
1178
|
+
@name = args[:name] if args.key?(:name)
|
1179
|
+
end
|
1180
|
+
end
|
1181
|
+
|
1182
|
+
#
|
1183
|
+
class SavedReports
|
1184
|
+
include Google::Apis::Core::Hashable
|
1185
|
+
|
1186
|
+
# ETag of this response for caching purposes.
|
1187
|
+
# Corresponds to the JSON property `etag`
|
1188
|
+
# @return [String]
|
1189
|
+
attr_accessor :etag
|
1190
|
+
|
1191
|
+
# The saved reports returned in this list response.
|
1192
|
+
# Corresponds to the JSON property `items`
|
1193
|
+
# @return [Array<Google::Apis::AdsenseV1_4::SavedReport>]
|
1194
|
+
attr_accessor :items
|
1195
|
+
|
1196
|
+
# Kind of list this is, in this case adsense#savedReports.
|
1197
|
+
# Corresponds to the JSON property `kind`
|
1198
|
+
# @return [String]
|
1199
|
+
attr_accessor :kind
|
1200
|
+
|
1201
|
+
# Continuation token used to page through saved reports. To retrieve the next
|
1202
|
+
# page of results, set the next request's "pageToken" value to this.
|
1203
|
+
# Corresponds to the JSON property `nextPageToken`
|
1204
|
+
# @return [String]
|
1205
|
+
attr_accessor :next_page_token
|
1206
|
+
|
1207
|
+
def initialize(**args)
|
1208
|
+
update!(**args)
|
1209
|
+
end
|
1210
|
+
|
1211
|
+
# Update properties of this object
|
1212
|
+
def update!(**args)
|
1213
|
+
@etag = args[:etag] if args.key?(:etag)
|
1214
|
+
@items = args[:items] if args.key?(:items)
|
1215
|
+
@kind = args[:kind] if args.key?(:kind)
|
1216
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1217
|
+
end
|
1218
|
+
end
|
1219
|
+
|
1220
|
+
#
|
1221
|
+
class UrlChannel
|
1222
|
+
include Google::Apis::Core::Hashable
|
1223
|
+
|
1224
|
+
# Unique identifier of this URL channel. This should be considered an opaque
|
1225
|
+
# identifier; it is not safe to rely on it being in any particular format.
|
1226
|
+
# Corresponds to the JSON property `id`
|
1227
|
+
# @return [String]
|
1228
|
+
attr_accessor :id
|
1229
|
+
|
1230
|
+
# Kind of resource this is, in this case adsense#urlChannel.
|
1231
|
+
# Corresponds to the JSON property `kind`
|
1232
|
+
# @return [String]
|
1233
|
+
attr_accessor :kind
|
1234
|
+
|
1235
|
+
# URL Pattern of this URL channel. Does not include "http://" or "https://".
|
1236
|
+
# Example: www.example.com/home
|
1237
|
+
# Corresponds to the JSON property `urlPattern`
|
1238
|
+
# @return [String]
|
1239
|
+
attr_accessor :url_pattern
|
1240
|
+
|
1241
|
+
def initialize(**args)
|
1242
|
+
update!(**args)
|
1243
|
+
end
|
1244
|
+
|
1245
|
+
# Update properties of this object
|
1246
|
+
def update!(**args)
|
1247
|
+
@id = args[:id] if args.key?(:id)
|
1248
|
+
@kind = args[:kind] if args.key?(:kind)
|
1249
|
+
@url_pattern = args[:url_pattern] if args.key?(:url_pattern)
|
1250
|
+
end
|
1251
|
+
end
|
1252
|
+
|
1253
|
+
#
|
1254
|
+
class UrlChannels
|
1255
|
+
include Google::Apis::Core::Hashable
|
1256
|
+
|
1257
|
+
# ETag of this response for caching purposes.
|
1258
|
+
# Corresponds to the JSON property `etag`
|
1259
|
+
# @return [String]
|
1260
|
+
attr_accessor :etag
|
1261
|
+
|
1262
|
+
# The URL channels returned in this list response.
|
1263
|
+
# Corresponds to the JSON property `items`
|
1264
|
+
# @return [Array<Google::Apis::AdsenseV1_4::UrlChannel>]
|
1265
|
+
attr_accessor :items
|
1266
|
+
|
1267
|
+
# Kind of list this is, in this case adsense#urlChannels.
|
1268
|
+
# Corresponds to the JSON property `kind`
|
1269
|
+
# @return [String]
|
1270
|
+
attr_accessor :kind
|
1271
|
+
|
1272
|
+
# Continuation token used to page through URL channels. To retrieve the next
|
1273
|
+
# page of results, set the next request's "pageToken" value to this.
|
1274
|
+
# Corresponds to the JSON property `nextPageToken`
|
1275
|
+
# @return [String]
|
1276
|
+
attr_accessor :next_page_token
|
1277
|
+
|
1278
|
+
def initialize(**args)
|
1279
|
+
update!(**args)
|
1280
|
+
end
|
1281
|
+
|
1282
|
+
# Update properties of this object
|
1283
|
+
def update!(**args)
|
1284
|
+
@etag = args[:etag] if args.key?(:etag)
|
1285
|
+
@items = args[:items] if args.key?(:items)
|
1286
|
+
@kind = args[:kind] if args.key?(:kind)
|
1287
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1288
|
+
end
|
1289
|
+
end
|
1290
|
+
end
|
1291
|
+
end
|
1292
|
+
end
|