google-apis-doubleclickbidmanager_v1_1 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: 57ff3fbe23b217d17e4c70a1137ecafce3f17ebf3234fd1c600a3575970d8cb4
4
+ data.tar.gz: 0e07748ce52565c47e64fbe3dd61f05c8db719eb718af8b569ec241a617d4349
5
+ SHA512:
6
+ metadata.gz: 65758f8c4a441beb183756df3cb95d8afb025fef7aaf763d92022d6cf7e208937540928169ec3602a6c22b4ada0a3124930d6745021cf7f1b0a60c3a7591f1a5
7
+ data.tar.gz: d8cae631d28c6c693bd0ef0a8716174c0983f77440a410d7e473e149257d5e21afab7d8b32f3427512c4145429af6841d948bd417320f42aeff1f6d3d8bc485e
@@ -0,0 +1,13 @@
1
+ --hide-void-return
2
+ --no-private
3
+ --verbose
4
+ --title=google-apis-doubleclickbidmanager_v1_1
5
+ --markup-provider=redcarpet
6
+ --markup=markdown
7
+ --main OVERVIEW.md
8
+ lib/google/apis/doubleclickbidmanager_v1_1/*.rb
9
+ lib/google/apis/doubleclickbidmanager_v1_1.rb
10
+ -
11
+ OVERVIEW.md
12
+ CHANGELOG.md
13
+ LICENSE.md
@@ -0,0 +1,7 @@
1
+ # Release history for google-apis-doubleclickbidmanager_v1_1
2
+
3
+ ### v0.1.0 (2021-01-07)
4
+
5
+ * Regenerated using generator version 0.1.1
6
+ * Regenerated from discovery document revision 20201202
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_1 of the DoubleClick Bid Manager API
2
+
3
+ This is a simple client library for version V1_1 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_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-doubleclickbidmanager_v1_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/doubleclickbidmanager_v1_1"
49
+
50
+ # Create a client object
51
+ client = Google::Apis::DoubleclickbidmanagerV1_1::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_1::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_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/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_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/doubleclickbidmanager_v1_1/service.rb'
16
+ require 'google/apis/doubleclickbidmanager_v1_1/classes.rb'
17
+ require 'google/apis/doubleclickbidmanager_v1_1/representations.rb'
18
+ require 'google/apis/doubleclickbidmanager_v1_1/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_1
29
+ # Version of the DoubleClick Bid Manager API this client connects to.
30
+ # This is NOT the gem version.
31
+ VERSION = 'V1_1'
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,1048 @@
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_1
24
+
25
+ # A channel grouping defines a set of rules that can be used to categorize
26
+ # events in a path report.
27
+ class ChannelGrouping
28
+ include Google::Apis::Core::Hashable
29
+
30
+ # The name to apply to an event that does not match any of the rules in the
31
+ # channel grouping.
32
+ # Corresponds to the JSON property `fallbackName`
33
+ # @return [String]
34
+ attr_accessor :fallback_name
35
+
36
+ # Channel Grouping name.
37
+ # Corresponds to the JSON property `name`
38
+ # @return [String]
39
+ attr_accessor :name
40
+
41
+ # Rules within Channel Grouping. There is a limit of 100 rules that can be set
42
+ # per channel grouping.
43
+ # Corresponds to the JSON property `rules`
44
+ # @return [Array<Google::Apis::DoubleclickbidmanagerV1_1::Rule>]
45
+ attr_accessor :rules
46
+
47
+ def initialize(**args)
48
+ update!(**args)
49
+ end
50
+
51
+ # Update properties of this object
52
+ def update!(**args)
53
+ @fallback_name = args[:fallback_name] if args.key?(:fallback_name)
54
+ @name = args[:name] if args.key?(:name)
55
+ @rules = args[:rules] if args.key?(:rules)
56
+ end
57
+ end
58
+
59
+ # DisjunctiveMatchStatement that OR's all contained filters.
60
+ class DisjunctiveMatchStatement
61
+ include Google::Apis::Core::Hashable
62
+
63
+ # Filters. There is a limit of 100 filters that can be set per disjunctive match
64
+ # statement.
65
+ # Corresponds to the JSON property `eventFilters`
66
+ # @return [Array<Google::Apis::DoubleclickbidmanagerV1_1::EventFilter>]
67
+ attr_accessor :event_filters
68
+
69
+ def initialize(**args)
70
+ update!(**args)
71
+ end
72
+
73
+ # Update properties of this object
74
+ def update!(**args)
75
+ @event_filters = args[:event_filters] if args.key?(:event_filters)
76
+ end
77
+ end
78
+
79
+ # Request to fetch stored line items.
80
+ class DownloadLineItemsRequest
81
+ include Google::Apis::Core::Hashable
82
+
83
+ # File specification (column names, types, order) in which the line items will
84
+ # be returned. Default to EWF.
85
+ # Corresponds to the JSON property `fileSpec`
86
+ # @return [String]
87
+ attr_accessor :file_spec
88
+
89
+ # Ids of the specified filter type used to filter line items to fetch. If
90
+ # omitted, all the line items will be returned.
91
+ # Corresponds to the JSON property `filterIds`
92
+ # @return [Array<Fixnum>]
93
+ attr_accessor :filter_ids
94
+
95
+ # Filter type used to filter line items to fetch.
96
+ # Corresponds to the JSON property `filterType`
97
+ # @return [String]
98
+ attr_accessor :filter_type
99
+
100
+ # Format in which the line items will be returned. Default to CSV.
101
+ # Corresponds to the JSON property `format`
102
+ # @return [String]
103
+ attr_accessor :format
104
+
105
+ def initialize(**args)
106
+ update!(**args)
107
+ end
108
+
109
+ # Update properties of this object
110
+ def update!(**args)
111
+ @file_spec = args[:file_spec] if args.key?(:file_spec)
112
+ @filter_ids = args[:filter_ids] if args.key?(:filter_ids)
113
+ @filter_type = args[:filter_type] if args.key?(:filter_type)
114
+ @format = args[:format] if args.key?(:format)
115
+ end
116
+ end
117
+
118
+ # Download line items response.
119
+ class DownloadLineItemsResponse
120
+ include Google::Apis::Core::Hashable
121
+
122
+ # Retrieved line items in CSV format. For more information about file formats,
123
+ # see Entity Write File Format.
124
+ # Corresponds to the JSON property `lineItems`
125
+ # @return [String]
126
+ attr_accessor :line_items
127
+
128
+ def initialize(**args)
129
+ update!(**args)
130
+ end
131
+
132
+ # Update properties of this object
133
+ def update!(**args)
134
+ @line_items = args[:line_items] if args.key?(:line_items)
135
+ end
136
+ end
137
+
138
+ # Request to fetch stored inventory sources, campaigns, insertion orders, line
139
+ # items, YouTube ad groups and ads.
140
+ class DownloadRequest
141
+ include Google::Apis::Core::Hashable
142
+
143
+ # File types that will be returned. If INVENTORY_SOURCE is requested, no other
144
+ # file types may be requested. Acceptable values are: - "AD" - "AD_GROUP" - "
145
+ # CAMPAIGN" - "INSERTION_ORDER" - "INVENTORY_SOURCE" - "LINE_ITEM"
146
+ # Corresponds to the JSON property `fileTypes`
147
+ # @return [Array<String>]
148
+ attr_accessor :file_types
149
+
150
+ # The IDs of the specified filter type. This is used to filter entities to fetch.
151
+ # At least one ID must be specified.
152
+ # Corresponds to the JSON property `filterIds`
153
+ # @return [Array<Fixnum>]
154
+ attr_accessor :filter_ids
155
+
156
+ # Filter type used to filter entities to fetch. PARTNER_ID and
157
+ # INVENTORY_SOURCE_ID may only be used when downloading inventory sources.
158
+ # Corresponds to the JSON property `filterType`
159
+ # @return [String]
160
+ attr_accessor :filter_type
161
+
162
+ # SDF Version (column names, types, order) in which the entities will be
163
+ # returned. Default to 5.
164
+ # Corresponds to the JSON property `version`
165
+ # @return [String]
166
+ attr_accessor :version
167
+
168
+ def initialize(**args)
169
+ update!(**args)
170
+ end
171
+
172
+ # Update properties of this object
173
+ def update!(**args)
174
+ @file_types = args[:file_types] if args.key?(:file_types)
175
+ @filter_ids = args[:filter_ids] if args.key?(:filter_ids)
176
+ @filter_type = args[:filter_type] if args.key?(:filter_type)
177
+ @version = args[:version] if args.key?(:version)
178
+ end
179
+ end
180
+
181
+ # Download response.
182
+ class DownloadResponse
183
+ include Google::Apis::Core::Hashable
184
+
185
+ # Retrieved ad groups in SDF format.
186
+ # Corresponds to the JSON property `adGroups`
187
+ # @return [String]
188
+ attr_accessor :ad_groups
189
+
190
+ # Retrieved ads in SDF format.
191
+ # Corresponds to the JSON property `ads`
192
+ # @return [String]
193
+ attr_accessor :ads
194
+
195
+ # Retrieved campaigns in SDF format.
196
+ # Corresponds to the JSON property `campaigns`
197
+ # @return [String]
198
+ attr_accessor :campaigns
199
+
200
+ # Retrieved insertion orders in SDF format.
201
+ # Corresponds to the JSON property `insertionOrders`
202
+ # @return [String]
203
+ attr_accessor :insertion_orders
204
+
205
+ #
206
+ # Corresponds to the JSON property `inventorySources`
207
+ # @return [String]
208
+ attr_accessor :inventory_sources
209
+
210
+ # Retrieved line items in SDF format.
211
+ # Corresponds to the JSON property `lineItems`
212
+ # @return [String]
213
+ attr_accessor :line_items
214
+
215
+ def initialize(**args)
216
+ update!(**args)
217
+ end
218
+
219
+ # Update properties of this object
220
+ def update!(**args)
221
+ @ad_groups = args[:ad_groups] if args.key?(:ad_groups)
222
+ @ads = args[:ads] if args.key?(:ads)
223
+ @campaigns = args[:campaigns] if args.key?(:campaigns)
224
+ @insertion_orders = args[:insertion_orders] if args.key?(:insertion_orders)
225
+ @inventory_sources = args[:inventory_sources] if args.key?(:inventory_sources)
226
+ @line_items = args[:line_items] if args.key?(:line_items)
227
+ end
228
+ end
229
+
230
+ # Defines the type of filter to be applied to the path, a DV360 event dimension
231
+ # filter.
232
+ class EventFilter
233
+ include Google::Apis::Core::Hashable
234
+
235
+ # Dimension Filter on path events.
236
+ # Corresponds to the JSON property `dimensionFilter`
237
+ # @return [Google::Apis::DoubleclickbidmanagerV1_1::PathQueryOptionsFilter]
238
+ attr_accessor :dimension_filter
239
+
240
+ def initialize(**args)
241
+ update!(**args)
242
+ end
243
+
244
+ # Update properties of this object
245
+ def update!(**args)
246
+ @dimension_filter = args[:dimension_filter] if args.key?(:dimension_filter)
247
+ end
248
+ end
249
+
250
+ # Filter used to match traffic data in your report.
251
+ class FilterPair
252
+ include Google::Apis::Core::Hashable
253
+
254
+ # Filter type.
255
+ # Corresponds to the JSON property `type`
256
+ # @return [String]
257
+ attr_accessor :type
258
+
259
+ # Filter value.
260
+ # Corresponds to the JSON property `value`
261
+ # @return [String]
262
+ attr_accessor :value
263
+
264
+ def initialize(**args)
265
+ update!(**args)
266
+ end
267
+
268
+ # Update properties of this object
269
+ def update!(**args)
270
+ @type = args[:type] if args.key?(:type)
271
+ @value = args[:value] if args.key?(:value)
272
+ end
273
+ end
274
+
275
+ # List queries response.
276
+ class ListQueriesResponse
277
+ include Google::Apis::Core::Hashable
278
+
279
+ # Identifies what kind of resource this is. Value: the fixed string "
280
+ # doubleclickbidmanager#listQueriesResponse".
281
+ # Corresponds to the JSON property `kind`
282
+ # @return [String]
283
+ attr_accessor :kind
284
+
285
+ # Next page's pagination token if one exists.
286
+ # Corresponds to the JSON property `nextPageToken`
287
+ # @return [String]
288
+ attr_accessor :next_page_token
289
+
290
+ # Retrieved queries.
291
+ # Corresponds to the JSON property `queries`
292
+ # @return [Array<Google::Apis::DoubleclickbidmanagerV1_1::Query>]
293
+ attr_accessor :queries
294
+
295
+ def initialize(**args)
296
+ update!(**args)
297
+ end
298
+
299
+ # Update properties of this object
300
+ def update!(**args)
301
+ @kind = args[:kind] if args.key?(:kind)
302
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
303
+ @queries = args[:queries] if args.key?(:queries)
304
+ end
305
+ end
306
+
307
+ # List reports response.
308
+ class ListReportsResponse
309
+ include Google::Apis::Core::Hashable
310
+
311
+ # Identifies what kind of resource this is. Value: the fixed string "
312
+ # doubleclickbidmanager#listReportsResponse".
313
+ # Corresponds to the JSON property `kind`
314
+ # @return [String]
315
+ attr_accessor :kind
316
+
317
+ # Next page's pagination token if one exists.
318
+ # Corresponds to the JSON property `nextPageToken`
319
+ # @return [String]
320
+ attr_accessor :next_page_token
321
+
322
+ # Retrieved reports.
323
+ # Corresponds to the JSON property `reports`
324
+ # @return [Array<Google::Apis::DoubleclickbidmanagerV1_1::Report>]
325
+ attr_accessor :reports
326
+
327
+ def initialize(**args)
328
+ update!(**args)
329
+ end
330
+
331
+ # Update properties of this object
332
+ def update!(**args)
333
+ @kind = args[:kind] if args.key?(:kind)
334
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
335
+ @reports = args[:reports] if args.key?(:reports)
336
+ end
337
+ end
338
+
339
+ # Additional query options.
340
+ class Options
341
+ include Google::Apis::Core::Hashable
342
+
343
+ # Set to true and filter your report by `FILTER_INSERTION_ORDER` or `
344
+ # FILTER_LINE_ITEM` to include data for audience lists specifically targeted by
345
+ # those items.
346
+ # Corresponds to the JSON property `includeOnlyTargetedUserLists`
347
+ # @return [Boolean]
348
+ attr_accessor :include_only_targeted_user_lists
349
+ alias_method :include_only_targeted_user_lists?, :include_only_targeted_user_lists
350
+
351
+ # Path Query Options for Report Options.
352
+ # Corresponds to the JSON property `pathQueryOptions`
353
+ # @return [Google::Apis::DoubleclickbidmanagerV1_1::PathQueryOptions]
354
+ attr_accessor :path_query_options
355
+
356
+ def initialize(**args)
357
+ update!(**args)
358
+ end
359
+
360
+ # Update properties of this object
361
+ def update!(**args)
362
+ @include_only_targeted_user_lists = args[:include_only_targeted_user_lists] if args.key?(:include_only_targeted_user_lists)
363
+ @path_query_options = args[:path_query_options] if args.key?(:path_query_options)
364
+ end
365
+ end
366
+
367
+ # Parameters of a query or report.
368
+ class Parameters
369
+ include Google::Apis::Core::Hashable
370
+
371
+ # Filters used to match traffic data in your report.
372
+ # Corresponds to the JSON property `filters`
373
+ # @return [Array<Google::Apis::DoubleclickbidmanagerV1_1::FilterPair>]
374
+ attr_accessor :filters
375
+
376
+ # Data is grouped by the filters listed in this field.
377
+ # Corresponds to the JSON property `groupBys`
378
+ # @return [Array<String>]
379
+ attr_accessor :group_bys
380
+
381
+ # Deprecated. This field is no longer in use.
382
+ # Corresponds to the JSON property `includeInviteData`
383
+ # @return [Boolean]
384
+ attr_accessor :include_invite_data
385
+ alias_method :include_invite_data?, :include_invite_data
386
+
387
+ # Metrics to include as columns in your report.
388
+ # Corresponds to the JSON property `metrics`
389
+ # @return [Array<String>]
390
+ attr_accessor :metrics
391
+
392
+ # Additional query options.
393
+ # Corresponds to the JSON property `options`
394
+ # @return [Google::Apis::DoubleclickbidmanagerV1_1::Options]
395
+ attr_accessor :options
396
+
397
+ # Report type.
398
+ # Corresponds to the JSON property `type`
399
+ # @return [String]
400
+ attr_accessor :type
401
+
402
+ def initialize(**args)
403
+ update!(**args)
404
+ end
405
+
406
+ # Update properties of this object
407
+ def update!(**args)
408
+ @filters = args[:filters] if args.key?(:filters)
409
+ @group_bys = args[:group_bys] if args.key?(:group_bys)
410
+ @include_invite_data = args[:include_invite_data] if args.key?(:include_invite_data)
411
+ @metrics = args[:metrics] if args.key?(:metrics)
412
+ @options = args[:options] if args.key?(:options)
413
+ @type = args[:type] if args.key?(:type)
414
+ end
415
+ end
416
+
417
+ # Path filters specify which paths to include in a report. A path is the result
418
+ # of combining DV360 events based on User ID to create a workflow of users'
419
+ # actions. When a path filter is set, the resulting report will only include
420
+ # paths that match the specified event at the specified position. All other
421
+ # paths will be excluded.
422
+ class PathFilter
423
+ include Google::Apis::Core::Hashable
424
+
425
+ # Filter on an event to be applied to some part of the path.
426
+ # Corresponds to the JSON property `eventFilters`
427
+ # @return [Array<Google::Apis::DoubleclickbidmanagerV1_1::EventFilter>]
428
+ attr_accessor :event_filters
429
+
430
+ # Indicates the position of the path the filter should match to (first, last, or
431
+ # any event in path).
432
+ # Corresponds to the JSON property `pathMatchPosition`
433
+ # @return [String]
434
+ attr_accessor :path_match_position
435
+
436
+ def initialize(**args)
437
+ update!(**args)
438
+ end
439
+
440
+ # Update properties of this object
441
+ def update!(**args)
442
+ @event_filters = args[:event_filters] if args.key?(:event_filters)
443
+ @path_match_position = args[:path_match_position] if args.key?(:path_match_position)
444
+ end
445
+ end
446
+
447
+ # Path Query Options for Report Options.
448
+ class PathQueryOptions
449
+ include Google::Apis::Core::Hashable
450
+
451
+ # A channel grouping defines a set of rules that can be used to categorize
452
+ # events in a path report.
453
+ # Corresponds to the JSON property `channelGrouping`
454
+ # @return [Google::Apis::DoubleclickbidmanagerV1_1::ChannelGrouping]
455
+ attr_accessor :channel_grouping
456
+
457
+ # Path Filters. There is a limit of 100 path filters that can be set per report.
458
+ # Corresponds to the JSON property `pathFilters`
459
+ # @return [Array<Google::Apis::DoubleclickbidmanagerV1_1::PathFilter>]
460
+ attr_accessor :path_filters
461
+
462
+ def initialize(**args)
463
+ update!(**args)
464
+ end
465
+
466
+ # Update properties of this object
467
+ def update!(**args)
468
+ @channel_grouping = args[:channel_grouping] if args.key?(:channel_grouping)
469
+ @path_filters = args[:path_filters] if args.key?(:path_filters)
470
+ end
471
+ end
472
+
473
+ # Dimension Filter on path events.
474
+ class PathQueryOptionsFilter
475
+ include Google::Apis::Core::Hashable
476
+
477
+ # Dimension the filter is applied to.
478
+ # Corresponds to the JSON property `filter`
479
+ # @return [String]
480
+ attr_accessor :filter
481
+
482
+ # Indicates how the filter should be matched to the value.
483
+ # Corresponds to the JSON property `match`
484
+ # @return [String]
485
+ attr_accessor :match
486
+
487
+ # Value to filter on.
488
+ # Corresponds to the JSON property `values`
489
+ # @return [Array<String>]
490
+ attr_accessor :values
491
+
492
+ def initialize(**args)
493
+ update!(**args)
494
+ end
495
+
496
+ # Update properties of this object
497
+ def update!(**args)
498
+ @filter = args[:filter] if args.key?(:filter)
499
+ @match = args[:match] if args.key?(:match)
500
+ @values = args[:values] if args.key?(:values)
501
+ end
502
+ end
503
+
504
+ # Represents a query.
505
+ class Query
506
+ include Google::Apis::Core::Hashable
507
+
508
+ # Identifies what kind of resource this is. Value: the fixed string "
509
+ # doubleclickbidmanager#query".
510
+ # Corresponds to the JSON property `kind`
511
+ # @return [String]
512
+ attr_accessor :kind
513
+
514
+ # Query metadata.
515
+ # Corresponds to the JSON property `metadata`
516
+ # @return [Google::Apis::DoubleclickbidmanagerV1_1::QueryMetadata]
517
+ attr_accessor :metadata
518
+
519
+ # Parameters of a query or report.
520
+ # Corresponds to the JSON property `params`
521
+ # @return [Google::Apis::DoubleclickbidmanagerV1_1::Parameters]
522
+ attr_accessor :params
523
+
524
+ # Query ID.
525
+ # Corresponds to the JSON property `queryId`
526
+ # @return [Fixnum]
527
+ attr_accessor :query_id
528
+
529
+ # The ending time for the data that is shown in the report. Note,
530
+ # reportDataEndTimeMs is required if metadata.dataRange is CUSTOM_DATES and
531
+ # ignored otherwise.
532
+ # Corresponds to the JSON property `reportDataEndTimeMs`
533
+ # @return [Fixnum]
534
+ attr_accessor :report_data_end_time_ms
535
+
536
+ # The starting time for the data that is shown in the report. Note,
537
+ # reportDataStartTimeMs is required if metadata.dataRange is CUSTOM_DATES and
538
+ # ignored otherwise.
539
+ # Corresponds to the JSON property `reportDataStartTimeMs`
540
+ # @return [Fixnum]
541
+ attr_accessor :report_data_start_time_ms
542
+
543
+ # Information on how frequently and when to run a query.
544
+ # Corresponds to the JSON property `schedule`
545
+ # @return [Google::Apis::DoubleclickbidmanagerV1_1::QuerySchedule]
546
+ attr_accessor :schedule
547
+
548
+ # Canonical timezone code for report data time. Defaults to America/New_York.
549
+ # Corresponds to the JSON property `timezoneCode`
550
+ # @return [String]
551
+ attr_accessor :timezone_code
552
+
553
+ def initialize(**args)
554
+ update!(**args)
555
+ end
556
+
557
+ # Update properties of this object
558
+ def update!(**args)
559
+ @kind = args[:kind] if args.key?(:kind)
560
+ @metadata = args[:metadata] if args.key?(:metadata)
561
+ @params = args[:params] if args.key?(:params)
562
+ @query_id = args[:query_id] if args.key?(:query_id)
563
+ @report_data_end_time_ms = args[:report_data_end_time_ms] if args.key?(:report_data_end_time_ms)
564
+ @report_data_start_time_ms = args[:report_data_start_time_ms] if args.key?(:report_data_start_time_ms)
565
+ @schedule = args[:schedule] if args.key?(:schedule)
566
+ @timezone_code = args[:timezone_code] if args.key?(:timezone_code)
567
+ end
568
+ end
569
+
570
+ # Query metadata.
571
+ class QueryMetadata
572
+ include Google::Apis::Core::Hashable
573
+
574
+ # Range of report data.
575
+ # Corresponds to the JSON property `dataRange`
576
+ # @return [String]
577
+ attr_accessor :data_range
578
+
579
+ # Format of the generated report.
580
+ # Corresponds to the JSON property `format`
581
+ # @return [String]
582
+ attr_accessor :format
583
+
584
+ # The path to the location in Google Cloud Storage where the latest report is
585
+ # stored.
586
+ # Corresponds to the JSON property `googleCloudStoragePathForLatestReport`
587
+ # @return [String]
588
+ attr_accessor :google_cloud_storage_path_for_latest_report
589
+
590
+ # The path in Google Drive for the latest report.
591
+ # Corresponds to the JSON property `googleDrivePathForLatestReport`
592
+ # @return [String]
593
+ attr_accessor :google_drive_path_for_latest_report
594
+
595
+ # The time when the latest report started to run.
596
+ # Corresponds to the JSON property `latestReportRunTimeMs`
597
+ # @return [Fixnum]
598
+ attr_accessor :latest_report_run_time_ms
599
+
600
+ # Locale of the generated reports. Valid values are cs CZECH de GERMAN en
601
+ # ENGLISH es SPANISH fr FRENCH it ITALIAN ja JAPANESE ko KOREAN pl POLISH pt-BR
602
+ # BRAZILIAN_PORTUGUESE ru RUSSIAN tr TURKISH uk UKRAINIAN zh-CN CHINA_CHINESE zh-
603
+ # TW TAIWAN_CHINESE An locale string not in the list above will generate reports
604
+ # in English.
605
+ # Corresponds to the JSON property `locale`
606
+ # @return [String]
607
+ attr_accessor :locale
608
+
609
+ # Number of reports that have been generated for the query.
610
+ # Corresponds to the JSON property `reportCount`
611
+ # @return [Fixnum]
612
+ attr_accessor :report_count
613
+
614
+ # Whether the latest report is currently running.
615
+ # Corresponds to the JSON property `running`
616
+ # @return [Boolean]
617
+ attr_accessor :running
618
+ alias_method :running?, :running
619
+
620
+ # Whether to send an email notification when a report is ready. Default to false.
621
+ # Corresponds to the JSON property `sendNotification`
622
+ # @return [Boolean]
623
+ attr_accessor :send_notification
624
+ alias_method :send_notification?, :send_notification
625
+
626
+ # List of email addresses which are sent email notifications when the report is
627
+ # finished. Separate from sendNotification.
628
+ # Corresponds to the JSON property `shareEmailAddress`
629
+ # @return [Array<String>]
630
+ attr_accessor :share_email_address
631
+
632
+ # Query title. It is used to name the reports generated from this query.
633
+ # Corresponds to the JSON property `title`
634
+ # @return [String]
635
+ attr_accessor :title
636
+
637
+ def initialize(**args)
638
+ update!(**args)
639
+ end
640
+
641
+ # Update properties of this object
642
+ def update!(**args)
643
+ @data_range = args[:data_range] if args.key?(:data_range)
644
+ @format = args[:format] if args.key?(:format)
645
+ @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)
646
+ @google_drive_path_for_latest_report = args[:google_drive_path_for_latest_report] if args.key?(:google_drive_path_for_latest_report)
647
+ @latest_report_run_time_ms = args[:latest_report_run_time_ms] if args.key?(:latest_report_run_time_ms)
648
+ @locale = args[:locale] if args.key?(:locale)
649
+ @report_count = args[:report_count] if args.key?(:report_count)
650
+ @running = args[:running] if args.key?(:running)
651
+ @send_notification = args[:send_notification] if args.key?(:send_notification)
652
+ @share_email_address = args[:share_email_address] if args.key?(:share_email_address)
653
+ @title = args[:title] if args.key?(:title)
654
+ end
655
+ end
656
+
657
+ # Information on how frequently and when to run a query.
658
+ class QuerySchedule
659
+ include Google::Apis::Core::Hashable
660
+
661
+ # Datetime to periodically run the query until.
662
+ # Corresponds to the JSON property `endTimeMs`
663
+ # @return [Fixnum]
664
+ attr_accessor :end_time_ms
665
+
666
+ # How often the query is run.
667
+ # Corresponds to the JSON property `frequency`
668
+ # @return [String]
669
+ attr_accessor :frequency
670
+
671
+ # Time of day at which a new report will be generated, represented as minutes
672
+ # past midnight. Range is 0 to 1439. Only applies to scheduled reports.
673
+ # Corresponds to the JSON property `nextRunMinuteOfDay`
674
+ # @return [Fixnum]
675
+ attr_accessor :next_run_minute_of_day
676
+
677
+ # Canonical timezone code for report generation time. Defaults to America/
678
+ # New_York.
679
+ # Corresponds to the JSON property `nextRunTimezoneCode`
680
+ # @return [String]
681
+ attr_accessor :next_run_timezone_code
682
+
683
+ # When to start running the query. Not applicable to `ONE_TIME` frequency.
684
+ # Corresponds to the JSON property `startTimeMs`
685
+ # @return [Fixnum]
686
+ attr_accessor :start_time_ms
687
+
688
+ def initialize(**args)
689
+ update!(**args)
690
+ end
691
+
692
+ # Update properties of this object
693
+ def update!(**args)
694
+ @end_time_ms = args[:end_time_ms] if args.key?(:end_time_ms)
695
+ @frequency = args[:frequency] if args.key?(:frequency)
696
+ @next_run_minute_of_day = args[:next_run_minute_of_day] if args.key?(:next_run_minute_of_day)
697
+ @next_run_timezone_code = args[:next_run_timezone_code] if args.key?(:next_run_timezone_code)
698
+ @start_time_ms = args[:start_time_ms] if args.key?(:start_time_ms)
699
+ end
700
+ end
701
+
702
+ # Represents a report.
703
+ class Report
704
+ include Google::Apis::Core::Hashable
705
+
706
+ # Key used to identify a report.
707
+ # Corresponds to the JSON property `key`
708
+ # @return [Google::Apis::DoubleclickbidmanagerV1_1::ReportKey]
709
+ attr_accessor :key
710
+
711
+ # Report metadata.
712
+ # Corresponds to the JSON property `metadata`
713
+ # @return [Google::Apis::DoubleclickbidmanagerV1_1::ReportMetadata]
714
+ attr_accessor :metadata
715
+
716
+ # Parameters of a query or report.
717
+ # Corresponds to the JSON property `params`
718
+ # @return [Google::Apis::DoubleclickbidmanagerV1_1::Parameters]
719
+ attr_accessor :params
720
+
721
+ def initialize(**args)
722
+ update!(**args)
723
+ end
724
+
725
+ # Update properties of this object
726
+ def update!(**args)
727
+ @key = args[:key] if args.key?(:key)
728
+ @metadata = args[:metadata] if args.key?(:metadata)
729
+ @params = args[:params] if args.key?(:params)
730
+ end
731
+ end
732
+
733
+ # An explanation of a report failure.
734
+ class ReportFailure
735
+ include Google::Apis::Core::Hashable
736
+
737
+ # Error code that shows why the report was not created.
738
+ # Corresponds to the JSON property `errorCode`
739
+ # @return [String]
740
+ attr_accessor :error_code
741
+
742
+ def initialize(**args)
743
+ update!(**args)
744
+ end
745
+
746
+ # Update properties of this object
747
+ def update!(**args)
748
+ @error_code = args[:error_code] if args.key?(:error_code)
749
+ end
750
+ end
751
+
752
+ # Key used to identify a report.
753
+ class ReportKey
754
+ include Google::Apis::Core::Hashable
755
+
756
+ # Query ID.
757
+ # Corresponds to the JSON property `queryId`
758
+ # @return [Fixnum]
759
+ attr_accessor :query_id
760
+
761
+ # Report ID.
762
+ # Corresponds to the JSON property `reportId`
763
+ # @return [Fixnum]
764
+ attr_accessor :report_id
765
+
766
+ def initialize(**args)
767
+ update!(**args)
768
+ end
769
+
770
+ # Update properties of this object
771
+ def update!(**args)
772
+ @query_id = args[:query_id] if args.key?(:query_id)
773
+ @report_id = args[:report_id] if args.key?(:report_id)
774
+ end
775
+ end
776
+
777
+ # Report metadata.
778
+ class ReportMetadata
779
+ include Google::Apis::Core::Hashable
780
+
781
+ # The path to the location in Google Cloud Storage where the report is stored.
782
+ # Corresponds to the JSON property `googleCloudStoragePath`
783
+ # @return [String]
784
+ attr_accessor :google_cloud_storage_path
785
+
786
+ # The ending time for the data that is shown in the report.
787
+ # Corresponds to the JSON property `reportDataEndTimeMs`
788
+ # @return [Fixnum]
789
+ attr_accessor :report_data_end_time_ms
790
+
791
+ # The starting time for the data that is shown in the report.
792
+ # Corresponds to the JSON property `reportDataStartTimeMs`
793
+ # @return [Fixnum]
794
+ attr_accessor :report_data_start_time_ms
795
+
796
+ # Report status.
797
+ # Corresponds to the JSON property `status`
798
+ # @return [Google::Apis::DoubleclickbidmanagerV1_1::ReportStatus]
799
+ attr_accessor :status
800
+
801
+ def initialize(**args)
802
+ update!(**args)
803
+ end
804
+
805
+ # Update properties of this object
806
+ def update!(**args)
807
+ @google_cloud_storage_path = args[:google_cloud_storage_path] if args.key?(:google_cloud_storage_path)
808
+ @report_data_end_time_ms = args[:report_data_end_time_ms] if args.key?(:report_data_end_time_ms)
809
+ @report_data_start_time_ms = args[:report_data_start_time_ms] if args.key?(:report_data_start_time_ms)
810
+ @status = args[:status] if args.key?(:status)
811
+ end
812
+ end
813
+
814
+ # Report status.
815
+ class ReportStatus
816
+ include Google::Apis::Core::Hashable
817
+
818
+ # An explanation of a report failure.
819
+ # Corresponds to the JSON property `failure`
820
+ # @return [Google::Apis::DoubleclickbidmanagerV1_1::ReportFailure]
821
+ attr_accessor :failure
822
+
823
+ # The time when this report either completed successfully or failed.
824
+ # Corresponds to the JSON property `finishTimeMs`
825
+ # @return [Fixnum]
826
+ attr_accessor :finish_time_ms
827
+
828
+ # The file type of the report.
829
+ # Corresponds to the JSON property `format`
830
+ # @return [String]
831
+ attr_accessor :format
832
+
833
+ # The state of the report.
834
+ # Corresponds to the JSON property `state`
835
+ # @return [String]
836
+ attr_accessor :state
837
+
838
+ def initialize(**args)
839
+ update!(**args)
840
+ end
841
+
842
+ # Update properties of this object
843
+ def update!(**args)
844
+ @failure = args[:failure] if args.key?(:failure)
845
+ @finish_time_ms = args[:finish_time_ms] if args.key?(:finish_time_ms)
846
+ @format = args[:format] if args.key?(:format)
847
+ @state = args[:state] if args.key?(:state)
848
+ end
849
+ end
850
+
851
+ # Represents the upload status of a row in the request.
852
+ class RowStatus
853
+ include Google::Apis::Core::Hashable
854
+
855
+ # Whether the stored entity is changed as a result of upload.
856
+ # Corresponds to the JSON property `changed`
857
+ # @return [Boolean]
858
+ attr_accessor :changed
859
+ alias_method :changed?, :changed
860
+
861
+ # Entity Id.
862
+ # Corresponds to the JSON property `entityId`
863
+ # @return [Fixnum]
864
+ attr_accessor :entity_id
865
+
866
+ # Entity name.
867
+ # Corresponds to the JSON property `entityName`
868
+ # @return [String]
869
+ attr_accessor :entity_name
870
+
871
+ # Reasons why the entity can't be uploaded.
872
+ # Corresponds to the JSON property `errors`
873
+ # @return [Array<String>]
874
+ attr_accessor :errors
875
+
876
+ # Whether the entity is persisted.
877
+ # Corresponds to the JSON property `persisted`
878
+ # @return [Boolean]
879
+ attr_accessor :persisted
880
+ alias_method :persisted?, :persisted
881
+
882
+ # Row number.
883
+ # Corresponds to the JSON property `rowNumber`
884
+ # @return [Fixnum]
885
+ attr_accessor :row_number
886
+
887
+ def initialize(**args)
888
+ update!(**args)
889
+ end
890
+
891
+ # Update properties of this object
892
+ def update!(**args)
893
+ @changed = args[:changed] if args.key?(:changed)
894
+ @entity_id = args[:entity_id] if args.key?(:entity_id)
895
+ @entity_name = args[:entity_name] if args.key?(:entity_name)
896
+ @errors = args[:errors] if args.key?(:errors)
897
+ @persisted = args[:persisted] if args.key?(:persisted)
898
+ @row_number = args[:row_number] if args.key?(:row_number)
899
+ end
900
+ end
901
+
902
+ # A Rule defines a name, and a boolean expression in [conjunctive normal form](
903
+ # http: //mathworld.wolfram.com/ConjunctiveNormalForm.html)`.external` that can
904
+ # be // applied to a path event to determine if that name should be applied.
905
+ class Rule
906
+ include Google::Apis::Core::Hashable
907
+
908
+ #
909
+ # Corresponds to the JSON property `disjunctiveMatchStatements`
910
+ # @return [Array<Google::Apis::DoubleclickbidmanagerV1_1::DisjunctiveMatchStatement>]
911
+ attr_accessor :disjunctive_match_statements
912
+
913
+ # Rule name.
914
+ # Corresponds to the JSON property `name`
915
+ # @return [String]
916
+ attr_accessor :name
917
+
918
+ def initialize(**args)
919
+ update!(**args)
920
+ end
921
+
922
+ # Update properties of this object
923
+ def update!(**args)
924
+ @disjunctive_match_statements = args[:disjunctive_match_statements] if args.key?(:disjunctive_match_statements)
925
+ @name = args[:name] if args.key?(:name)
926
+ end
927
+ end
928
+
929
+ # Request to run a stored query to generate a report.
930
+ class RunQueryRequest
931
+ include Google::Apis::Core::Hashable
932
+
933
+ # Report data range used to generate the report.
934
+ # Corresponds to the JSON property `dataRange`
935
+ # @return [String]
936
+ attr_accessor :data_range
937
+
938
+ # The ending time for the data that is shown in the report. Note,
939
+ # reportDataEndTimeMs is required if dataRange is CUSTOM_DATES and ignored
940
+ # otherwise.
941
+ # Corresponds to the JSON property `reportDataEndTimeMs`
942
+ # @return [Fixnum]
943
+ attr_accessor :report_data_end_time_ms
944
+
945
+ # The starting time for the data that is shown in the report. Note,
946
+ # reportDataStartTimeMs is required if dataRange is CUSTOM_DATES and ignored
947
+ # otherwise.
948
+ # Corresponds to the JSON property `reportDataStartTimeMs`
949
+ # @return [Fixnum]
950
+ attr_accessor :report_data_start_time_ms
951
+
952
+ # Canonical timezone code for report data time. Defaults to America/New_York.
953
+ # Corresponds to the JSON property `timezoneCode`
954
+ # @return [String]
955
+ attr_accessor :timezone_code
956
+
957
+ def initialize(**args)
958
+ update!(**args)
959
+ end
960
+
961
+ # Update properties of this object
962
+ def update!(**args)
963
+ @data_range = args[:data_range] if args.key?(:data_range)
964
+ @report_data_end_time_ms = args[:report_data_end_time_ms] if args.key?(:report_data_end_time_ms)
965
+ @report_data_start_time_ms = args[:report_data_start_time_ms] if args.key?(:report_data_start_time_ms)
966
+ @timezone_code = args[:timezone_code] if args.key?(:timezone_code)
967
+ end
968
+ end
969
+
970
+ # Request to upload line items.
971
+ class UploadLineItemsRequest
972
+ include Google::Apis::Core::Hashable
973
+
974
+ # Set to true to get upload status without actually persisting the line items.
975
+ # Corresponds to the JSON property `dryRun`
976
+ # @return [Boolean]
977
+ attr_accessor :dry_run
978
+ alias_method :dry_run?, :dry_run
979
+
980
+ # Format the line items are in. Default to CSV.
981
+ # Corresponds to the JSON property `format`
982
+ # @return [String]
983
+ attr_accessor :format
984
+
985
+ # Line items in CSV to upload. Refer to Entity Write File Format for more
986
+ # information on file format.
987
+ # Corresponds to the JSON property `lineItems`
988
+ # @return [String]
989
+ attr_accessor :line_items
990
+
991
+ def initialize(**args)
992
+ update!(**args)
993
+ end
994
+
995
+ # Update properties of this object
996
+ def update!(**args)
997
+ @dry_run = args[:dry_run] if args.key?(:dry_run)
998
+ @format = args[:format] if args.key?(:format)
999
+ @line_items = args[:line_items] if args.key?(:line_items)
1000
+ end
1001
+ end
1002
+
1003
+ # Upload line items response.
1004
+ class UploadLineItemsResponse
1005
+ include Google::Apis::Core::Hashable
1006
+
1007
+ # Represents the status of upload.
1008
+ # Corresponds to the JSON property `uploadStatus`
1009
+ # @return [Google::Apis::DoubleclickbidmanagerV1_1::UploadStatus]
1010
+ attr_accessor :upload_status
1011
+
1012
+ def initialize(**args)
1013
+ update!(**args)
1014
+ end
1015
+
1016
+ # Update properties of this object
1017
+ def update!(**args)
1018
+ @upload_status = args[:upload_status] if args.key?(:upload_status)
1019
+ end
1020
+ end
1021
+
1022
+ # Represents the status of upload.
1023
+ class UploadStatus
1024
+ include Google::Apis::Core::Hashable
1025
+
1026
+ # Reasons why upload can't be completed.
1027
+ # Corresponds to the JSON property `errors`
1028
+ # @return [Array<String>]
1029
+ attr_accessor :errors
1030
+
1031
+ # Per-row upload status.
1032
+ # Corresponds to the JSON property `rowStatus`
1033
+ # @return [Array<Google::Apis::DoubleclickbidmanagerV1_1::RowStatus>]
1034
+ attr_accessor :row_status
1035
+
1036
+ def initialize(**args)
1037
+ update!(**args)
1038
+ end
1039
+
1040
+ # Update properties of this object
1041
+ def update!(**args)
1042
+ @errors = args[:errors] if args.key?(:errors)
1043
+ @row_status = args[:row_status] if args.key?(:row_status)
1044
+ end
1045
+ end
1046
+ end
1047
+ end
1048
+ end