blob: 7b11e7493e2ab5b4b672355f843ee83644900b1c [file] [log] [blame]
John Asmuth614db982014-04-24 15:46:26 -04001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="doubleclickbidmanager_v1.html">DoubleClick Bid Manager API</a> . <a href="doubleclickbidmanager_v1.queries.html">queries</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#createquery">createquery(body=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040079<p class="firstline">Creates a query.</p>
80<p class="toc_element">
81 <code><a href="#deletequery">deletequery(queryId)</a></code></p>
82<p class="firstline">Deletes a stored query as well as the associated stored reports.</p>
83<p class="toc_element">
84 <code><a href="#getquery">getquery(queryId)</a></code></p>
85<p class="firstline">Retrieves a stored query.</p>
86<p class="toc_element">
87 <code><a href="#listqueries">listqueries()</a></code></p>
88<p class="firstline">Retrieves stored queries.</p>
89<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070090 <code><a href="#runquery">runquery(queryId, body=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040091<p class="firstline">Runs a stored query to generate a report.</p>
92<h3>Method Details</h3>
93<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -070094 <code class="details" id="createquery">createquery(body=None)</code>
John Asmuth614db982014-04-24 15:46:26 -040095 <pre>Creates a query.
96
97Args:
Dan O'Mearadd494642020-05-01 07:42:23 -070098 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -040099 The object takes the form of:
100
101{ # Represents a query.
Bu Sun Kim65020912020-05-20 12:08:20 -0700102 &quot;kind&quot;: &quot;doubleclickbidmanager#query&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;doubleclickbidmanager#query&quot;.
103 &quot;metadata&quot;: { # Query metadata. # Query metadata.
104 &quot;dataRange&quot;: &quot;A String&quot;, # Range of report data.
105 &quot;format&quot;: &quot;A String&quot;, # Format of the generated report.
106 &quot;googleCloudStoragePathForLatestReport&quot;: &quot;A String&quot;, # The path to the location in Google Cloud Storage where the latest report is stored.
107 &quot;googleDrivePathForLatestReport&quot;: &quot;A String&quot;, # The path in Google Drive for the latest report.
108 &quot;latestReportRunTimeMs&quot;: &quot;A String&quot;, # The time when the latest report started to run.
109 &quot;locale&quot;: &quot;A String&quot;, # Locale of the generated reports. Valid values are cs CZECH de GERMAN en ENGLISH es SPANISH fr FRENCH it ITALIAN ja JAPANESE ko KOREAN pl POLISH pt-BR BRAZILIAN_PORTUGUESE ru RUSSIAN tr TURKISH uk UKRAINIAN zh-CN CHINA_CHINESE zh-TW TAIWAN_CHINESE
110 #
111 # An locale string not in the list above will generate reports in English.
112 &quot;reportCount&quot;: 42, # Number of reports that have been generated for the query.
113 &quot;running&quot;: True or False, # Whether the latest report is currently running.
114 &quot;sendNotification&quot;: True or False, # Whether to send an email notification when a report is ready. Default to false.
115 &quot;shareEmailAddress&quot;: [ # List of email addresses which are sent email notifications when the report is finished. Separate from sendNotification.
116 &quot;A String&quot;,
117 ],
118 &quot;title&quot;: &quot;A String&quot;, # Query title. It is used to name the reports generated from this query.
119 },
120 &quot;params&quot;: { # Parameters of a query or report. # Query parameters.
121 &quot;filters&quot;: [ # Filters used to match traffic data in your report.
122 { # Filter used to match traffic data in your report.
123 &quot;type&quot;: &quot;A String&quot;, # Filter type.
124 &quot;value&quot;: &quot;A String&quot;, # Filter value.
125 },
126 ],
127 &quot;groupBys&quot;: [ # Data is grouped by the filters listed in this field.
128 &quot;A String&quot;,
129 ],
130 &quot;includeInviteData&quot;: True or False, # Deprecated. This field is no longer in use.
131 &quot;metrics&quot;: [ # Metrics to include as columns in your report.
132 &quot;A String&quot;,
133 ],
134 &quot;type&quot;: &quot;A String&quot;, # Report type.
135 },
136 &quot;queryId&quot;: &quot;A String&quot;, # Query ID.
137 &quot;reportDataEndTimeMs&quot;: &quot;A String&quot;, # The ending time for the data that is shown in the report. Note, reportDataEndTimeMs is required if metadata.dataRange is CUSTOM_DATES and ignored otherwise.
138 &quot;reportDataStartTimeMs&quot;: &quot;A String&quot;, # The starting time for the data that is shown in the report. Note, reportDataStartTimeMs is required if metadata.dataRange is CUSTOM_DATES and ignored otherwise.
139 &quot;schedule&quot;: { # Information on how frequently and when to run a query. # Information on how often and when to run a query.
140 &quot;endTimeMs&quot;: &quot;A String&quot;, # Datetime to periodically run the query until.
141 &quot;frequency&quot;: &quot;A String&quot;, # How often the query is run.
142 &quot;nextRunMinuteOfDay&quot;: 42, # Time of day at which a new report will be generated, represented as minutes past midnight. Range is 0 to 1439. Only applies to scheduled reports.
143 &quot;nextRunTimezoneCode&quot;: &quot;A String&quot;, # Canonical timezone code for report generation time. Defaults to America/New_York.
144 },
145 &quot;timezoneCode&quot;: &quot;A String&quot;, # Canonical timezone code for report data time. Defaults to America/New_York.
146 }
John Asmuth614db982014-04-24 15:46:26 -0400147
148
149Returns:
150 An object of the form:
151
152 { # Represents a query.
Bu Sun Kim65020912020-05-20 12:08:20 -0700153 &quot;kind&quot;: &quot;doubleclickbidmanager#query&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;doubleclickbidmanager#query&quot;.
154 &quot;metadata&quot;: { # Query metadata. # Query metadata.
155 &quot;dataRange&quot;: &quot;A String&quot;, # Range of report data.
156 &quot;format&quot;: &quot;A String&quot;, # Format of the generated report.
157 &quot;googleCloudStoragePathForLatestReport&quot;: &quot;A String&quot;, # The path to the location in Google Cloud Storage where the latest report is stored.
158 &quot;googleDrivePathForLatestReport&quot;: &quot;A String&quot;, # The path in Google Drive for the latest report.
159 &quot;latestReportRunTimeMs&quot;: &quot;A String&quot;, # The time when the latest report started to run.
160 &quot;locale&quot;: &quot;A String&quot;, # Locale of the generated reports. Valid values are cs CZECH de GERMAN en ENGLISH es SPANISH fr FRENCH it ITALIAN ja JAPANESE ko KOREAN pl POLISH pt-BR BRAZILIAN_PORTUGUESE ru RUSSIAN tr TURKISH uk UKRAINIAN zh-CN CHINA_CHINESE zh-TW TAIWAN_CHINESE
161 #
162 # An locale string not in the list above will generate reports in English.
163 &quot;reportCount&quot;: 42, # Number of reports that have been generated for the query.
164 &quot;running&quot;: True or False, # Whether the latest report is currently running.
165 &quot;sendNotification&quot;: True or False, # Whether to send an email notification when a report is ready. Default to false.
166 &quot;shareEmailAddress&quot;: [ # List of email addresses which are sent email notifications when the report is finished. Separate from sendNotification.
167 &quot;A String&quot;,
168 ],
169 &quot;title&quot;: &quot;A String&quot;, # Query title. It is used to name the reports generated from this query.
170 },
171 &quot;params&quot;: { # Parameters of a query or report. # Query parameters.
172 &quot;filters&quot;: [ # Filters used to match traffic data in your report.
173 { # Filter used to match traffic data in your report.
174 &quot;type&quot;: &quot;A String&quot;, # Filter type.
175 &quot;value&quot;: &quot;A String&quot;, # Filter value.
176 },
177 ],
178 &quot;groupBys&quot;: [ # Data is grouped by the filters listed in this field.
179 &quot;A String&quot;,
180 ],
181 &quot;includeInviteData&quot;: True or False, # Deprecated. This field is no longer in use.
182 &quot;metrics&quot;: [ # Metrics to include as columns in your report.
183 &quot;A String&quot;,
184 ],
185 &quot;type&quot;: &quot;A String&quot;, # Report type.
186 },
187 &quot;queryId&quot;: &quot;A String&quot;, # Query ID.
188 &quot;reportDataEndTimeMs&quot;: &quot;A String&quot;, # The ending time for the data that is shown in the report. Note, reportDataEndTimeMs is required if metadata.dataRange is CUSTOM_DATES and ignored otherwise.
189 &quot;reportDataStartTimeMs&quot;: &quot;A String&quot;, # The starting time for the data that is shown in the report. Note, reportDataStartTimeMs is required if metadata.dataRange is CUSTOM_DATES and ignored otherwise.
190 &quot;schedule&quot;: { # Information on how frequently and when to run a query. # Information on how often and when to run a query.
191 &quot;endTimeMs&quot;: &quot;A String&quot;, # Datetime to periodically run the query until.
192 &quot;frequency&quot;: &quot;A String&quot;, # How often the query is run.
193 &quot;nextRunMinuteOfDay&quot;: 42, # Time of day at which a new report will be generated, represented as minutes past midnight. Range is 0 to 1439. Only applies to scheduled reports.
194 &quot;nextRunTimezoneCode&quot;: &quot;A String&quot;, # Canonical timezone code for report generation time. Defaults to America/New_York.
195 },
196 &quot;timezoneCode&quot;: &quot;A String&quot;, # Canonical timezone code for report data time. Defaults to America/New_York.
197 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400198</div>
199
200<div class="method">
201 <code class="details" id="deletequery">deletequery(queryId)</code>
202 <pre>Deletes a stored query as well as the associated stored reports.
203
204Args:
205 queryId: string, Query ID to delete. (required)
206</pre>
207</div>
208
209<div class="method">
210 <code class="details" id="getquery">getquery(queryId)</code>
211 <pre>Retrieves a stored query.
212
213Args:
214 queryId: string, Query ID to retrieve. (required)
215
216Returns:
217 An object of the form:
218
219 { # Represents a query.
Bu Sun Kim65020912020-05-20 12:08:20 -0700220 &quot;kind&quot;: &quot;doubleclickbidmanager#query&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;doubleclickbidmanager#query&quot;.
221 &quot;metadata&quot;: { # Query metadata. # Query metadata.
222 &quot;dataRange&quot;: &quot;A String&quot;, # Range of report data.
223 &quot;format&quot;: &quot;A String&quot;, # Format of the generated report.
224 &quot;googleCloudStoragePathForLatestReport&quot;: &quot;A String&quot;, # The path to the location in Google Cloud Storage where the latest report is stored.
225 &quot;googleDrivePathForLatestReport&quot;: &quot;A String&quot;, # The path in Google Drive for the latest report.
226 &quot;latestReportRunTimeMs&quot;: &quot;A String&quot;, # The time when the latest report started to run.
227 &quot;locale&quot;: &quot;A String&quot;, # Locale of the generated reports. Valid values are cs CZECH de GERMAN en ENGLISH es SPANISH fr FRENCH it ITALIAN ja JAPANESE ko KOREAN pl POLISH pt-BR BRAZILIAN_PORTUGUESE ru RUSSIAN tr TURKISH uk UKRAINIAN zh-CN CHINA_CHINESE zh-TW TAIWAN_CHINESE
228 #
229 # An locale string not in the list above will generate reports in English.
230 &quot;reportCount&quot;: 42, # Number of reports that have been generated for the query.
231 &quot;running&quot;: True or False, # Whether the latest report is currently running.
232 &quot;sendNotification&quot;: True or False, # Whether to send an email notification when a report is ready. Default to false.
233 &quot;shareEmailAddress&quot;: [ # List of email addresses which are sent email notifications when the report is finished. Separate from sendNotification.
234 &quot;A String&quot;,
235 ],
236 &quot;title&quot;: &quot;A String&quot;, # Query title. It is used to name the reports generated from this query.
237 },
238 &quot;params&quot;: { # Parameters of a query or report. # Query parameters.
239 &quot;filters&quot;: [ # Filters used to match traffic data in your report.
240 { # Filter used to match traffic data in your report.
241 &quot;type&quot;: &quot;A String&quot;, # Filter type.
242 &quot;value&quot;: &quot;A String&quot;, # Filter value.
243 },
244 ],
245 &quot;groupBys&quot;: [ # Data is grouped by the filters listed in this field.
246 &quot;A String&quot;,
247 ],
248 &quot;includeInviteData&quot;: True or False, # Deprecated. This field is no longer in use.
249 &quot;metrics&quot;: [ # Metrics to include as columns in your report.
250 &quot;A String&quot;,
251 ],
252 &quot;type&quot;: &quot;A String&quot;, # Report type.
253 },
254 &quot;queryId&quot;: &quot;A String&quot;, # Query ID.
255 &quot;reportDataEndTimeMs&quot;: &quot;A String&quot;, # The ending time for the data that is shown in the report. Note, reportDataEndTimeMs is required if metadata.dataRange is CUSTOM_DATES and ignored otherwise.
256 &quot;reportDataStartTimeMs&quot;: &quot;A String&quot;, # The starting time for the data that is shown in the report. Note, reportDataStartTimeMs is required if metadata.dataRange is CUSTOM_DATES and ignored otherwise.
257 &quot;schedule&quot;: { # Information on how frequently and when to run a query. # Information on how often and when to run a query.
258 &quot;endTimeMs&quot;: &quot;A String&quot;, # Datetime to periodically run the query until.
259 &quot;frequency&quot;: &quot;A String&quot;, # How often the query is run.
260 &quot;nextRunMinuteOfDay&quot;: 42, # Time of day at which a new report will be generated, represented as minutes past midnight. Range is 0 to 1439. Only applies to scheduled reports.
261 &quot;nextRunTimezoneCode&quot;: &quot;A String&quot;, # Canonical timezone code for report generation time. Defaults to America/New_York.
262 },
263 &quot;timezoneCode&quot;: &quot;A String&quot;, # Canonical timezone code for report data time. Defaults to America/New_York.
264 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400265</div>
266
267<div class="method">
268 <code class="details" id="listqueries">listqueries()</code>
269 <pre>Retrieves stored queries.
270
271Args:
272
273Returns:
274 An object of the form:
275
276 { # List queries response.
Bu Sun Kim65020912020-05-20 12:08:20 -0700277 &quot;kind&quot;: &quot;doubleclickbidmanager#listQueriesResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;doubleclickbidmanager#listQueriesResponse&quot;.
278 &quot;queries&quot;: [ # Retrieved queries.
John Asmuth614db982014-04-24 15:46:26 -0400279 { # Represents a query.
Bu Sun Kim65020912020-05-20 12:08:20 -0700280 &quot;kind&quot;: &quot;doubleclickbidmanager#query&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;doubleclickbidmanager#query&quot;.
281 &quot;metadata&quot;: { # Query metadata. # Query metadata.
282 &quot;dataRange&quot;: &quot;A String&quot;, # Range of report data.
283 &quot;format&quot;: &quot;A String&quot;, # Format of the generated report.
284 &quot;googleCloudStoragePathForLatestReport&quot;: &quot;A String&quot;, # The path to the location in Google Cloud Storage where the latest report is stored.
285 &quot;googleDrivePathForLatestReport&quot;: &quot;A String&quot;, # The path in Google Drive for the latest report.
286 &quot;latestReportRunTimeMs&quot;: &quot;A String&quot;, # The time when the latest report started to run.
287 &quot;locale&quot;: &quot;A String&quot;, # Locale of the generated reports. Valid values are cs CZECH de GERMAN en ENGLISH es SPANISH fr FRENCH it ITALIAN ja JAPANESE ko KOREAN pl POLISH pt-BR BRAZILIAN_PORTUGUESE ru RUSSIAN tr TURKISH uk UKRAINIAN zh-CN CHINA_CHINESE zh-TW TAIWAN_CHINESE
288 #
289 # An locale string not in the list above will generate reports in English.
290 &quot;reportCount&quot;: 42, # Number of reports that have been generated for the query.
291 &quot;running&quot;: True or False, # Whether the latest report is currently running.
292 &quot;sendNotification&quot;: True or False, # Whether to send an email notification when a report is ready. Default to false.
293 &quot;shareEmailAddress&quot;: [ # List of email addresses which are sent email notifications when the report is finished. Separate from sendNotification.
294 &quot;A String&quot;,
295 ],
296 &quot;title&quot;: &quot;A String&quot;, # Query title. It is used to name the reports generated from this query.
297 },
298 &quot;params&quot;: { # Parameters of a query or report. # Query parameters.
299 &quot;filters&quot;: [ # Filters used to match traffic data in your report.
300 { # Filter used to match traffic data in your report.
301 &quot;type&quot;: &quot;A String&quot;, # Filter type.
302 &quot;value&quot;: &quot;A String&quot;, # Filter value.
303 },
304 ],
305 &quot;groupBys&quot;: [ # Data is grouped by the filters listed in this field.
306 &quot;A String&quot;,
307 ],
308 &quot;includeInviteData&quot;: True or False, # Deprecated. This field is no longer in use.
309 &quot;metrics&quot;: [ # Metrics to include as columns in your report.
310 &quot;A String&quot;,
311 ],
312 &quot;type&quot;: &quot;A String&quot;, # Report type.
313 },
314 &quot;queryId&quot;: &quot;A String&quot;, # Query ID.
315 &quot;reportDataEndTimeMs&quot;: &quot;A String&quot;, # The ending time for the data that is shown in the report. Note, reportDataEndTimeMs is required if metadata.dataRange is CUSTOM_DATES and ignored otherwise.
316 &quot;reportDataStartTimeMs&quot;: &quot;A String&quot;, # The starting time for the data that is shown in the report. Note, reportDataStartTimeMs is required if metadata.dataRange is CUSTOM_DATES and ignored otherwise.
317 &quot;schedule&quot;: { # Information on how frequently and when to run a query. # Information on how often and when to run a query.
318 &quot;endTimeMs&quot;: &quot;A String&quot;, # Datetime to periodically run the query until.
319 &quot;frequency&quot;: &quot;A String&quot;, # How often the query is run.
320 &quot;nextRunMinuteOfDay&quot;: 42, # Time of day at which a new report will be generated, represented as minutes past midnight. Range is 0 to 1439. Only applies to scheduled reports.
321 &quot;nextRunTimezoneCode&quot;: &quot;A String&quot;, # Canonical timezone code for report generation time. Defaults to America/New_York.
322 },
323 &quot;timezoneCode&quot;: &quot;A String&quot;, # Canonical timezone code for report data time. Defaults to America/New_York.
John Asmuth614db982014-04-24 15:46:26 -0400324 },
John Asmuth614db982014-04-24 15:46:26 -0400325 ],
326 }</pre>
327</div>
328
329<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700330 <code class="details" id="runquery">runquery(queryId, body=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400331 <pre>Runs a stored query to generate a report.
332
333Args:
334 queryId: string, Query ID to run. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700335 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400336 The object takes the form of:
337
338{ # Request to run a stored query to generate a report.
Bu Sun Kim65020912020-05-20 12:08:20 -0700339 &quot;dataRange&quot;: &quot;A String&quot;, # Report data range used to generate the report.
340 &quot;reportDataEndTimeMs&quot;: &quot;A String&quot;, # The ending time for the data that is shown in the report. Note, reportDataEndTimeMs is required if dataRange is CUSTOM_DATES and ignored otherwise.
341 &quot;reportDataStartTimeMs&quot;: &quot;A String&quot;, # The starting time for the data that is shown in the report. Note, reportDataStartTimeMs is required if dataRange is CUSTOM_DATES and ignored otherwise.
342 &quot;timezoneCode&quot;: &quot;A String&quot;, # Canonical timezone code for report data time. Defaults to America/New_York.
John Asmuth614db982014-04-24 15:46:26 -0400343 }
344
345</pre>
346</div>
347
348</body></html>