google-apis-doubleclickbidmanager_v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 3bb79112f9d05e8be95159e3376d21340c30d56376192fd975e06b12aeb7045e
4
+ data.tar.gz: f6967626c5ea8c33daaa661b09b2341beb0a99ff4e88a7b9ef50d68a04ce459a
5
+ SHA512:
6
+ metadata.gz: 84b844a7c587367f2a7f7df956f9ca35dff10a87aa5e5aff0c6fb22f3a4b52044a6c6cbdac1faa6680b427c3dfcdc5b645bda845ab6561bbf925ba24497cca57
7
+ data.tar.gz: 82e15a52950279a26c17b5dff5bea040c44a291547b9087ad7d67506ddd97d1e3e7308a8108398522c5f57fe517e237aa6f56ea15ecb85d7987a764e4a59545d
@@ -0,0 +1,13 @@
1
+ --hide-void-return
2
+ --no-private
3
+ --verbose
4
+ --title=google-apis-doubleclickbidmanager_v1
5
+ --markup-provider=redcarpet
6
+ --markup=markdown
7
+ --main OVERVIEW.md
8
+ lib/google/apis/doubleclickbidmanager_v1/*.rb
9
+ lib/google/apis/doubleclickbidmanager_v1.rb
10
+ -
11
+ OVERVIEW.md
12
+ CHANGELOG.md
13
+ LICENSE.md
@@ -0,0 +1,7 @@
1
+ # Release history for google-apis-doubleclickbidmanager_v1
2
+
3
+ ### v0.1.0 (2021-01-07)
4
+
5
+ * Regenerated using generator version 0.1.1
6
+ * Regenerated from discovery document revision 20201016
7
+
@@ -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.
@@ -0,0 +1,96 @@
1
+ # Simple REST client for version V1 of the DoubleClick Bid Manager API
2
+
3
+ This is a simple client library for version V1 of the DoubleClick Bid Manager 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/doubleclickbidmanager.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-doubleclickbidmanager_v1', '~> 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-doubleclickbidmanager_v1
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/doubleclickbidmanager_v1"
49
+
50
+ # Create a client object
51
+ client = Google::Apis::DoubleclickbidmanagerV1::DoubleClickBidManagerService.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 Doubleclickbidmanager service in particular.)
67
+
68
+ For reference information on specific calls in the DoubleClick Bid Manager API, see the {Google::Apis::DoubleclickbidmanagerV1::DoubleClickBidManagerService 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-doubleclickbidmanager_v1`, 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/bid-manager/) 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/doubleclickbidmanager_v1"
@@ -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/doubleclickbidmanager_v1/service.rb'
16
+ require 'google/apis/doubleclickbidmanager_v1/classes.rb'
17
+ require 'google/apis/doubleclickbidmanager_v1/representations.rb'
18
+ require 'google/apis/doubleclickbidmanager_v1/gem_version.rb'
19
+
20
+ module Google
21
+ module Apis
22
+ # DoubleClick Bid Manager API
23
+ #
24
+ # DoubleClick Bid Manager API allows users to manage and create campaigns and
25
+ # reports.
26
+ #
27
+ # @see https://developers.google.com/bid-manager/
28
+ module DoubleclickbidmanagerV1
29
+ # Version of the DoubleClick Bid Manager API this client connects to.
30
+ # This is NOT the gem version.
31
+ VERSION = 'V1'
32
+
33
+ # View and manage your reports in DoubleClick Bid Manager
34
+ AUTH_DOUBLECLICKBIDMANAGER = 'https://www.googleapis.com/auth/doubleclickbidmanager'
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,808 @@
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 DoubleclickbidmanagerV1
24
+
25
+ # Request to fetch stored line items.
26
+ class DownloadLineItemsRequest
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # File specification (column names, types, order) in which the line items will
30
+ # be returned. Default to EWF.
31
+ # Corresponds to the JSON property `fileSpec`
32
+ # @return [String]
33
+ attr_accessor :file_spec
34
+
35
+ # Ids of the specified filter type used to filter line items to fetch. If
36
+ # omitted, all the line items will be returned.
37
+ # Corresponds to the JSON property `filterIds`
38
+ # @return [Array<Fixnum>]
39
+ attr_accessor :filter_ids
40
+
41
+ # Filter type used to filter line items to fetch.
42
+ # Corresponds to the JSON property `filterType`
43
+ # @return [String]
44
+ attr_accessor :filter_type
45
+
46
+ # Format in which the line items will be returned. Default to CSV.
47
+ # Corresponds to the JSON property `format`
48
+ # @return [String]
49
+ attr_accessor :format
50
+
51
+ def initialize(**args)
52
+ update!(**args)
53
+ end
54
+
55
+ # Update properties of this object
56
+ def update!(**args)
57
+ @file_spec = args[:file_spec] if args.key?(:file_spec)
58
+ @filter_ids = args[:filter_ids] if args.key?(:filter_ids)
59
+ @filter_type = args[:filter_type] if args.key?(:filter_type)
60
+ @format = args[:format] if args.key?(:format)
61
+ end
62
+ end
63
+
64
+ # Download line items response.
65
+ class DownloadLineItemsResponse
66
+ include Google::Apis::Core::Hashable
67
+
68
+ # Retrieved line items in CSV format. For more information about file formats,
69
+ # see Entity Write File Format.
70
+ # Corresponds to the JSON property `lineItems`
71
+ # @return [String]
72
+ attr_accessor :line_items
73
+
74
+ def initialize(**args)
75
+ update!(**args)
76
+ end
77
+
78
+ # Update properties of this object
79
+ def update!(**args)
80
+ @line_items = args[:line_items] if args.key?(:line_items)
81
+ end
82
+ end
83
+
84
+ # Request to fetch stored inventory sources, campaigns, insertion orders, line
85
+ # items, YouTube ad groups and ads.
86
+ class DownloadRequest
87
+ include Google::Apis::Core::Hashable
88
+
89
+ # File types that will be returned. If INVENTORY_SOURCE is requested, no other
90
+ # file types may be requested. Acceptable values are: - "AD" - "AD_GROUP" - "
91
+ # CAMPAIGN" - "INSERTION_ORDER" - "INVENTORY_SOURCE" - "LINE_ITEM"
92
+ # Corresponds to the JSON property `fileTypes`
93
+ # @return [Array<String>]
94
+ attr_accessor :file_types
95
+
96
+ # The IDs of the specified filter type. This is used to filter entities to fetch.
97
+ # At least one ID must be specified.
98
+ # Corresponds to the JSON property `filterIds`
99
+ # @return [Array<Fixnum>]
100
+ attr_accessor :filter_ids
101
+
102
+ # Filter type used to filter entities to fetch. PARTNER_ID and
103
+ # INVENTORY_SOURCE_ID may only be used when downloading inventory sources.
104
+ # Corresponds to the JSON property `filterType`
105
+ # @return [String]
106
+ attr_accessor :filter_type
107
+
108
+ # SDF Version (column names, types, order) in which the entities will be
109
+ # returned. Default to 5.
110
+ # Corresponds to the JSON property `version`
111
+ # @return [String]
112
+ attr_accessor :version
113
+
114
+ def initialize(**args)
115
+ update!(**args)
116
+ end
117
+
118
+ # Update properties of this object
119
+ def update!(**args)
120
+ @file_types = args[:file_types] if args.key?(:file_types)
121
+ @filter_ids = args[:filter_ids] if args.key?(:filter_ids)
122
+ @filter_type = args[:filter_type] if args.key?(:filter_type)
123
+ @version = args[:version] if args.key?(:version)
124
+ end
125
+ end
126
+
127
+ # Download response.
128
+ class DownloadResponse
129
+ include Google::Apis::Core::Hashable
130
+
131
+ # Retrieved ad groups in SDF format.
132
+ # Corresponds to the JSON property `adGroups`
133
+ # @return [String]
134
+ attr_accessor :ad_groups
135
+
136
+ # Retrieved ads in SDF format.
137
+ # Corresponds to the JSON property `ads`
138
+ # @return [String]
139
+ attr_accessor :ads
140
+
141
+ # Retrieved campaigns in SDF format.
142
+ # Corresponds to the JSON property `campaigns`
143
+ # @return [String]
144
+ attr_accessor :campaigns
145
+
146
+ # Retrieved insertion orders in SDF format.
147
+ # Corresponds to the JSON property `insertionOrders`
148
+ # @return [String]
149
+ attr_accessor :insertion_orders
150
+
151
+ #
152
+ # Corresponds to the JSON property `inventorySources`
153
+ # @return [String]
154
+ attr_accessor :inventory_sources
155
+
156
+ # Retrieved line items in SDF format.
157
+ # Corresponds to the JSON property `lineItems`
158
+ # @return [String]
159
+ attr_accessor :line_items
160
+
161
+ def initialize(**args)
162
+ update!(**args)
163
+ end
164
+
165
+ # Update properties of this object
166
+ def update!(**args)
167
+ @ad_groups = args[:ad_groups] if args.key?(:ad_groups)
168
+ @ads = args[:ads] if args.key?(:ads)
169
+ @campaigns = args[:campaigns] if args.key?(:campaigns)
170
+ @insertion_orders = args[:insertion_orders] if args.key?(:insertion_orders)
171
+ @inventory_sources = args[:inventory_sources] if args.key?(:inventory_sources)
172
+ @line_items = args[:line_items] if args.key?(:line_items)
173
+ end
174
+ end
175
+
176
+ # Filter used to match traffic data in your report.
177
+ class FilterPair
178
+ include Google::Apis::Core::Hashable
179
+
180
+ # Filter type.
181
+ # Corresponds to the JSON property `type`
182
+ # @return [String]
183
+ attr_accessor :type
184
+
185
+ # Filter value.
186
+ # Corresponds to the JSON property `value`
187
+ # @return [String]
188
+ attr_accessor :value
189
+
190
+ def initialize(**args)
191
+ update!(**args)
192
+ end
193
+
194
+ # Update properties of this object
195
+ def update!(**args)
196
+ @type = args[:type] if args.key?(:type)
197
+ @value = args[:value] if args.key?(:value)
198
+ end
199
+ end
200
+
201
+ # List queries response.
202
+ class ListQueriesResponse
203
+ include Google::Apis::Core::Hashable
204
+
205
+ # Identifies what kind of resource this is. Value: the fixed string "
206
+ # doubleclickbidmanager#listQueriesResponse".
207
+ # Corresponds to the JSON property `kind`
208
+ # @return [String]
209
+ attr_accessor :kind
210
+
211
+ # Retrieved queries.
212
+ # Corresponds to the JSON property `queries`
213
+ # @return [Array<Google::Apis::DoubleclickbidmanagerV1::Query>]
214
+ attr_accessor :queries
215
+
216
+ def initialize(**args)
217
+ update!(**args)
218
+ end
219
+
220
+ # Update properties of this object
221
+ def update!(**args)
222
+ @kind = args[:kind] if args.key?(:kind)
223
+ @queries = args[:queries] if args.key?(:queries)
224
+ end
225
+ end
226
+
227
+ # List reports response.
228
+ class ListReportsResponse
229
+ include Google::Apis::Core::Hashable
230
+
231
+ # Identifies what kind of resource this is. Value: the fixed string "
232
+ # doubleclickbidmanager#listReportsResponse".
233
+ # Corresponds to the JSON property `kind`
234
+ # @return [String]
235
+ attr_accessor :kind
236
+
237
+ # Retrieved reports.
238
+ # Corresponds to the JSON property `reports`
239
+ # @return [Array<Google::Apis::DoubleclickbidmanagerV1::Report>]
240
+ attr_accessor :reports
241
+
242
+ def initialize(**args)
243
+ update!(**args)
244
+ end
245
+
246
+ # Update properties of this object
247
+ def update!(**args)
248
+ @kind = args[:kind] if args.key?(:kind)
249
+ @reports = args[:reports] if args.key?(:reports)
250
+ end
251
+ end
252
+
253
+ # Parameters of a query or report.
254
+ class Parameters
255
+ include Google::Apis::Core::Hashable
256
+
257
+ # Filters used to match traffic data in your report.
258
+ # Corresponds to the JSON property `filters`
259
+ # @return [Array<Google::Apis::DoubleclickbidmanagerV1::FilterPair>]
260
+ attr_accessor :filters
261
+
262
+ # Data is grouped by the filters listed in this field.
263
+ # Corresponds to the JSON property `groupBys`
264
+ # @return [Array<String>]
265
+ attr_accessor :group_bys
266
+
267
+ # Deprecated. This field is no longer in use.
268
+ # Corresponds to the JSON property `includeInviteData`
269
+ # @return [Boolean]
270
+ attr_accessor :include_invite_data
271
+ alias_method :include_invite_data?, :include_invite_data
272
+
273
+ # Metrics to include as columns in your report.
274
+ # Corresponds to the JSON property `metrics`
275
+ # @return [Array<String>]
276
+ attr_accessor :metrics
277
+
278
+ # Report type.
279
+ # Corresponds to the JSON property `type`
280
+ # @return [String]
281
+ attr_accessor :type
282
+
283
+ def initialize(**args)
284
+ update!(**args)
285
+ end
286
+
287
+ # Update properties of this object
288
+ def update!(**args)
289
+ @filters = args[:filters] if args.key?(:filters)
290
+ @group_bys = args[:group_bys] if args.key?(:group_bys)
291
+ @include_invite_data = args[:include_invite_data] if args.key?(:include_invite_data)
292
+ @metrics = args[:metrics] if args.key?(:metrics)
293
+ @type = args[:type] if args.key?(:type)
294
+ end
295
+ end
296
+
297
+ # Represents a query.
298
+ class Query
299
+ include Google::Apis::Core::Hashable
300
+
301
+ # Identifies what kind of resource this is. Value: the fixed string "
302
+ # doubleclickbidmanager#query".
303
+ # Corresponds to the JSON property `kind`
304
+ # @return [String]
305
+ attr_accessor :kind
306
+
307
+ # Query metadata.
308
+ # Corresponds to the JSON property `metadata`
309
+ # @return [Google::Apis::DoubleclickbidmanagerV1::QueryMetadata]
310
+ attr_accessor :metadata
311
+
312
+ # Parameters of a query or report.
313
+ # Corresponds to the JSON property `params`
314
+ # @return [Google::Apis::DoubleclickbidmanagerV1::Parameters]
315
+ attr_accessor :params
316
+
317
+ # Query ID.
318
+ # Corresponds to the JSON property `queryId`
319
+ # @return [Fixnum]
320
+ attr_accessor :query_id
321
+
322
+ # The ending time for the data that is shown in the report. Note,
323
+ # reportDataEndTimeMs is required if metadata.dataRange is CUSTOM_DATES and
324
+ # ignored otherwise.
325
+ # Corresponds to the JSON property `reportDataEndTimeMs`
326
+ # @return [Fixnum]
327
+ attr_accessor :report_data_end_time_ms
328
+
329
+ # The starting time for the data that is shown in the report. Note,
330
+ # reportDataStartTimeMs is required if metadata.dataRange is CUSTOM_DATES and
331
+ # ignored otherwise.
332
+ # Corresponds to the JSON property `reportDataStartTimeMs`
333
+ # @return [Fixnum]
334
+ attr_accessor :report_data_start_time_ms
335
+
336
+ # Information on how frequently and when to run a query.
337
+ # Corresponds to the JSON property `schedule`
338
+ # @return [Google::Apis::DoubleclickbidmanagerV1::QuerySchedule]
339
+ attr_accessor :schedule
340
+
341
+ # Canonical timezone code for report data time. Defaults to America/New_York.
342
+ # Corresponds to the JSON property `timezoneCode`
343
+ # @return [String]
344
+ attr_accessor :timezone_code
345
+
346
+ def initialize(**args)
347
+ update!(**args)
348
+ end
349
+
350
+ # Update properties of this object
351
+ def update!(**args)
352
+ @kind = args[:kind] if args.key?(:kind)
353
+ @metadata = args[:metadata] if args.key?(:metadata)
354
+ @params = args[:params] if args.key?(:params)
355
+ @query_id = args[:query_id] if args.key?(:query_id)
356
+ @report_data_end_time_ms = args[:report_data_end_time_ms] if args.key?(:report_data_end_time_ms)
357
+ @report_data_start_time_ms = args[:report_data_start_time_ms] if args.key?(:report_data_start_time_ms)
358
+ @schedule = args[:schedule] if args.key?(:schedule)
359
+ @timezone_code = args[:timezone_code] if args.key?(:timezone_code)
360
+ end
361
+ end
362
+
363
+ # Query metadata.
364
+ class QueryMetadata
365
+ include Google::Apis::Core::Hashable
366
+
367
+ # Range of report data.
368
+ # Corresponds to the JSON property `dataRange`
369
+ # @return [String]
370
+ attr_accessor :data_range
371
+
372
+ # Format of the generated report.
373
+ # Corresponds to the JSON property `format`
374
+ # @return [String]
375
+ attr_accessor :format
376
+
377
+ # The path to the location in Google Cloud Storage where the latest report is
378
+ # stored.
379
+ # Corresponds to the JSON property `googleCloudStoragePathForLatestReport`
380
+ # @return [String]
381
+ attr_accessor :google_cloud_storage_path_for_latest_report
382
+
383
+ # The path in Google Drive for the latest report.
384
+ # Corresponds to the JSON property `googleDrivePathForLatestReport`
385
+ # @return [String]
386
+ attr_accessor :google_drive_path_for_latest_report
387
+
388
+ # The time when the latest report started to run.
389
+ # Corresponds to the JSON property `latestReportRunTimeMs`
390
+ # @return [Fixnum]
391
+ attr_accessor :latest_report_run_time_ms
392
+
393
+ # Locale of the generated reports. Valid values are cs CZECH de GERMAN en
394
+ # ENGLISH es SPANISH fr FRENCH it ITALIAN ja JAPANESE ko KOREAN pl POLISH pt-BR
395
+ # BRAZILIAN_PORTUGUESE ru RUSSIAN tr TURKISH uk UKRAINIAN zh-CN CHINA_CHINESE zh-
396
+ # TW TAIWAN_CHINESE An locale string not in the list above will generate reports
397
+ # in English.
398
+ # Corresponds to the JSON property `locale`
399
+ # @return [String]
400
+ attr_accessor :locale
401
+
402
+ # Number of reports that have been generated for the query.
403
+ # Corresponds to the JSON property `reportCount`
404
+ # @return [Fixnum]
405
+ attr_accessor :report_count
406
+
407
+ # Whether the latest report is currently running.
408
+ # Corresponds to the JSON property `running`
409
+ # @return [Boolean]
410
+ attr_accessor :running
411
+ alias_method :running?, :running
412
+
413
+ # Whether to send an email notification when a report is ready. Default to false.
414
+ # Corresponds to the JSON property `sendNotification`
415
+ # @return [Boolean]
416
+ attr_accessor :send_notification
417
+ alias_method :send_notification?, :send_notification
418
+
419
+ # List of email addresses which are sent email notifications when the report is
420
+ # finished. Separate from sendNotification.
421
+ # Corresponds to the JSON property `shareEmailAddress`
422
+ # @return [Array<String>]
423
+ attr_accessor :share_email_address
424
+
425
+ # Query title. It is used to name the reports generated from this query.
426
+ # Corresponds to the JSON property `title`
427
+ # @return [String]
428
+ attr_accessor :title
429
+
430
+ def initialize(**args)
431
+ update!(**args)
432
+ end
433
+
434
+ # Update properties of this object
435
+ def update!(**args)
436
+ @data_range = args[:data_range] if args.key?(:data_range)
437
+ @format = args[:format] if args.key?(:format)
438
+ @google_cloud_storage_path_for_latest_report = args[:google_cloud_storage_path_for_latest_report] if args.key?(:google_cloud_storage_path_for_latest_report)
439
+ @google_drive_path_for_latest_report = args[:google_drive_path_for_latest_report] if args.key?(:google_drive_path_for_latest_report)
440
+ @latest_report_run_time_ms = args[:latest_report_run_time_ms] if args.key?(:latest_report_run_time_ms)
441
+ @locale = args[:locale] if args.key?(:locale)
442
+ @report_count = args[:report_count] if args.key?(:report_count)
443
+ @running = args[:running] if args.key?(:running)
444
+ @send_notification = args[:send_notification] if args.key?(:send_notification)
445
+ @share_email_address = args[:share_email_address] if args.key?(:share_email_address)
446
+ @title = args[:title] if args.key?(:title)
447
+ end
448
+ end
449
+
450
+ # Information on how frequently and when to run a query.
451
+ class QuerySchedule
452
+ include Google::Apis::Core::Hashable
453
+
454
+ # Datetime to periodically run the query until.
455
+ # Corresponds to the JSON property `endTimeMs`
456
+ # @return [Fixnum]
457
+ attr_accessor :end_time_ms
458
+
459
+ # How often the query is run.
460
+ # Corresponds to the JSON property `frequency`
461
+ # @return [String]
462
+ attr_accessor :frequency
463
+
464
+ # Time of day at which a new report will be generated, represented as minutes
465
+ # past midnight. Range is 0 to 1439. Only applies to scheduled reports.
466
+ # Corresponds to the JSON property `nextRunMinuteOfDay`
467
+ # @return [Fixnum]
468
+ attr_accessor :next_run_minute_of_day
469
+
470
+ # Canonical timezone code for report generation time. Defaults to America/
471
+ # New_York.
472
+ # Corresponds to the JSON property `nextRunTimezoneCode`
473
+ # @return [String]
474
+ attr_accessor :next_run_timezone_code
475
+
476
+ def initialize(**args)
477
+ update!(**args)
478
+ end
479
+
480
+ # Update properties of this object
481
+ def update!(**args)
482
+ @end_time_ms = args[:end_time_ms] if args.key?(:end_time_ms)
483
+ @frequency = args[:frequency] if args.key?(:frequency)
484
+ @next_run_minute_of_day = args[:next_run_minute_of_day] if args.key?(:next_run_minute_of_day)
485
+ @next_run_timezone_code = args[:next_run_timezone_code] if args.key?(:next_run_timezone_code)
486
+ end
487
+ end
488
+
489
+ # Represents a report.
490
+ class Report
491
+ include Google::Apis::Core::Hashable
492
+
493
+ # Key used to identify a report.
494
+ # Corresponds to the JSON property `key`
495
+ # @return [Google::Apis::DoubleclickbidmanagerV1::ReportKey]
496
+ attr_accessor :key
497
+
498
+ # Report metadata.
499
+ # Corresponds to the JSON property `metadata`
500
+ # @return [Google::Apis::DoubleclickbidmanagerV1::ReportMetadata]
501
+ attr_accessor :metadata
502
+
503
+ # Parameters of a query or report.
504
+ # Corresponds to the JSON property `params`
505
+ # @return [Google::Apis::DoubleclickbidmanagerV1::Parameters]
506
+ attr_accessor :params
507
+
508
+ def initialize(**args)
509
+ update!(**args)
510
+ end
511
+
512
+ # Update properties of this object
513
+ def update!(**args)
514
+ @key = args[:key] if args.key?(:key)
515
+ @metadata = args[:metadata] if args.key?(:metadata)
516
+ @params = args[:params] if args.key?(:params)
517
+ end
518
+ end
519
+
520
+ # An explanation of a report failure.
521
+ class ReportFailure
522
+ include Google::Apis::Core::Hashable
523
+
524
+ # Error code that shows why the report was not created.
525
+ # Corresponds to the JSON property `errorCode`
526
+ # @return [String]
527
+ attr_accessor :error_code
528
+
529
+ def initialize(**args)
530
+ update!(**args)
531
+ end
532
+
533
+ # Update properties of this object
534
+ def update!(**args)
535
+ @error_code = args[:error_code] if args.key?(:error_code)
536
+ end
537
+ end
538
+
539
+ # Key used to identify a report.
540
+ class ReportKey
541
+ include Google::Apis::Core::Hashable
542
+
543
+ # Query ID.
544
+ # Corresponds to the JSON property `queryId`
545
+ # @return [Fixnum]
546
+ attr_accessor :query_id
547
+
548
+ # Report ID.
549
+ # Corresponds to the JSON property `reportId`
550
+ # @return [Fixnum]
551
+ attr_accessor :report_id
552
+
553
+ def initialize(**args)
554
+ update!(**args)
555
+ end
556
+
557
+ # Update properties of this object
558
+ def update!(**args)
559
+ @query_id = args[:query_id] if args.key?(:query_id)
560
+ @report_id = args[:report_id] if args.key?(:report_id)
561
+ end
562
+ end
563
+
564
+ # Report metadata.
565
+ class ReportMetadata
566
+ include Google::Apis::Core::Hashable
567
+
568
+ # The path to the location in Google Cloud Storage where the report is stored.
569
+ # Corresponds to the JSON property `googleCloudStoragePath`
570
+ # @return [String]
571
+ attr_accessor :google_cloud_storage_path
572
+
573
+ # The ending time for the data that is shown in the report.
574
+ # Corresponds to the JSON property `reportDataEndTimeMs`
575
+ # @return [Fixnum]
576
+ attr_accessor :report_data_end_time_ms
577
+
578
+ # The starting time for the data that is shown in the report.
579
+ # Corresponds to the JSON property `reportDataStartTimeMs`
580
+ # @return [Fixnum]
581
+ attr_accessor :report_data_start_time_ms
582
+
583
+ # Report status.
584
+ # Corresponds to the JSON property `status`
585
+ # @return [Google::Apis::DoubleclickbidmanagerV1::ReportStatus]
586
+ attr_accessor :status
587
+
588
+ def initialize(**args)
589
+ update!(**args)
590
+ end
591
+
592
+ # Update properties of this object
593
+ def update!(**args)
594
+ @google_cloud_storage_path = args[:google_cloud_storage_path] if args.key?(:google_cloud_storage_path)
595
+ @report_data_end_time_ms = args[:report_data_end_time_ms] if args.key?(:report_data_end_time_ms)
596
+ @report_data_start_time_ms = args[:report_data_start_time_ms] if args.key?(:report_data_start_time_ms)
597
+ @status = args[:status] if args.key?(:status)
598
+ end
599
+ end
600
+
601
+ # Report status.
602
+ class ReportStatus
603
+ include Google::Apis::Core::Hashable
604
+
605
+ # An explanation of a report failure.
606
+ # Corresponds to the JSON property `failure`
607
+ # @return [Google::Apis::DoubleclickbidmanagerV1::ReportFailure]
608
+ attr_accessor :failure
609
+
610
+ # The time when this report either completed successfully or failed.
611
+ # Corresponds to the JSON property `finishTimeMs`
612
+ # @return [Fixnum]
613
+ attr_accessor :finish_time_ms
614
+
615
+ # The file type of the report.
616
+ # Corresponds to the JSON property `format`
617
+ # @return [String]
618
+ attr_accessor :format
619
+
620
+ # The state of the report.
621
+ # Corresponds to the JSON property `state`
622
+ # @return [String]
623
+ attr_accessor :state
624
+
625
+ def initialize(**args)
626
+ update!(**args)
627
+ end
628
+
629
+ # Update properties of this object
630
+ def update!(**args)
631
+ @failure = args[:failure] if args.key?(:failure)
632
+ @finish_time_ms = args[:finish_time_ms] if args.key?(:finish_time_ms)
633
+ @format = args[:format] if args.key?(:format)
634
+ @state = args[:state] if args.key?(:state)
635
+ end
636
+ end
637
+
638
+ # Represents the upload status of a row in the request.
639
+ class RowStatus
640
+ include Google::Apis::Core::Hashable
641
+
642
+ # Whether the stored entity is changed as a result of upload.
643
+ # Corresponds to the JSON property `changed`
644
+ # @return [Boolean]
645
+ attr_accessor :changed
646
+ alias_method :changed?, :changed
647
+
648
+ # Entity Id.
649
+ # Corresponds to the JSON property `entityId`
650
+ # @return [Fixnum]
651
+ attr_accessor :entity_id
652
+
653
+ # Entity name.
654
+ # Corresponds to the JSON property `entityName`
655
+ # @return [String]
656
+ attr_accessor :entity_name
657
+
658
+ # Reasons why the entity can't be uploaded.
659
+ # Corresponds to the JSON property `errors`
660
+ # @return [Array<String>]
661
+ attr_accessor :errors
662
+
663
+ # Whether the entity is persisted.
664
+ # Corresponds to the JSON property `persisted`
665
+ # @return [Boolean]
666
+ attr_accessor :persisted
667
+ alias_method :persisted?, :persisted
668
+
669
+ # Row number.
670
+ # Corresponds to the JSON property `rowNumber`
671
+ # @return [Fixnum]
672
+ attr_accessor :row_number
673
+
674
+ def initialize(**args)
675
+ update!(**args)
676
+ end
677
+
678
+ # Update properties of this object
679
+ def update!(**args)
680
+ @changed = args[:changed] if args.key?(:changed)
681
+ @entity_id = args[:entity_id] if args.key?(:entity_id)
682
+ @entity_name = args[:entity_name] if args.key?(:entity_name)
683
+ @errors = args[:errors] if args.key?(:errors)
684
+ @persisted = args[:persisted] if args.key?(:persisted)
685
+ @row_number = args[:row_number] if args.key?(:row_number)
686
+ end
687
+ end
688
+
689
+ # Request to run a stored query to generate a report.
690
+ class RunQueryRequest
691
+ include Google::Apis::Core::Hashable
692
+
693
+ # Report data range used to generate the report.
694
+ # Corresponds to the JSON property `dataRange`
695
+ # @return [String]
696
+ attr_accessor :data_range
697
+
698
+ # The ending time for the data that is shown in the report. Note,
699
+ # reportDataEndTimeMs is required if dataRange is CUSTOM_DATES and ignored
700
+ # otherwise.
701
+ # Corresponds to the JSON property `reportDataEndTimeMs`
702
+ # @return [Fixnum]
703
+ attr_accessor :report_data_end_time_ms
704
+
705
+ # The starting time for the data that is shown in the report. Note,
706
+ # reportDataStartTimeMs is required if dataRange is CUSTOM_DATES and ignored
707
+ # otherwise.
708
+ # Corresponds to the JSON property `reportDataStartTimeMs`
709
+ # @return [Fixnum]
710
+ attr_accessor :report_data_start_time_ms
711
+
712
+ # Canonical timezone code for report data time. Defaults to America/New_York.
713
+ # Corresponds to the JSON property `timezoneCode`
714
+ # @return [String]
715
+ attr_accessor :timezone_code
716
+
717
+ def initialize(**args)
718
+ update!(**args)
719
+ end
720
+
721
+ # Update properties of this object
722
+ def update!(**args)
723
+ @data_range = args[:data_range] if args.key?(:data_range)
724
+ @report_data_end_time_ms = args[:report_data_end_time_ms] if args.key?(:report_data_end_time_ms)
725
+ @report_data_start_time_ms = args[:report_data_start_time_ms] if args.key?(:report_data_start_time_ms)
726
+ @timezone_code = args[:timezone_code] if args.key?(:timezone_code)
727
+ end
728
+ end
729
+
730
+ # Request to upload line items.
731
+ class UploadLineItemsRequest
732
+ include Google::Apis::Core::Hashable
733
+
734
+ # Set to true to get upload status without actually persisting the line items.
735
+ # Corresponds to the JSON property `dryRun`
736
+ # @return [Boolean]
737
+ attr_accessor :dry_run
738
+ alias_method :dry_run?, :dry_run
739
+
740
+ # Format the line items are in. Default to CSV.
741
+ # Corresponds to the JSON property `format`
742
+ # @return [String]
743
+ attr_accessor :format
744
+
745
+ # Line items in CSV to upload. Refer to Entity Write File Format for more
746
+ # information on file format.
747
+ # Corresponds to the JSON property `lineItems`
748
+ # @return [String]
749
+ attr_accessor :line_items
750
+
751
+ def initialize(**args)
752
+ update!(**args)
753
+ end
754
+
755
+ # Update properties of this object
756
+ def update!(**args)
757
+ @dry_run = args[:dry_run] if args.key?(:dry_run)
758
+ @format = args[:format] if args.key?(:format)
759
+ @line_items = args[:line_items] if args.key?(:line_items)
760
+ end
761
+ end
762
+
763
+ # Upload line items response.
764
+ class UploadLineItemsResponse
765
+ include Google::Apis::Core::Hashable
766
+
767
+ # Represents the status of upload.
768
+ # Corresponds to the JSON property `uploadStatus`
769
+ # @return [Google::Apis::DoubleclickbidmanagerV1::UploadStatus]
770
+ attr_accessor :upload_status
771
+
772
+ def initialize(**args)
773
+ update!(**args)
774
+ end
775
+
776
+ # Update properties of this object
777
+ def update!(**args)
778
+ @upload_status = args[:upload_status] if args.key?(:upload_status)
779
+ end
780
+ end
781
+
782
+ # Represents the status of upload.
783
+ class UploadStatus
784
+ include Google::Apis::Core::Hashable
785
+
786
+ # Reasons why upload can't be completed.
787
+ # Corresponds to the JSON property `errors`
788
+ # @return [Array<String>]
789
+ attr_accessor :errors
790
+
791
+ # Per-row upload status.
792
+ # Corresponds to the JSON property `rowStatus`
793
+ # @return [Array<Google::Apis::DoubleclickbidmanagerV1::RowStatus>]
794
+ attr_accessor :row_status
795
+
796
+ def initialize(**args)
797
+ update!(**args)
798
+ end
799
+
800
+ # Update properties of this object
801
+ def update!(**args)
802
+ @errors = args[:errors] if args.key?(:errors)
803
+ @row_status = args[:row_status] if args.key?(:row_status)
804
+ end
805
+ end
806
+ end
807
+ end
808
+ end