google-apis-adsensehost_v4_1 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-adsensehost_v4_1.rb +15 -0
- data/lib/google/apis/adsensehost_v4_1.rb +37 -0
- data/lib/google/apis/adsensehost_v4_1/classes.rb +836 -0
- data/lib/google/apis/adsensehost_v4_1/gem_version.rb +28 -0
- data/lib/google/apis/adsensehost_v4_1/representations.rb +367 -0
- data/lib/google/apis/adsensehost_v4_1/service.rb +1117 -0
- metadata +76 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3e0be473d4c3974f0b35829c7239a5e3784a5c69549fb333a823a39003e86f83
|
4
|
+
data.tar.gz: 838cacc2b6bcd1d657c05aa52d63e5825cbf1311d98bb4c58f63c360c93e400e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 11aaa0144f6b64f0b95f271d3c219c9901ae5510861d6cc0954afdffef54e3e92dd8589ab48e13198edf309b831c0bffd2384e8946120e6ff7465b4c67f00d10
|
7
|
+
data.tar.gz: da1e3baa1cf976758274c1484a707a1b4bb69434c81f4340c838245ae2daf0cd2824c3c11fcf69aeb2bfb5275e42c725203a81e912254ddc13e7aaacdbb7bd37
|
data/.yardopts
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
--hide-void-return
|
2
|
+
--no-private
|
3
|
+
--verbose
|
4
|
+
--title=google-apis-adsensehost_v4_1
|
5
|
+
--markup-provider=redcarpet
|
6
|
+
--markup=markdown
|
7
|
+
--main OVERVIEW.md
|
8
|
+
lib/google/apis/adsensehost_v4_1/*.rb
|
9
|
+
lib/google/apis/adsensehost_v4_1.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 V4_1 of the AdSense Host API
|
2
|
+
|
3
|
+
This is a simple client library for version V4_1 of the AdSense Host 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/adsensehost.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-adsensehost_v4_1', '~> 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-adsensehost_v4_1
|
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/adsensehost_v4_1"
|
49
|
+
|
50
|
+
# Create a client object
|
51
|
+
client = Google::Apis::AdsensehostV4_1::AdSenseHostService.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 Adsensehost service in particular.)
|
67
|
+
|
68
|
+
For reference information on specific calls in the AdSense Host API, see the {Google::Apis::AdsensehostV4_1::AdSenseHostService 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-adsensehost_v4_1`, 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/host/) 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/adsensehost_v4_1"
|
@@ -0,0 +1,37 @@
|
|
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/adsensehost_v4_1/service.rb'
|
16
|
+
require 'google/apis/adsensehost_v4_1/classes.rb'
|
17
|
+
require 'google/apis/adsensehost_v4_1/representations.rb'
|
18
|
+
require 'google/apis/adsensehost_v4_1/gem_version.rb'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
# AdSense Host API
|
23
|
+
#
|
24
|
+
# Generates performance reports, generates ad codes, and provides publisher
|
25
|
+
# management capabilities for AdSense Hosts.
|
26
|
+
#
|
27
|
+
# @see https://developers.google.com/adsense/host/
|
28
|
+
module AdsensehostV4_1
|
29
|
+
# Version of the AdSense Host API this client connects to.
|
30
|
+
# This is NOT the gem version.
|
31
|
+
VERSION = 'V4_1'
|
32
|
+
|
33
|
+
# View and manage your AdSense host data and associated accounts
|
34
|
+
AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost'
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,836 @@
|
|
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 AdsensehostV4_1
|
24
|
+
|
25
|
+
#
|
26
|
+
class Account
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# Unique identifier of this account.
|
30
|
+
# Corresponds to the JSON property `id`
|
31
|
+
# @return [String]
|
32
|
+
attr_accessor :id
|
33
|
+
|
34
|
+
# Kind of resource this is, in this case adsensehost#account.
|
35
|
+
# Corresponds to the JSON property `kind`
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :kind
|
38
|
+
|
39
|
+
# Name of this account.
|
40
|
+
# Corresponds to the JSON property `name`
|
41
|
+
# @return [String]
|
42
|
+
attr_accessor :name
|
43
|
+
|
44
|
+
# Approval status of this account. One of: PENDING, APPROVED, DISABLED.
|
45
|
+
# Corresponds to the JSON property `status`
|
46
|
+
# @return [String]
|
47
|
+
attr_accessor :status
|
48
|
+
|
49
|
+
def initialize(**args)
|
50
|
+
update!(**args)
|
51
|
+
end
|
52
|
+
|
53
|
+
# Update properties of this object
|
54
|
+
def update!(**args)
|
55
|
+
@id = args[:id] if args.key?(:id)
|
56
|
+
@kind = args[:kind] if args.key?(:kind)
|
57
|
+
@name = args[:name] if args.key?(:name)
|
58
|
+
@status = args[:status] if args.key?(:status)
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
#
|
63
|
+
class Accounts
|
64
|
+
include Google::Apis::Core::Hashable
|
65
|
+
|
66
|
+
# ETag of this response for caching purposes.
|
67
|
+
# Corresponds to the JSON property `etag`
|
68
|
+
# @return [String]
|
69
|
+
attr_accessor :etag
|
70
|
+
|
71
|
+
# The accounts returned in this list response.
|
72
|
+
# Corresponds to the JSON property `items`
|
73
|
+
# @return [Array<Google::Apis::AdsensehostV4_1::Account>]
|
74
|
+
attr_accessor :items
|
75
|
+
|
76
|
+
# Kind of list this is, in this case adsensehost#accounts.
|
77
|
+
# Corresponds to the JSON property `kind`
|
78
|
+
# @return [String]
|
79
|
+
attr_accessor :kind
|
80
|
+
|
81
|
+
def initialize(**args)
|
82
|
+
update!(**args)
|
83
|
+
end
|
84
|
+
|
85
|
+
# Update properties of this object
|
86
|
+
def update!(**args)
|
87
|
+
@etag = args[:etag] if args.key?(:etag)
|
88
|
+
@items = args[:items] if args.key?(:items)
|
89
|
+
@kind = args[:kind] if args.key?(:kind)
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
#
|
94
|
+
class AdClient
|
95
|
+
include Google::Apis::Core::Hashable
|
96
|
+
|
97
|
+
# Whether this ad client is opted in to ARC.
|
98
|
+
# Corresponds to the JSON property `arcOptIn`
|
99
|
+
# @return [Boolean]
|
100
|
+
attr_accessor :arc_opt_in
|
101
|
+
alias_method :arc_opt_in?, :arc_opt_in
|
102
|
+
|
103
|
+
# Unique identifier of this ad client.
|
104
|
+
# Corresponds to the JSON property `id`
|
105
|
+
# @return [String]
|
106
|
+
attr_accessor :id
|
107
|
+
|
108
|
+
# Kind of resource this is, in this case adsensehost#adClient.
|
109
|
+
# Corresponds to the JSON property `kind`
|
110
|
+
# @return [String]
|
111
|
+
attr_accessor :kind
|
112
|
+
|
113
|
+
# This ad client's product code, which corresponds to the PRODUCT_CODE report
|
114
|
+
# dimension.
|
115
|
+
# Corresponds to the JSON property `productCode`
|
116
|
+
# @return [String]
|
117
|
+
attr_accessor :product_code
|
118
|
+
|
119
|
+
# Whether this ad client supports being reported on.
|
120
|
+
# Corresponds to the JSON property `supportsReporting`
|
121
|
+
# @return [Boolean]
|
122
|
+
attr_accessor :supports_reporting
|
123
|
+
alias_method :supports_reporting?, :supports_reporting
|
124
|
+
|
125
|
+
def initialize(**args)
|
126
|
+
update!(**args)
|
127
|
+
end
|
128
|
+
|
129
|
+
# Update properties of this object
|
130
|
+
def update!(**args)
|
131
|
+
@arc_opt_in = args[:arc_opt_in] if args.key?(:arc_opt_in)
|
132
|
+
@id = args[:id] if args.key?(:id)
|
133
|
+
@kind = args[:kind] if args.key?(:kind)
|
134
|
+
@product_code = args[:product_code] if args.key?(:product_code)
|
135
|
+
@supports_reporting = args[:supports_reporting] if args.key?(:supports_reporting)
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
139
|
+
#
|
140
|
+
class AdClients
|
141
|
+
include Google::Apis::Core::Hashable
|
142
|
+
|
143
|
+
# ETag of this response for caching purposes.
|
144
|
+
# Corresponds to the JSON property `etag`
|
145
|
+
# @return [String]
|
146
|
+
attr_accessor :etag
|
147
|
+
|
148
|
+
# The ad clients returned in this list response.
|
149
|
+
# Corresponds to the JSON property `items`
|
150
|
+
# @return [Array<Google::Apis::AdsensehostV4_1::AdClient>]
|
151
|
+
attr_accessor :items
|
152
|
+
|
153
|
+
# Kind of list this is, in this case adsensehost#adClients.
|
154
|
+
# Corresponds to the JSON property `kind`
|
155
|
+
# @return [String]
|
156
|
+
attr_accessor :kind
|
157
|
+
|
158
|
+
# Continuation token used to page through ad clients. To retrieve the next page
|
159
|
+
# of results, set the next request's "pageToken" value to this.
|
160
|
+
# Corresponds to the JSON property `nextPageToken`
|
161
|
+
# @return [String]
|
162
|
+
attr_accessor :next_page_token
|
163
|
+
|
164
|
+
def initialize(**args)
|
165
|
+
update!(**args)
|
166
|
+
end
|
167
|
+
|
168
|
+
# Update properties of this object
|
169
|
+
def update!(**args)
|
170
|
+
@etag = args[:etag] if args.key?(:etag)
|
171
|
+
@items = args[:items] if args.key?(:items)
|
172
|
+
@kind = args[:kind] if args.key?(:kind)
|
173
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
174
|
+
end
|
175
|
+
end
|
176
|
+
|
177
|
+
#
|
178
|
+
class AdCode
|
179
|
+
include Google::Apis::Core::Hashable
|
180
|
+
|
181
|
+
# The ad code snippet.
|
182
|
+
# Corresponds to the JSON property `adCode`
|
183
|
+
# @return [String]
|
184
|
+
attr_accessor :ad_code
|
185
|
+
|
186
|
+
# Kind this is, in this case adsensehost#adCode.
|
187
|
+
# Corresponds to the JSON property `kind`
|
188
|
+
# @return [String]
|
189
|
+
attr_accessor :kind
|
190
|
+
|
191
|
+
def initialize(**args)
|
192
|
+
update!(**args)
|
193
|
+
end
|
194
|
+
|
195
|
+
# Update properties of this object
|
196
|
+
def update!(**args)
|
197
|
+
@ad_code = args[:ad_code] if args.key?(:ad_code)
|
198
|
+
@kind = args[:kind] if args.key?(:kind)
|
199
|
+
end
|
200
|
+
end
|
201
|
+
|
202
|
+
#
|
203
|
+
class AdStyle
|
204
|
+
include Google::Apis::Core::Hashable
|
205
|
+
|
206
|
+
# The colors included in the style. These are represented as six hexadecimal
|
207
|
+
# characters, similar to HTML color codes, but without the leading hash.
|
208
|
+
# Corresponds to the JSON property `colors`
|
209
|
+
# @return [Google::Apis::AdsensehostV4_1::AdStyle::Colors]
|
210
|
+
attr_accessor :colors
|
211
|
+
|
212
|
+
# The style of the corners in the ad (deprecated: never populated, ignored).
|
213
|
+
# Corresponds to the JSON property `corners`
|
214
|
+
# @return [String]
|
215
|
+
attr_accessor :corners
|
216
|
+
|
217
|
+
# The font which is included in the style.
|
218
|
+
# Corresponds to the JSON property `font`
|
219
|
+
# @return [Google::Apis::AdsensehostV4_1::AdStyle::Font]
|
220
|
+
attr_accessor :font
|
221
|
+
|
222
|
+
# Kind this is, in this case adsensehost#adStyle.
|
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
|
+
@colors = args[:colors] if args.key?(:colors)
|
234
|
+
@corners = args[:corners] if args.key?(:corners)
|
235
|
+
@font = args[:font] if args.key?(:font)
|
236
|
+
@kind = args[:kind] if args.key?(:kind)
|
237
|
+
end
|
238
|
+
|
239
|
+
# The colors included in the style. These are represented as six hexadecimal
|
240
|
+
# characters, similar to HTML color codes, but without the leading hash.
|
241
|
+
class Colors
|
242
|
+
include Google::Apis::Core::Hashable
|
243
|
+
|
244
|
+
# The color of the ad background.
|
245
|
+
# Corresponds to the JSON property `background`
|
246
|
+
# @return [String]
|
247
|
+
attr_accessor :background
|
248
|
+
|
249
|
+
# The color of the ad border.
|
250
|
+
# Corresponds to the JSON property `border`
|
251
|
+
# @return [String]
|
252
|
+
attr_accessor :border
|
253
|
+
|
254
|
+
# The color of the ad text.
|
255
|
+
# Corresponds to the JSON property `text`
|
256
|
+
# @return [String]
|
257
|
+
attr_accessor :text
|
258
|
+
|
259
|
+
# The color of the ad title.
|
260
|
+
# Corresponds to the JSON property `title`
|
261
|
+
# @return [String]
|
262
|
+
attr_accessor :title
|
263
|
+
|
264
|
+
# The color of the ad url.
|
265
|
+
# Corresponds to the JSON property `url`
|
266
|
+
# @return [String]
|
267
|
+
attr_accessor :url
|
268
|
+
|
269
|
+
def initialize(**args)
|
270
|
+
update!(**args)
|
271
|
+
end
|
272
|
+
|
273
|
+
# Update properties of this object
|
274
|
+
def update!(**args)
|
275
|
+
@background = args[:background] if args.key?(:background)
|
276
|
+
@border = args[:border] if args.key?(:border)
|
277
|
+
@text = args[:text] if args.key?(:text)
|
278
|
+
@title = args[:title] if args.key?(:title)
|
279
|
+
@url = args[:url] if args.key?(:url)
|
280
|
+
end
|
281
|
+
end
|
282
|
+
|
283
|
+
# The font which is included in the style.
|
284
|
+
class Font
|
285
|
+
include Google::Apis::Core::Hashable
|
286
|
+
|
287
|
+
# The family of the font. Possible values are: ACCOUNT_DEFAULT_FAMILY,
|
288
|
+
# ADSENSE_DEFAULT_FAMILY, ARIAL, TIMES and VERDANA.
|
289
|
+
# Corresponds to the JSON property `family`
|
290
|
+
# @return [String]
|
291
|
+
attr_accessor :family
|
292
|
+
|
293
|
+
# The size of the font. Possible values are: ACCOUNT_DEFAULT_SIZE,
|
294
|
+
# ADSENSE_DEFAULT_SIZE, SMALL, MEDIUM and LARGE.
|
295
|
+
# Corresponds to the JSON property `size`
|
296
|
+
# @return [String]
|
297
|
+
attr_accessor :size
|
298
|
+
|
299
|
+
def initialize(**args)
|
300
|
+
update!(**args)
|
301
|
+
end
|
302
|
+
|
303
|
+
# Update properties of this object
|
304
|
+
def update!(**args)
|
305
|
+
@family = args[:family] if args.key?(:family)
|
306
|
+
@size = args[:size] if args.key?(:size)
|
307
|
+
end
|
308
|
+
end
|
309
|
+
end
|
310
|
+
|
311
|
+
#
|
312
|
+
class AdUnit
|
313
|
+
include Google::Apis::Core::Hashable
|
314
|
+
|
315
|
+
# Identity code of this ad unit, not necessarily unique across ad clients.
|
316
|
+
# Corresponds to the JSON property `code`
|
317
|
+
# @return [String]
|
318
|
+
attr_accessor :code
|
319
|
+
|
320
|
+
# Settings specific to content ads (AFC) and highend mobile content ads (AFMC -
|
321
|
+
# deprecated).
|
322
|
+
# Corresponds to the JSON property `contentAdsSettings`
|
323
|
+
# @return [Google::Apis::AdsensehostV4_1::AdUnit::ContentAdsSettings]
|
324
|
+
attr_accessor :content_ads_settings
|
325
|
+
|
326
|
+
# Custom style information specific to this ad unit.
|
327
|
+
# Corresponds to the JSON property `customStyle`
|
328
|
+
# @return [Google::Apis::AdsensehostV4_1::AdStyle]
|
329
|
+
attr_accessor :custom_style
|
330
|
+
|
331
|
+
# Unique identifier of this ad unit. This should be considered an opaque
|
332
|
+
# identifier; it is not safe to rely on it being in any particular format.
|
333
|
+
# Corresponds to the JSON property `id`
|
334
|
+
# @return [String]
|
335
|
+
attr_accessor :id
|
336
|
+
|
337
|
+
# Kind of resource this is, in this case adsensehost#adUnit.
|
338
|
+
# Corresponds to the JSON property `kind`
|
339
|
+
# @return [String]
|
340
|
+
attr_accessor :kind
|
341
|
+
|
342
|
+
# Settings specific to WAP mobile content ads (AFMC - deprecated).
|
343
|
+
# Corresponds to the JSON property `mobileContentAdsSettings`
|
344
|
+
# @return [Google::Apis::AdsensehostV4_1::AdUnit::MobileContentAdsSettings]
|
345
|
+
attr_accessor :mobile_content_ads_settings
|
346
|
+
|
347
|
+
# Name of this ad unit.
|
348
|
+
# Corresponds to the JSON property `name`
|
349
|
+
# @return [String]
|
350
|
+
attr_accessor :name
|
351
|
+
|
352
|
+
# Status of this ad unit. Possible values are:
|
353
|
+
# NEW: Indicates that the ad unit was created within the last seven days and
|
354
|
+
# does not yet have any activity associated with it.
|
355
|
+
# ACTIVE: Indicates that there has been activity on this ad unit in the last
|
356
|
+
# seven days.
|
357
|
+
# INACTIVE: Indicates that there has been no activity on this ad unit in the
|
358
|
+
# last seven days.
|
359
|
+
# Corresponds to the JSON property `status`
|
360
|
+
# @return [String]
|
361
|
+
attr_accessor :status
|
362
|
+
|
363
|
+
def initialize(**args)
|
364
|
+
update!(**args)
|
365
|
+
end
|
366
|
+
|
367
|
+
# Update properties of this object
|
368
|
+
def update!(**args)
|
369
|
+
@code = args[:code] if args.key?(:code)
|
370
|
+
@content_ads_settings = args[:content_ads_settings] if args.key?(:content_ads_settings)
|
371
|
+
@custom_style = args[:custom_style] if args.key?(:custom_style)
|
372
|
+
@id = args[:id] if args.key?(:id)
|
373
|
+
@kind = args[:kind] if args.key?(:kind)
|
374
|
+
@mobile_content_ads_settings = args[:mobile_content_ads_settings] if args.key?(:mobile_content_ads_settings)
|
375
|
+
@name = args[:name] if args.key?(:name)
|
376
|
+
@status = args[:status] if args.key?(:status)
|
377
|
+
end
|
378
|
+
|
379
|
+
# Settings specific to content ads (AFC) and highend mobile content ads (AFMC -
|
380
|
+
# deprecated).
|
381
|
+
class ContentAdsSettings
|
382
|
+
include Google::Apis::Core::Hashable
|
383
|
+
|
384
|
+
# The backup option to be used in instances where no ad is available.
|
385
|
+
# Corresponds to the JSON property `backupOption`
|
386
|
+
# @return [Google::Apis::AdsensehostV4_1::AdUnit::ContentAdsSettings::BackupOption]
|
387
|
+
attr_accessor :backup_option
|
388
|
+
|
389
|
+
# Size of this ad unit. Size values are in the form SIZE_`width`_`height`.
|
390
|
+
# Corresponds to the JSON property `size`
|
391
|
+
# @return [String]
|
392
|
+
attr_accessor :size
|
393
|
+
|
394
|
+
# Type of this ad unit. Possible values are TEXT, TEXT_IMAGE, IMAGE and LINK.
|
395
|
+
# Corresponds to the JSON property `type`
|
396
|
+
# @return [String]
|
397
|
+
attr_accessor :type
|
398
|
+
|
399
|
+
def initialize(**args)
|
400
|
+
update!(**args)
|
401
|
+
end
|
402
|
+
|
403
|
+
# Update properties of this object
|
404
|
+
def update!(**args)
|
405
|
+
@backup_option = args[:backup_option] if args.key?(:backup_option)
|
406
|
+
@size = args[:size] if args.key?(:size)
|
407
|
+
@type = args[:type] if args.key?(:type)
|
408
|
+
end
|
409
|
+
|
410
|
+
# The backup option to be used in instances where no ad is available.
|
411
|
+
class BackupOption
|
412
|
+
include Google::Apis::Core::Hashable
|
413
|
+
|
414
|
+
# Color to use when type is set to COLOR. These are represented as six
|
415
|
+
# hexadecimal characters, similar to HTML color codes, but without the leading
|
416
|
+
# hash.
|
417
|
+
# Corresponds to the JSON property `color`
|
418
|
+
# @return [String]
|
419
|
+
attr_accessor :color
|
420
|
+
|
421
|
+
# Type of the backup option. Possible values are BLANK, COLOR and URL.
|
422
|
+
# Corresponds to the JSON property `type`
|
423
|
+
# @return [String]
|
424
|
+
attr_accessor :type
|
425
|
+
|
426
|
+
# URL to use when type is set to URL.
|
427
|
+
# Corresponds to the JSON property `url`
|
428
|
+
# @return [String]
|
429
|
+
attr_accessor :url
|
430
|
+
|
431
|
+
def initialize(**args)
|
432
|
+
update!(**args)
|
433
|
+
end
|
434
|
+
|
435
|
+
# Update properties of this object
|
436
|
+
def update!(**args)
|
437
|
+
@color = args[:color] if args.key?(:color)
|
438
|
+
@type = args[:type] if args.key?(:type)
|
439
|
+
@url = args[:url] if args.key?(:url)
|
440
|
+
end
|
441
|
+
end
|
442
|
+
end
|
443
|
+
|
444
|
+
# Settings specific to WAP mobile content ads (AFMC - deprecated).
|
445
|
+
class MobileContentAdsSettings
|
446
|
+
include Google::Apis::Core::Hashable
|
447
|
+
|
448
|
+
# The markup language to use for this ad unit.
|
449
|
+
# Corresponds to the JSON property `markupLanguage`
|
450
|
+
# @return [String]
|
451
|
+
attr_accessor :markup_language
|
452
|
+
|
453
|
+
# The scripting language to use for this ad unit.
|
454
|
+
# Corresponds to the JSON property `scriptingLanguage`
|
455
|
+
# @return [String]
|
456
|
+
attr_accessor :scripting_language
|
457
|
+
|
458
|
+
# Size of this ad unit.
|
459
|
+
# Corresponds to the JSON property `size`
|
460
|
+
# @return [String]
|
461
|
+
attr_accessor :size
|
462
|
+
|
463
|
+
# Type of this ad unit.
|
464
|
+
# Corresponds to the JSON property `type`
|
465
|
+
# @return [String]
|
466
|
+
attr_accessor :type
|
467
|
+
|
468
|
+
def initialize(**args)
|
469
|
+
update!(**args)
|
470
|
+
end
|
471
|
+
|
472
|
+
# Update properties of this object
|
473
|
+
def update!(**args)
|
474
|
+
@markup_language = args[:markup_language] if args.key?(:markup_language)
|
475
|
+
@scripting_language = args[:scripting_language] if args.key?(:scripting_language)
|
476
|
+
@size = args[:size] if args.key?(:size)
|
477
|
+
@type = args[:type] if args.key?(:type)
|
478
|
+
end
|
479
|
+
end
|
480
|
+
end
|
481
|
+
|
482
|
+
#
|
483
|
+
class AdUnits
|
484
|
+
include Google::Apis::Core::Hashable
|
485
|
+
|
486
|
+
# ETag of this response for caching purposes.
|
487
|
+
# Corresponds to the JSON property `etag`
|
488
|
+
# @return [String]
|
489
|
+
attr_accessor :etag
|
490
|
+
|
491
|
+
# The ad units returned in this list response.
|
492
|
+
# Corresponds to the JSON property `items`
|
493
|
+
# @return [Array<Google::Apis::AdsensehostV4_1::AdUnit>]
|
494
|
+
attr_accessor :items
|
495
|
+
|
496
|
+
# Kind of list this is, in this case adsensehost#adUnits.
|
497
|
+
# Corresponds to the JSON property `kind`
|
498
|
+
# @return [String]
|
499
|
+
attr_accessor :kind
|
500
|
+
|
501
|
+
# Continuation token used to page through ad units. To retrieve the next page of
|
502
|
+
# results, set the next request's "pageToken" value to this.
|
503
|
+
# Corresponds to the JSON property `nextPageToken`
|
504
|
+
# @return [String]
|
505
|
+
attr_accessor :next_page_token
|
506
|
+
|
507
|
+
def initialize(**args)
|
508
|
+
update!(**args)
|
509
|
+
end
|
510
|
+
|
511
|
+
# Update properties of this object
|
512
|
+
def update!(**args)
|
513
|
+
@etag = args[:etag] if args.key?(:etag)
|
514
|
+
@items = args[:items] if args.key?(:items)
|
515
|
+
@kind = args[:kind] if args.key?(:kind)
|
516
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
517
|
+
end
|
518
|
+
end
|
519
|
+
|
520
|
+
#
|
521
|
+
class AssociationSession
|
522
|
+
include Google::Apis::Core::Hashable
|
523
|
+
|
524
|
+
# Hosted account id of the associated publisher after association. Present if
|
525
|
+
# status is ACCEPTED.
|
526
|
+
# Corresponds to the JSON property `accountId`
|
527
|
+
# @return [String]
|
528
|
+
attr_accessor :account_id
|
529
|
+
|
530
|
+
# Unique identifier of this association session.
|
531
|
+
# Corresponds to the JSON property `id`
|
532
|
+
# @return [String]
|
533
|
+
attr_accessor :id
|
534
|
+
|
535
|
+
# Kind of resource this is, in this case adsensehost#associationSession.
|
536
|
+
# Corresponds to the JSON property `kind`
|
537
|
+
# @return [String]
|
538
|
+
attr_accessor :kind
|
539
|
+
|
540
|
+
# The products to associate with the user. Options: AFC, AFG, AFV, AFS (
|
541
|
+
# deprecated), AFMC (deprecated)
|
542
|
+
# Corresponds to the JSON property `productCodes`
|
543
|
+
# @return [Array<String>]
|
544
|
+
attr_accessor :product_codes
|
545
|
+
|
546
|
+
# Redirect URL of this association session. Used to redirect users into the
|
547
|
+
# AdSense association flow.
|
548
|
+
# Corresponds to the JSON property `redirectUrl`
|
549
|
+
# @return [String]
|
550
|
+
attr_accessor :redirect_url
|
551
|
+
|
552
|
+
# Status of the completed association, available once the association callback
|
553
|
+
# token has been verified. One of ACCEPTED, REJECTED, or ERROR.
|
554
|
+
# Corresponds to the JSON property `status`
|
555
|
+
# @return [String]
|
556
|
+
attr_accessor :status
|
557
|
+
|
558
|
+
# The preferred locale of the user themselves when going through the AdSense
|
559
|
+
# association flow.
|
560
|
+
# Corresponds to the JSON property `userLocale`
|
561
|
+
# @return [String]
|
562
|
+
attr_accessor :user_locale
|
563
|
+
|
564
|
+
# The locale of the user's hosted website.
|
565
|
+
# Corresponds to the JSON property `websiteLocale`
|
566
|
+
# @return [String]
|
567
|
+
attr_accessor :website_locale
|
568
|
+
|
569
|
+
# The URL of the user's hosted website.
|
570
|
+
# Corresponds to the JSON property `websiteUrl`
|
571
|
+
# @return [String]
|
572
|
+
attr_accessor :website_url
|
573
|
+
|
574
|
+
def initialize(**args)
|
575
|
+
update!(**args)
|
576
|
+
end
|
577
|
+
|
578
|
+
# Update properties of this object
|
579
|
+
def update!(**args)
|
580
|
+
@account_id = args[:account_id] if args.key?(:account_id)
|
581
|
+
@id = args[:id] if args.key?(:id)
|
582
|
+
@kind = args[:kind] if args.key?(:kind)
|
583
|
+
@product_codes = args[:product_codes] if args.key?(:product_codes)
|
584
|
+
@redirect_url = args[:redirect_url] if args.key?(:redirect_url)
|
585
|
+
@status = args[:status] if args.key?(:status)
|
586
|
+
@user_locale = args[:user_locale] if args.key?(:user_locale)
|
587
|
+
@website_locale = args[:website_locale] if args.key?(:website_locale)
|
588
|
+
@website_url = args[:website_url] if args.key?(:website_url)
|
589
|
+
end
|
590
|
+
end
|
591
|
+
|
592
|
+
#
|
593
|
+
class CustomChannel
|
594
|
+
include Google::Apis::Core::Hashable
|
595
|
+
|
596
|
+
# Code of this custom channel, not necessarily unique across ad clients.
|
597
|
+
# Corresponds to the JSON property `code`
|
598
|
+
# @return [String]
|
599
|
+
attr_accessor :code
|
600
|
+
|
601
|
+
# Unique identifier of this custom channel. This should be considered an opaque
|
602
|
+
# identifier; it is not safe to rely on it being in any particular format.
|
603
|
+
# Corresponds to the JSON property `id`
|
604
|
+
# @return [String]
|
605
|
+
attr_accessor :id
|
606
|
+
|
607
|
+
# Kind of resource this is, in this case adsensehost#customChannel.
|
608
|
+
# Corresponds to the JSON property `kind`
|
609
|
+
# @return [String]
|
610
|
+
attr_accessor :kind
|
611
|
+
|
612
|
+
# Name of this custom channel.
|
613
|
+
# Corresponds to the JSON property `name`
|
614
|
+
# @return [String]
|
615
|
+
attr_accessor :name
|
616
|
+
|
617
|
+
def initialize(**args)
|
618
|
+
update!(**args)
|
619
|
+
end
|
620
|
+
|
621
|
+
# Update properties of this object
|
622
|
+
def update!(**args)
|
623
|
+
@code = args[:code] if args.key?(:code)
|
624
|
+
@id = args[:id] if args.key?(:id)
|
625
|
+
@kind = args[:kind] if args.key?(:kind)
|
626
|
+
@name = args[:name] if args.key?(:name)
|
627
|
+
end
|
628
|
+
end
|
629
|
+
|
630
|
+
#
|
631
|
+
class CustomChannels
|
632
|
+
include Google::Apis::Core::Hashable
|
633
|
+
|
634
|
+
# ETag of this response for caching purposes.
|
635
|
+
# Corresponds to the JSON property `etag`
|
636
|
+
# @return [String]
|
637
|
+
attr_accessor :etag
|
638
|
+
|
639
|
+
# The custom channels returned in this list response.
|
640
|
+
# Corresponds to the JSON property `items`
|
641
|
+
# @return [Array<Google::Apis::AdsensehostV4_1::CustomChannel>]
|
642
|
+
attr_accessor :items
|
643
|
+
|
644
|
+
# Kind of list this is, in this case adsensehost#customChannels.
|
645
|
+
# Corresponds to the JSON property `kind`
|
646
|
+
# @return [String]
|
647
|
+
attr_accessor :kind
|
648
|
+
|
649
|
+
# Continuation token used to page through custom channels. To retrieve the next
|
650
|
+
# page of results, set the next request's "pageToken" value to this.
|
651
|
+
# Corresponds to the JSON property `nextPageToken`
|
652
|
+
# @return [String]
|
653
|
+
attr_accessor :next_page_token
|
654
|
+
|
655
|
+
def initialize(**args)
|
656
|
+
update!(**args)
|
657
|
+
end
|
658
|
+
|
659
|
+
# Update properties of this object
|
660
|
+
def update!(**args)
|
661
|
+
@etag = args[:etag] if args.key?(:etag)
|
662
|
+
@items = args[:items] if args.key?(:items)
|
663
|
+
@kind = args[:kind] if args.key?(:kind)
|
664
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
665
|
+
end
|
666
|
+
end
|
667
|
+
|
668
|
+
#
|
669
|
+
class Report
|
670
|
+
include Google::Apis::Core::Hashable
|
671
|
+
|
672
|
+
# The averages of the report. This is the same length as any other row in the
|
673
|
+
# report; cells corresponding to dimension columns are empty.
|
674
|
+
# Corresponds to the JSON property `averages`
|
675
|
+
# @return [Array<String>]
|
676
|
+
attr_accessor :averages
|
677
|
+
|
678
|
+
# The header information of the columns requested in the report. This is a list
|
679
|
+
# of headers; one for each dimension in the request, followed by one for each
|
680
|
+
# metric in the request.
|
681
|
+
# Corresponds to the JSON property `headers`
|
682
|
+
# @return [Array<Google::Apis::AdsensehostV4_1::Report::Header>]
|
683
|
+
attr_accessor :headers
|
684
|
+
|
685
|
+
# Kind this is, in this case adsensehost#report.
|
686
|
+
# Corresponds to the JSON property `kind`
|
687
|
+
# @return [String]
|
688
|
+
attr_accessor :kind
|
689
|
+
|
690
|
+
# The output rows of the report. Each row is a list of cells; one for each
|
691
|
+
# dimension in the request, followed by one for each metric in the request. The
|
692
|
+
# dimension cells contain strings, and the metric cells contain numbers.
|
693
|
+
# Corresponds to the JSON property `rows`
|
694
|
+
# @return [Array<Array<String>>]
|
695
|
+
attr_accessor :rows
|
696
|
+
|
697
|
+
# The total number of rows matched by the report request. Fewer rows may be
|
698
|
+
# returned in the response due to being limited by the row count requested or
|
699
|
+
# the report row limit.
|
700
|
+
# Corresponds to the JSON property `totalMatchedRows`
|
701
|
+
# @return [Fixnum]
|
702
|
+
attr_accessor :total_matched_rows
|
703
|
+
|
704
|
+
# The totals of the report. This is the same length as any other row in the
|
705
|
+
# report; cells corresponding to dimension columns are empty.
|
706
|
+
# Corresponds to the JSON property `totals`
|
707
|
+
# @return [Array<String>]
|
708
|
+
attr_accessor :totals
|
709
|
+
|
710
|
+
# Any warnings associated with generation of the report.
|
711
|
+
# Corresponds to the JSON property `warnings`
|
712
|
+
# @return [Array<String>]
|
713
|
+
attr_accessor :warnings
|
714
|
+
|
715
|
+
def initialize(**args)
|
716
|
+
update!(**args)
|
717
|
+
end
|
718
|
+
|
719
|
+
# Update properties of this object
|
720
|
+
def update!(**args)
|
721
|
+
@averages = args[:averages] if args.key?(:averages)
|
722
|
+
@headers = args[:headers] if args.key?(:headers)
|
723
|
+
@kind = args[:kind] if args.key?(:kind)
|
724
|
+
@rows = args[:rows] if args.key?(:rows)
|
725
|
+
@total_matched_rows = args[:total_matched_rows] if args.key?(:total_matched_rows)
|
726
|
+
@totals = args[:totals] if args.key?(:totals)
|
727
|
+
@warnings = args[:warnings] if args.key?(:warnings)
|
728
|
+
end
|
729
|
+
|
730
|
+
#
|
731
|
+
class Header
|
732
|
+
include Google::Apis::Core::Hashable
|
733
|
+
|
734
|
+
# The currency of this column. Only present if the header type is
|
735
|
+
# METRIC_CURRENCY.
|
736
|
+
# Corresponds to the JSON property `currency`
|
737
|
+
# @return [String]
|
738
|
+
attr_accessor :currency
|
739
|
+
|
740
|
+
# The name of the header.
|
741
|
+
# Corresponds to the JSON property `name`
|
742
|
+
# @return [String]
|
743
|
+
attr_accessor :name
|
744
|
+
|
745
|
+
# The type of the header; one of DIMENSION, METRIC_TALLY, METRIC_RATIO, or
|
746
|
+
# METRIC_CURRENCY.
|
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
|
+
@currency = args[:currency] if args.key?(:currency)
|
758
|
+
@name = args[:name] if args.key?(:name)
|
759
|
+
@type = args[:type] if args.key?(:type)
|
760
|
+
end
|
761
|
+
end
|
762
|
+
end
|
763
|
+
|
764
|
+
#
|
765
|
+
class UrlChannel
|
766
|
+
include Google::Apis::Core::Hashable
|
767
|
+
|
768
|
+
# Unique identifier of this URL channel. This should be considered an opaque
|
769
|
+
# identifier; it is not safe to rely on it being in any particular format.
|
770
|
+
# Corresponds to the JSON property `id`
|
771
|
+
# @return [String]
|
772
|
+
attr_accessor :id
|
773
|
+
|
774
|
+
# Kind of resource this is, in this case adsensehost#urlChannel.
|
775
|
+
# Corresponds to the JSON property `kind`
|
776
|
+
# @return [String]
|
777
|
+
attr_accessor :kind
|
778
|
+
|
779
|
+
# URL Pattern of this URL channel. Does not include "http://" or "https://".
|
780
|
+
# Example: www.example.com/home
|
781
|
+
# Corresponds to the JSON property `urlPattern`
|
782
|
+
# @return [String]
|
783
|
+
attr_accessor :url_pattern
|
784
|
+
|
785
|
+
def initialize(**args)
|
786
|
+
update!(**args)
|
787
|
+
end
|
788
|
+
|
789
|
+
# Update properties of this object
|
790
|
+
def update!(**args)
|
791
|
+
@id = args[:id] if args.key?(:id)
|
792
|
+
@kind = args[:kind] if args.key?(:kind)
|
793
|
+
@url_pattern = args[:url_pattern] if args.key?(:url_pattern)
|
794
|
+
end
|
795
|
+
end
|
796
|
+
|
797
|
+
#
|
798
|
+
class UrlChannels
|
799
|
+
include Google::Apis::Core::Hashable
|
800
|
+
|
801
|
+
# ETag of this response for caching purposes.
|
802
|
+
# Corresponds to the JSON property `etag`
|
803
|
+
# @return [String]
|
804
|
+
attr_accessor :etag
|
805
|
+
|
806
|
+
# The URL channels returned in this list response.
|
807
|
+
# Corresponds to the JSON property `items`
|
808
|
+
# @return [Array<Google::Apis::AdsensehostV4_1::UrlChannel>]
|
809
|
+
attr_accessor :items
|
810
|
+
|
811
|
+
# Kind of list this is, in this case adsensehost#urlChannels.
|
812
|
+
# Corresponds to the JSON property `kind`
|
813
|
+
# @return [String]
|
814
|
+
attr_accessor :kind
|
815
|
+
|
816
|
+
# Continuation token used to page through URL channels. To retrieve the next
|
817
|
+
# page of results, set the next request's "pageToken" value to this.
|
818
|
+
# Corresponds to the JSON property `nextPageToken`
|
819
|
+
# @return [String]
|
820
|
+
attr_accessor :next_page_token
|
821
|
+
|
822
|
+
def initialize(**args)
|
823
|
+
update!(**args)
|
824
|
+
end
|
825
|
+
|
826
|
+
# Update properties of this object
|
827
|
+
def update!(**args)
|
828
|
+
@etag = args[:etag] if args.key?(:etag)
|
829
|
+
@items = args[:items] if args.key?(:items)
|
830
|
+
@kind = args[:kind] if args.key?(:kind)
|
831
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
832
|
+
end
|
833
|
+
end
|
834
|
+
end
|
835
|
+
end
|
836
|
+
end
|