• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<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="doubleclicksearch_v2.html">Search Ads 360 API</a> . <a href="doubleclicksearch_v2.reports.html">reports</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78  <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
81  <code><a href="#generate">generate(body=None, x__xgafv=None)</a></code></p>
82<p class="firstline">Generates and returns a report immediately.</p>
83<p class="toc_element">
84  <code><a href="#get">get(reportId, x__xgafv=None)</a></code></p>
85<p class="firstline">Polls for the status of a report request.</p>
86<p class="toc_element">
87  <code><a href="#getFile">getFile(reportId, reportFragment, x__xgafv=None)</a></code></p>
88<p class="firstline">Downloads a report file encoded in UTF-8.</p>
89<p class="toc_element">
90  <code><a href="#getFile_media">getFile_media(reportId, reportFragment, x__xgafv=None)</a></code></p>
91<p class="firstline">Downloads a report file encoded in UTF-8.</p>
92<p class="toc_element">
93  <code><a href="#request">request(body=None, x__xgafv=None)</a></code></p>
94<p class="firstline">Inserts a report request into the reporting system.</p>
95<h3>Method Details</h3>
96<div class="method">
97    <code class="details" id="close">close()</code>
98  <pre>Close httplib2 connections.</pre>
99</div>
100
101<div class="method">
102    <code class="details" id="generate">generate(body=None, x__xgafv=None)</code>
103  <pre>Generates and returns a report immediately.
104
105Args:
106  body: object, The request body.
107    The object takes the form of:
108
109{ # A request object used to create a DoubleClick Search report.
110  &quot;columns&quot;: [ # The columns to include in the report. This includes both DoubleClick Search columns and saved columns. For DoubleClick Search columns, only the `columnName` parameter is required. For saved columns only the `savedColumnName` parameter is required. Both `columnName` and `savedColumnName` cannot be set in the same stanza.\ The maximum number of columns per request is 300.
111    { # A request object used to create a DoubleClick Search report.
112      &quot;columnName&quot;: &quot;A String&quot;, # Name of a DoubleClick Search column to include in the report.
113      &quot;customDimensionName&quot;: &quot;A String&quot;, # Segments a report by a custom dimension. The report must be scoped to an advertiser or lower, and the custom dimension must already be set up in DoubleClick Search. The custom dimension name, which appears in DoubleClick Search, is case sensitive.\ If used in a conversion report, returns the value of the specified custom dimension for the given conversion, if set. This column does not segment the conversion report.
114      &quot;customMetricName&quot;: &quot;A String&quot;, # Name of a custom metric to include in the report. The report must be scoped to an advertiser or lower, and the custom metric must already be set up in DoubleClick Search. The custom metric name, which appears in DoubleClick Search, is case sensitive.
115      &quot;endDate&quot;: &quot;A String&quot;, # Inclusive day in YYYY-MM-DD format. When provided, this overrides the overall time range of the report for this column only. Must be provided together with `startDate`.
116      &quot;groupByColumn&quot;: True or False, # Synchronous report only. Set to `true` to group by this column. Defaults to `false`.
117      &quot;headerText&quot;: &quot;A String&quot;, # Text used to identify this column in the report output; defaults to `columnName` or `savedColumnName` when not specified. This can be used to prevent collisions between DoubleClick Search columns and saved columns with the same name.
118      &quot;platformSource&quot;: &quot;A String&quot;, # The platform that is used to provide data for the custom dimension. Acceptable values are &quot;floodlight&quot;.
119      &quot;productReportPerspective&quot;: &quot;A String&quot;, # Returns metrics only for a specific type of product activity. Accepted values are: - &quot;`sold`&quot;: returns metrics only for products that were sold - &quot;`advertised`&quot;: returns metrics only for products that were advertised in a Shopping campaign, and that might or might not have been sold
120      &quot;savedColumnName&quot;: &quot;A String&quot;, # Name of a saved column to include in the report. The report must be scoped at advertiser or lower, and this saved column must already be created in the DoubleClick Search UI.
121      &quot;startDate&quot;: &quot;A String&quot;, # Inclusive date in YYYY-MM-DD format. When provided, this overrides the overall time range of the report for this column only. Must be provided together with `endDate`.
122    },
123  ],
124  &quot;downloadFormat&quot;: &quot;A String&quot;, # Format that the report should be returned in. Currently `csv` or `tsv` is supported.
125  &quot;filters&quot;: [ # A list of filters to be applied to the report.\ The maximum number of filters per request is 300.
126    {
127      &quot;column&quot;: { # A request object used to create a DoubleClick Search report. # Column to perform the filter on. This can be a DoubleClick Search column or a saved column.
128        &quot;columnName&quot;: &quot;A String&quot;, # Name of a DoubleClick Search column to include in the report.
129        &quot;customDimensionName&quot;: &quot;A String&quot;, # Segments a report by a custom dimension. The report must be scoped to an advertiser or lower, and the custom dimension must already be set up in DoubleClick Search. The custom dimension name, which appears in DoubleClick Search, is case sensitive.\ If used in a conversion report, returns the value of the specified custom dimension for the given conversion, if set. This column does not segment the conversion report.
130        &quot;customMetricName&quot;: &quot;A String&quot;, # Name of a custom metric to include in the report. The report must be scoped to an advertiser or lower, and the custom metric must already be set up in DoubleClick Search. The custom metric name, which appears in DoubleClick Search, is case sensitive.
131        &quot;endDate&quot;: &quot;A String&quot;, # Inclusive day in YYYY-MM-DD format. When provided, this overrides the overall time range of the report for this column only. Must be provided together with `startDate`.
132        &quot;groupByColumn&quot;: True or False, # Synchronous report only. Set to `true` to group by this column. Defaults to `false`.
133        &quot;headerText&quot;: &quot;A String&quot;, # Text used to identify this column in the report output; defaults to `columnName` or `savedColumnName` when not specified. This can be used to prevent collisions between DoubleClick Search columns and saved columns with the same name.
134        &quot;platformSource&quot;: &quot;A String&quot;, # The platform that is used to provide data for the custom dimension. Acceptable values are &quot;floodlight&quot;.
135        &quot;productReportPerspective&quot;: &quot;A String&quot;, # Returns metrics only for a specific type of product activity. Accepted values are: - &quot;`sold`&quot;: returns metrics only for products that were sold - &quot;`advertised`&quot;: returns metrics only for products that were advertised in a Shopping campaign, and that might or might not have been sold
136        &quot;savedColumnName&quot;: &quot;A String&quot;, # Name of a saved column to include in the report. The report must be scoped at advertiser or lower, and this saved column must already be created in the DoubleClick Search UI.
137        &quot;startDate&quot;: &quot;A String&quot;, # Inclusive date in YYYY-MM-DD format. When provided, this overrides the overall time range of the report for this column only. Must be provided together with `endDate`.
138      },
139      &quot;operator&quot;: &quot;A String&quot;, # Operator to use in the filter. See the filter reference for a list of available operators.
140      &quot;values&quot;: [ # A list of values to filter the column value against.\ The maximum number of filter values per request is 300.
141        &quot;&quot;,
142      ],
143    },
144  ],
145  &quot;includeDeletedEntities&quot;: True or False, # Determines if removed entities should be included in the report. Defaults to `false`. Deprecated, please use `includeRemovedEntities` instead.
146  &quot;includeRemovedEntities&quot;: True or False, # Determines if removed entities should be included in the report. Defaults to `false`.
147  &quot;maxRowsPerFile&quot;: 42, # Asynchronous report only. The maximum number of rows per report file. A large report is split into many files based on this field. Acceptable values are `1000000` to `100000000`, inclusive.
148  &quot;orderBy&quot;: [ # Synchronous report only. A list of columns and directions defining sorting to be performed on the report rows.\ The maximum number of orderings per request is 300.
149    {
150      &quot;column&quot;: { # A request object used to create a DoubleClick Search report. # Column to perform the sort on. This can be a DoubleClick Search-defined column or a saved column.
151        &quot;columnName&quot;: &quot;A String&quot;, # Name of a DoubleClick Search column to include in the report.
152        &quot;customDimensionName&quot;: &quot;A String&quot;, # Segments a report by a custom dimension. The report must be scoped to an advertiser or lower, and the custom dimension must already be set up in DoubleClick Search. The custom dimension name, which appears in DoubleClick Search, is case sensitive.\ If used in a conversion report, returns the value of the specified custom dimension for the given conversion, if set. This column does not segment the conversion report.
153        &quot;customMetricName&quot;: &quot;A String&quot;, # Name of a custom metric to include in the report. The report must be scoped to an advertiser or lower, and the custom metric must already be set up in DoubleClick Search. The custom metric name, which appears in DoubleClick Search, is case sensitive.
154        &quot;endDate&quot;: &quot;A String&quot;, # Inclusive day in YYYY-MM-DD format. When provided, this overrides the overall time range of the report for this column only. Must be provided together with `startDate`.
155        &quot;groupByColumn&quot;: True or False, # Synchronous report only. Set to `true` to group by this column. Defaults to `false`.
156        &quot;headerText&quot;: &quot;A String&quot;, # Text used to identify this column in the report output; defaults to `columnName` or `savedColumnName` when not specified. This can be used to prevent collisions between DoubleClick Search columns and saved columns with the same name.
157        &quot;platformSource&quot;: &quot;A String&quot;, # The platform that is used to provide data for the custom dimension. Acceptable values are &quot;floodlight&quot;.
158        &quot;productReportPerspective&quot;: &quot;A String&quot;, # Returns metrics only for a specific type of product activity. Accepted values are: - &quot;`sold`&quot;: returns metrics only for products that were sold - &quot;`advertised`&quot;: returns metrics only for products that were advertised in a Shopping campaign, and that might or might not have been sold
159        &quot;savedColumnName&quot;: &quot;A String&quot;, # Name of a saved column to include in the report. The report must be scoped at advertiser or lower, and this saved column must already be created in the DoubleClick Search UI.
160        &quot;startDate&quot;: &quot;A String&quot;, # Inclusive date in YYYY-MM-DD format. When provided, this overrides the overall time range of the report for this column only. Must be provided together with `endDate`.
161      },
162      &quot;sortOrder&quot;: &quot;A String&quot;, # The sort direction, which is either `ascending` or `descending`.
163    },
164  ],
165  &quot;reportScope&quot;: { # The reportScope is a set of IDs that are used to determine which subset of entities will be returned in the report. The full lineage of IDs from the lowest scoped level desired up through agency is required.
166    &quot;adGroupId&quot;: &quot;A String&quot;, # DS ad group ID.
167    &quot;adId&quot;: &quot;A String&quot;, # DS ad ID.
168    &quot;advertiserId&quot;: &quot;A String&quot;, # DS advertiser ID.
169    &quot;agencyId&quot;: &quot;A String&quot;, # DS agency ID.
170    &quot;campaignId&quot;: &quot;A String&quot;, # DS campaign ID.
171    &quot;engineAccountId&quot;: &quot;A String&quot;, # DS engine account ID.
172    &quot;keywordId&quot;: &quot;A String&quot;, # DS keyword ID.
173  },
174  &quot;reportType&quot;: &quot;A String&quot;, # Determines the type of rows that are returned in the report. For example, if you specify `reportType: keyword`, each row in the report will contain data about a keyword. See the [Types of Reports](/search-ads/v2/report-types/) reference for the columns that are available for each type.
175  &quot;rowCount&quot;: 42, # Synchronous report only. The maximum number of rows to return; additional rows are dropped. Acceptable values are `0` to `10000`, inclusive. Defaults to `10000`.
176  &quot;startRow&quot;: 42, # Synchronous report only. Zero-based index of the first row to return. Acceptable values are `0` to `50000`, inclusive. Defaults to `0`.
177  &quot;statisticsCurrency&quot;: &quot;A String&quot;, # Specifies the currency in which monetary will be returned. Possible values are: `usd`, `agency` (valid if the report is scoped to agency or lower), `advertiser` (valid if the report is scoped to * advertiser or lower), or `account` (valid if the report is scoped to engine account or lower).
178  &quot;timeRange&quot;: { # If metrics are requested in a report, this argument will be used to restrict the metrics to a specific time range.
179    &quot;changedAttributesSinceTimestamp&quot;: &quot;A String&quot;, # Inclusive UTC timestamp in RFC format, e.g., `2013-07-16T10:16:23.555Z`. See additional references on how changed attribute reports work.
180    &quot;changedMetricsSinceTimestamp&quot;: &quot;A String&quot;, # Inclusive UTC timestamp in RFC format, e.g., `2013-07-16T10:16:23.555Z`. See additional references on how changed metrics reports work.
181    &quot;endDate&quot;: &quot;A String&quot;, # Inclusive date in YYYY-MM-DD format.
182    &quot;startDate&quot;: &quot;A String&quot;, # Inclusive date in YYYY-MM-DD format.
183  },
184  &quot;verifySingleTimeZone&quot;: True or False, # If `true`, the report would only be created if all the requested stat data are sourced from a single timezone. Defaults to `false`.
185}
186
187  x__xgafv: string, V1 error format.
188    Allowed values
189      1 - v1 error format
190      2 - v2 error format
191
192Returns:
193  An object of the form:
194
195    { # A DoubleClick Search report. This object contains the report request, some report metadata such as currency code, and the generated report rows or report files.
196  &quot;files&quot;: [ # Asynchronous report only. Contains a list of generated report files once the report has successfully completed.
197    {
198      &quot;byteCount&quot;: &quot;A String&quot;, # The size of this report file in bytes.
199      &quot;url&quot;: &quot;A String&quot;, # Use this url to download the report file.
200    },
201  ],
202  &quot;id&quot;: &quot;A String&quot;, # Asynchronous report only. Id of the report.
203  &quot;isReportReady&quot;: True or False, # Asynchronous report only. True if and only if the report has completed successfully and the report files are ready to be downloaded.
204  &quot;kind&quot;: &quot;A String&quot;, # Identifies this as a Report resource. Value: the fixed string `doubleclicksearch#report`.
205  &quot;request&quot;: { # A request object used to create a DoubleClick Search report. # The request that created the report. Optional fields not specified in the original request are filled with default values.
206    &quot;columns&quot;: [ # The columns to include in the report. This includes both DoubleClick Search columns and saved columns. For DoubleClick Search columns, only the `columnName` parameter is required. For saved columns only the `savedColumnName` parameter is required. Both `columnName` and `savedColumnName` cannot be set in the same stanza.\ The maximum number of columns per request is 300.
207      { # A request object used to create a DoubleClick Search report.
208        &quot;columnName&quot;: &quot;A String&quot;, # Name of a DoubleClick Search column to include in the report.
209        &quot;customDimensionName&quot;: &quot;A String&quot;, # Segments a report by a custom dimension. The report must be scoped to an advertiser or lower, and the custom dimension must already be set up in DoubleClick Search. The custom dimension name, which appears in DoubleClick Search, is case sensitive.\ If used in a conversion report, returns the value of the specified custom dimension for the given conversion, if set. This column does not segment the conversion report.
210        &quot;customMetricName&quot;: &quot;A String&quot;, # Name of a custom metric to include in the report. The report must be scoped to an advertiser or lower, and the custom metric must already be set up in DoubleClick Search. The custom metric name, which appears in DoubleClick Search, is case sensitive.
211        &quot;endDate&quot;: &quot;A String&quot;, # Inclusive day in YYYY-MM-DD format. When provided, this overrides the overall time range of the report for this column only. Must be provided together with `startDate`.
212        &quot;groupByColumn&quot;: True or False, # Synchronous report only. Set to `true` to group by this column. Defaults to `false`.
213        &quot;headerText&quot;: &quot;A String&quot;, # Text used to identify this column in the report output; defaults to `columnName` or `savedColumnName` when not specified. This can be used to prevent collisions between DoubleClick Search columns and saved columns with the same name.
214        &quot;platformSource&quot;: &quot;A String&quot;, # The platform that is used to provide data for the custom dimension. Acceptable values are &quot;floodlight&quot;.
215        &quot;productReportPerspective&quot;: &quot;A String&quot;, # Returns metrics only for a specific type of product activity. Accepted values are: - &quot;`sold`&quot;: returns metrics only for products that were sold - &quot;`advertised`&quot;: returns metrics only for products that were advertised in a Shopping campaign, and that might or might not have been sold
216        &quot;savedColumnName&quot;: &quot;A String&quot;, # Name of a saved column to include in the report. The report must be scoped at advertiser or lower, and this saved column must already be created in the DoubleClick Search UI.
217        &quot;startDate&quot;: &quot;A String&quot;, # Inclusive date in YYYY-MM-DD format. When provided, this overrides the overall time range of the report for this column only. Must be provided together with `endDate`.
218      },
219    ],
220    &quot;downloadFormat&quot;: &quot;A String&quot;, # Format that the report should be returned in. Currently `csv` or `tsv` is supported.
221    &quot;filters&quot;: [ # A list of filters to be applied to the report.\ The maximum number of filters per request is 300.
222      {
223        &quot;column&quot;: { # A request object used to create a DoubleClick Search report. # Column to perform the filter on. This can be a DoubleClick Search column or a saved column.
224          &quot;columnName&quot;: &quot;A String&quot;, # Name of a DoubleClick Search column to include in the report.
225          &quot;customDimensionName&quot;: &quot;A String&quot;, # Segments a report by a custom dimension. The report must be scoped to an advertiser or lower, and the custom dimension must already be set up in DoubleClick Search. The custom dimension name, which appears in DoubleClick Search, is case sensitive.\ If used in a conversion report, returns the value of the specified custom dimension for the given conversion, if set. This column does not segment the conversion report.
226          &quot;customMetricName&quot;: &quot;A String&quot;, # Name of a custom metric to include in the report. The report must be scoped to an advertiser or lower, and the custom metric must already be set up in DoubleClick Search. The custom metric name, which appears in DoubleClick Search, is case sensitive.
227          &quot;endDate&quot;: &quot;A String&quot;, # Inclusive day in YYYY-MM-DD format. When provided, this overrides the overall time range of the report for this column only. Must be provided together with `startDate`.
228          &quot;groupByColumn&quot;: True or False, # Synchronous report only. Set to `true` to group by this column. Defaults to `false`.
229          &quot;headerText&quot;: &quot;A String&quot;, # Text used to identify this column in the report output; defaults to `columnName` or `savedColumnName` when not specified. This can be used to prevent collisions between DoubleClick Search columns and saved columns with the same name.
230          &quot;platformSource&quot;: &quot;A String&quot;, # The platform that is used to provide data for the custom dimension. Acceptable values are &quot;floodlight&quot;.
231          &quot;productReportPerspective&quot;: &quot;A String&quot;, # Returns metrics only for a specific type of product activity. Accepted values are: - &quot;`sold`&quot;: returns metrics only for products that were sold - &quot;`advertised`&quot;: returns metrics only for products that were advertised in a Shopping campaign, and that might or might not have been sold
232          &quot;savedColumnName&quot;: &quot;A String&quot;, # Name of a saved column to include in the report. The report must be scoped at advertiser or lower, and this saved column must already be created in the DoubleClick Search UI.
233          &quot;startDate&quot;: &quot;A String&quot;, # Inclusive date in YYYY-MM-DD format. When provided, this overrides the overall time range of the report for this column only. Must be provided together with `endDate`.
234        },
235        &quot;operator&quot;: &quot;A String&quot;, # Operator to use in the filter. See the filter reference for a list of available operators.
236        &quot;values&quot;: [ # A list of values to filter the column value against.\ The maximum number of filter values per request is 300.
237          &quot;&quot;,
238        ],
239      },
240    ],
241    &quot;includeDeletedEntities&quot;: True or False, # Determines if removed entities should be included in the report. Defaults to `false`. Deprecated, please use `includeRemovedEntities` instead.
242    &quot;includeRemovedEntities&quot;: True or False, # Determines if removed entities should be included in the report. Defaults to `false`.
243    &quot;maxRowsPerFile&quot;: 42, # Asynchronous report only. The maximum number of rows per report file. A large report is split into many files based on this field. Acceptable values are `1000000` to `100000000`, inclusive.
244    &quot;orderBy&quot;: [ # Synchronous report only. A list of columns and directions defining sorting to be performed on the report rows.\ The maximum number of orderings per request is 300.
245      {
246        &quot;column&quot;: { # A request object used to create a DoubleClick Search report. # Column to perform the sort on. This can be a DoubleClick Search-defined column or a saved column.
247          &quot;columnName&quot;: &quot;A String&quot;, # Name of a DoubleClick Search column to include in the report.
248          &quot;customDimensionName&quot;: &quot;A String&quot;, # Segments a report by a custom dimension. The report must be scoped to an advertiser or lower, and the custom dimension must already be set up in DoubleClick Search. The custom dimension name, which appears in DoubleClick Search, is case sensitive.\ If used in a conversion report, returns the value of the specified custom dimension for the given conversion, if set. This column does not segment the conversion report.
249          &quot;customMetricName&quot;: &quot;A String&quot;, # Name of a custom metric to include in the report. The report must be scoped to an advertiser or lower, and the custom metric must already be set up in DoubleClick Search. The custom metric name, which appears in DoubleClick Search, is case sensitive.
250          &quot;endDate&quot;: &quot;A String&quot;, # Inclusive day in YYYY-MM-DD format. When provided, this overrides the overall time range of the report for this column only. Must be provided together with `startDate`.
251          &quot;groupByColumn&quot;: True or False, # Synchronous report only. Set to `true` to group by this column. Defaults to `false`.
252          &quot;headerText&quot;: &quot;A String&quot;, # Text used to identify this column in the report output; defaults to `columnName` or `savedColumnName` when not specified. This can be used to prevent collisions between DoubleClick Search columns and saved columns with the same name.
253          &quot;platformSource&quot;: &quot;A String&quot;, # The platform that is used to provide data for the custom dimension. Acceptable values are &quot;floodlight&quot;.
254          &quot;productReportPerspective&quot;: &quot;A String&quot;, # Returns metrics only for a specific type of product activity. Accepted values are: - &quot;`sold`&quot;: returns metrics only for products that were sold - &quot;`advertised`&quot;: returns metrics only for products that were advertised in a Shopping campaign, and that might or might not have been sold
255          &quot;savedColumnName&quot;: &quot;A String&quot;, # Name of a saved column to include in the report. The report must be scoped at advertiser or lower, and this saved column must already be created in the DoubleClick Search UI.
256          &quot;startDate&quot;: &quot;A String&quot;, # Inclusive date in YYYY-MM-DD format. When provided, this overrides the overall time range of the report for this column only. Must be provided together with `endDate`.
257        },
258        &quot;sortOrder&quot;: &quot;A String&quot;, # The sort direction, which is either `ascending` or `descending`.
259      },
260    ],
261    &quot;reportScope&quot;: { # The reportScope is a set of IDs that are used to determine which subset of entities will be returned in the report. The full lineage of IDs from the lowest scoped level desired up through agency is required.
262      &quot;adGroupId&quot;: &quot;A String&quot;, # DS ad group ID.
263      &quot;adId&quot;: &quot;A String&quot;, # DS ad ID.
264      &quot;advertiserId&quot;: &quot;A String&quot;, # DS advertiser ID.
265      &quot;agencyId&quot;: &quot;A String&quot;, # DS agency ID.
266      &quot;campaignId&quot;: &quot;A String&quot;, # DS campaign ID.
267      &quot;engineAccountId&quot;: &quot;A String&quot;, # DS engine account ID.
268      &quot;keywordId&quot;: &quot;A String&quot;, # DS keyword ID.
269    },
270    &quot;reportType&quot;: &quot;A String&quot;, # Determines the type of rows that are returned in the report. For example, if you specify `reportType: keyword`, each row in the report will contain data about a keyword. See the [Types of Reports](/search-ads/v2/report-types/) reference for the columns that are available for each type.
271    &quot;rowCount&quot;: 42, # Synchronous report only. The maximum number of rows to return; additional rows are dropped. Acceptable values are `0` to `10000`, inclusive. Defaults to `10000`.
272    &quot;startRow&quot;: 42, # Synchronous report only. Zero-based index of the first row to return. Acceptable values are `0` to `50000`, inclusive. Defaults to `0`.
273    &quot;statisticsCurrency&quot;: &quot;A String&quot;, # Specifies the currency in which monetary will be returned. Possible values are: `usd`, `agency` (valid if the report is scoped to agency or lower), `advertiser` (valid if the report is scoped to * advertiser or lower), or `account` (valid if the report is scoped to engine account or lower).
274    &quot;timeRange&quot;: { # If metrics are requested in a report, this argument will be used to restrict the metrics to a specific time range.
275      &quot;changedAttributesSinceTimestamp&quot;: &quot;A String&quot;, # Inclusive UTC timestamp in RFC format, e.g., `2013-07-16T10:16:23.555Z`. See additional references on how changed attribute reports work.
276      &quot;changedMetricsSinceTimestamp&quot;: &quot;A String&quot;, # Inclusive UTC timestamp in RFC format, e.g., `2013-07-16T10:16:23.555Z`. See additional references on how changed metrics reports work.
277      &quot;endDate&quot;: &quot;A String&quot;, # Inclusive date in YYYY-MM-DD format.
278      &quot;startDate&quot;: &quot;A String&quot;, # Inclusive date in YYYY-MM-DD format.
279    },
280    &quot;verifySingleTimeZone&quot;: True or False, # If `true`, the report would only be created if all the requested stat data are sourced from a single timezone. Defaults to `false`.
281  },
282  &quot;rowCount&quot;: 42, # The number of report rows generated by the report, not including headers.
283  &quot;rows&quot;: [ # Synchronous report only. Generated report rows.
284    { # A row in a DoubleClick Search report.
285      &quot;a_key&quot;: &quot;&quot;, # Indicates the columns that are represented in this row. That is, each key corresponds to a column with a non-empty cell in this row.
286    },
287  ],
288  &quot;statisticsCurrencyCode&quot;: &quot;A String&quot;, # The currency code of all monetary values produced in the report, including values that are set by users (e.g., keyword bid settings) and metrics (e.g., cost and revenue). The currency code of a report is determined by the `statisticsCurrency` field of the report request.
289  &quot;statisticsTimeZone&quot;: &quot;A String&quot;, # If all statistics of the report are sourced from the same time zone, this would be it. Otherwise the field is unset.
290}</pre>
291</div>
292
293<div class="method">
294    <code class="details" id="get">get(reportId, x__xgafv=None)</code>
295  <pre>Polls for the status of a report request.
296
297Args:
298  reportId: string, ID of the report request being polled. (required)
299  x__xgafv: string, V1 error format.
300    Allowed values
301      1 - v1 error format
302      2 - v2 error format
303
304Returns:
305  An object of the form:
306
307    { # A DoubleClick Search report. This object contains the report request, some report metadata such as currency code, and the generated report rows or report files.
308  &quot;files&quot;: [ # Asynchronous report only. Contains a list of generated report files once the report has successfully completed.
309    {
310      &quot;byteCount&quot;: &quot;A String&quot;, # The size of this report file in bytes.
311      &quot;url&quot;: &quot;A String&quot;, # Use this url to download the report file.
312    },
313  ],
314  &quot;id&quot;: &quot;A String&quot;, # Asynchronous report only. Id of the report.
315  &quot;isReportReady&quot;: True or False, # Asynchronous report only. True if and only if the report has completed successfully and the report files are ready to be downloaded.
316  &quot;kind&quot;: &quot;A String&quot;, # Identifies this as a Report resource. Value: the fixed string `doubleclicksearch#report`.
317  &quot;request&quot;: { # A request object used to create a DoubleClick Search report. # The request that created the report. Optional fields not specified in the original request are filled with default values.
318    &quot;columns&quot;: [ # The columns to include in the report. This includes both DoubleClick Search columns and saved columns. For DoubleClick Search columns, only the `columnName` parameter is required. For saved columns only the `savedColumnName` parameter is required. Both `columnName` and `savedColumnName` cannot be set in the same stanza.\ The maximum number of columns per request is 300.
319      { # A request object used to create a DoubleClick Search report.
320        &quot;columnName&quot;: &quot;A String&quot;, # Name of a DoubleClick Search column to include in the report.
321        &quot;customDimensionName&quot;: &quot;A String&quot;, # Segments a report by a custom dimension. The report must be scoped to an advertiser or lower, and the custom dimension must already be set up in DoubleClick Search. The custom dimension name, which appears in DoubleClick Search, is case sensitive.\ If used in a conversion report, returns the value of the specified custom dimension for the given conversion, if set. This column does not segment the conversion report.
322        &quot;customMetricName&quot;: &quot;A String&quot;, # Name of a custom metric to include in the report. The report must be scoped to an advertiser or lower, and the custom metric must already be set up in DoubleClick Search. The custom metric name, which appears in DoubleClick Search, is case sensitive.
323        &quot;endDate&quot;: &quot;A String&quot;, # Inclusive day in YYYY-MM-DD format. When provided, this overrides the overall time range of the report for this column only. Must be provided together with `startDate`.
324        &quot;groupByColumn&quot;: True or False, # Synchronous report only. Set to `true` to group by this column. Defaults to `false`.
325        &quot;headerText&quot;: &quot;A String&quot;, # Text used to identify this column in the report output; defaults to `columnName` or `savedColumnName` when not specified. This can be used to prevent collisions between DoubleClick Search columns and saved columns with the same name.
326        &quot;platformSource&quot;: &quot;A String&quot;, # The platform that is used to provide data for the custom dimension. Acceptable values are &quot;floodlight&quot;.
327        &quot;productReportPerspective&quot;: &quot;A String&quot;, # Returns metrics only for a specific type of product activity. Accepted values are: - &quot;`sold`&quot;: returns metrics only for products that were sold - &quot;`advertised`&quot;: returns metrics only for products that were advertised in a Shopping campaign, and that might or might not have been sold
328        &quot;savedColumnName&quot;: &quot;A String&quot;, # Name of a saved column to include in the report. The report must be scoped at advertiser or lower, and this saved column must already be created in the DoubleClick Search UI.
329        &quot;startDate&quot;: &quot;A String&quot;, # Inclusive date in YYYY-MM-DD format. When provided, this overrides the overall time range of the report for this column only. Must be provided together with `endDate`.
330      },
331    ],
332    &quot;downloadFormat&quot;: &quot;A String&quot;, # Format that the report should be returned in. Currently `csv` or `tsv` is supported.
333    &quot;filters&quot;: [ # A list of filters to be applied to the report.\ The maximum number of filters per request is 300.
334      {
335        &quot;column&quot;: { # A request object used to create a DoubleClick Search report. # Column to perform the filter on. This can be a DoubleClick Search column or a saved column.
336          &quot;columnName&quot;: &quot;A String&quot;, # Name of a DoubleClick Search column to include in the report.
337          &quot;customDimensionName&quot;: &quot;A String&quot;, # Segments a report by a custom dimension. The report must be scoped to an advertiser or lower, and the custom dimension must already be set up in DoubleClick Search. The custom dimension name, which appears in DoubleClick Search, is case sensitive.\ If used in a conversion report, returns the value of the specified custom dimension for the given conversion, if set. This column does not segment the conversion report.
338          &quot;customMetricName&quot;: &quot;A String&quot;, # Name of a custom metric to include in the report. The report must be scoped to an advertiser or lower, and the custom metric must already be set up in DoubleClick Search. The custom metric name, which appears in DoubleClick Search, is case sensitive.
339          &quot;endDate&quot;: &quot;A String&quot;, # Inclusive day in YYYY-MM-DD format. When provided, this overrides the overall time range of the report for this column only. Must be provided together with `startDate`.
340          &quot;groupByColumn&quot;: True or False, # Synchronous report only. Set to `true` to group by this column. Defaults to `false`.
341          &quot;headerText&quot;: &quot;A String&quot;, # Text used to identify this column in the report output; defaults to `columnName` or `savedColumnName` when not specified. This can be used to prevent collisions between DoubleClick Search columns and saved columns with the same name.
342          &quot;platformSource&quot;: &quot;A String&quot;, # The platform that is used to provide data for the custom dimension. Acceptable values are &quot;floodlight&quot;.
343          &quot;productReportPerspective&quot;: &quot;A String&quot;, # Returns metrics only for a specific type of product activity. Accepted values are: - &quot;`sold`&quot;: returns metrics only for products that were sold - &quot;`advertised`&quot;: returns metrics only for products that were advertised in a Shopping campaign, and that might or might not have been sold
344          &quot;savedColumnName&quot;: &quot;A String&quot;, # Name of a saved column to include in the report. The report must be scoped at advertiser or lower, and this saved column must already be created in the DoubleClick Search UI.
345          &quot;startDate&quot;: &quot;A String&quot;, # Inclusive date in YYYY-MM-DD format. When provided, this overrides the overall time range of the report for this column only. Must be provided together with `endDate`.
346        },
347        &quot;operator&quot;: &quot;A String&quot;, # Operator to use in the filter. See the filter reference for a list of available operators.
348        &quot;values&quot;: [ # A list of values to filter the column value against.\ The maximum number of filter values per request is 300.
349          &quot;&quot;,
350        ],
351      },
352    ],
353    &quot;includeDeletedEntities&quot;: True or False, # Determines if removed entities should be included in the report. Defaults to `false`. Deprecated, please use `includeRemovedEntities` instead.
354    &quot;includeRemovedEntities&quot;: True or False, # Determines if removed entities should be included in the report. Defaults to `false`.
355    &quot;maxRowsPerFile&quot;: 42, # Asynchronous report only. The maximum number of rows per report file. A large report is split into many files based on this field. Acceptable values are `1000000` to `100000000`, inclusive.
356    &quot;orderBy&quot;: [ # Synchronous report only. A list of columns and directions defining sorting to be performed on the report rows.\ The maximum number of orderings per request is 300.
357      {
358        &quot;column&quot;: { # A request object used to create a DoubleClick Search report. # Column to perform the sort on. This can be a DoubleClick Search-defined column or a saved column.
359          &quot;columnName&quot;: &quot;A String&quot;, # Name of a DoubleClick Search column to include in the report.
360          &quot;customDimensionName&quot;: &quot;A String&quot;, # Segments a report by a custom dimension. The report must be scoped to an advertiser or lower, and the custom dimension must already be set up in DoubleClick Search. The custom dimension name, which appears in DoubleClick Search, is case sensitive.\ If used in a conversion report, returns the value of the specified custom dimension for the given conversion, if set. This column does not segment the conversion report.
361          &quot;customMetricName&quot;: &quot;A String&quot;, # Name of a custom metric to include in the report. The report must be scoped to an advertiser or lower, and the custom metric must already be set up in DoubleClick Search. The custom metric name, which appears in DoubleClick Search, is case sensitive.
362          &quot;endDate&quot;: &quot;A String&quot;, # Inclusive day in YYYY-MM-DD format. When provided, this overrides the overall time range of the report for this column only. Must be provided together with `startDate`.
363          &quot;groupByColumn&quot;: True or False, # Synchronous report only. Set to `true` to group by this column. Defaults to `false`.
364          &quot;headerText&quot;: &quot;A String&quot;, # Text used to identify this column in the report output; defaults to `columnName` or `savedColumnName` when not specified. This can be used to prevent collisions between DoubleClick Search columns and saved columns with the same name.
365          &quot;platformSource&quot;: &quot;A String&quot;, # The platform that is used to provide data for the custom dimension. Acceptable values are &quot;floodlight&quot;.
366          &quot;productReportPerspective&quot;: &quot;A String&quot;, # Returns metrics only for a specific type of product activity. Accepted values are: - &quot;`sold`&quot;: returns metrics only for products that were sold - &quot;`advertised`&quot;: returns metrics only for products that were advertised in a Shopping campaign, and that might or might not have been sold
367          &quot;savedColumnName&quot;: &quot;A String&quot;, # Name of a saved column to include in the report. The report must be scoped at advertiser or lower, and this saved column must already be created in the DoubleClick Search UI.
368          &quot;startDate&quot;: &quot;A String&quot;, # Inclusive date in YYYY-MM-DD format. When provided, this overrides the overall time range of the report for this column only. Must be provided together with `endDate`.
369        },
370        &quot;sortOrder&quot;: &quot;A String&quot;, # The sort direction, which is either `ascending` or `descending`.
371      },
372    ],
373    &quot;reportScope&quot;: { # The reportScope is a set of IDs that are used to determine which subset of entities will be returned in the report. The full lineage of IDs from the lowest scoped level desired up through agency is required.
374      &quot;adGroupId&quot;: &quot;A String&quot;, # DS ad group ID.
375      &quot;adId&quot;: &quot;A String&quot;, # DS ad ID.
376      &quot;advertiserId&quot;: &quot;A String&quot;, # DS advertiser ID.
377      &quot;agencyId&quot;: &quot;A String&quot;, # DS agency ID.
378      &quot;campaignId&quot;: &quot;A String&quot;, # DS campaign ID.
379      &quot;engineAccountId&quot;: &quot;A String&quot;, # DS engine account ID.
380      &quot;keywordId&quot;: &quot;A String&quot;, # DS keyword ID.
381    },
382    &quot;reportType&quot;: &quot;A String&quot;, # Determines the type of rows that are returned in the report. For example, if you specify `reportType: keyword`, each row in the report will contain data about a keyword. See the [Types of Reports](/search-ads/v2/report-types/) reference for the columns that are available for each type.
383    &quot;rowCount&quot;: 42, # Synchronous report only. The maximum number of rows to return; additional rows are dropped. Acceptable values are `0` to `10000`, inclusive. Defaults to `10000`.
384    &quot;startRow&quot;: 42, # Synchronous report only. Zero-based index of the first row to return. Acceptable values are `0` to `50000`, inclusive. Defaults to `0`.
385    &quot;statisticsCurrency&quot;: &quot;A String&quot;, # Specifies the currency in which monetary will be returned. Possible values are: `usd`, `agency` (valid if the report is scoped to agency or lower), `advertiser` (valid if the report is scoped to * advertiser or lower), or `account` (valid if the report is scoped to engine account or lower).
386    &quot;timeRange&quot;: { # If metrics are requested in a report, this argument will be used to restrict the metrics to a specific time range.
387      &quot;changedAttributesSinceTimestamp&quot;: &quot;A String&quot;, # Inclusive UTC timestamp in RFC format, e.g., `2013-07-16T10:16:23.555Z`. See additional references on how changed attribute reports work.
388      &quot;changedMetricsSinceTimestamp&quot;: &quot;A String&quot;, # Inclusive UTC timestamp in RFC format, e.g., `2013-07-16T10:16:23.555Z`. See additional references on how changed metrics reports work.
389      &quot;endDate&quot;: &quot;A String&quot;, # Inclusive date in YYYY-MM-DD format.
390      &quot;startDate&quot;: &quot;A String&quot;, # Inclusive date in YYYY-MM-DD format.
391    },
392    &quot;verifySingleTimeZone&quot;: True or False, # If `true`, the report would only be created if all the requested stat data are sourced from a single timezone. Defaults to `false`.
393  },
394  &quot;rowCount&quot;: 42, # The number of report rows generated by the report, not including headers.
395  &quot;rows&quot;: [ # Synchronous report only. Generated report rows.
396    { # A row in a DoubleClick Search report.
397      &quot;a_key&quot;: &quot;&quot;, # Indicates the columns that are represented in this row. That is, each key corresponds to a column with a non-empty cell in this row.
398    },
399  ],
400  &quot;statisticsCurrencyCode&quot;: &quot;A String&quot;, # The currency code of all monetary values produced in the report, including values that are set by users (e.g., keyword bid settings) and metrics (e.g., cost and revenue). The currency code of a report is determined by the `statisticsCurrency` field of the report request.
401  &quot;statisticsTimeZone&quot;: &quot;A String&quot;, # If all statistics of the report are sourced from the same time zone, this would be it. Otherwise the field is unset.
402}</pre>
403</div>
404
405<div class="method">
406    <code class="details" id="getFile">getFile(reportId, reportFragment, x__xgafv=None)</code>
407  <pre>Downloads a report file encoded in UTF-8.
408
409Args:
410  reportId: string, ID of the report. (required)
411  reportFragment: integer, The index of the report fragment to download. (required)
412  x__xgafv: string, V1 error format.
413    Allowed values
414      1 - v1 error format
415      2 - v2 error format
416</pre>
417</div>
418
419<div class="method">
420    <code class="details" id="getFile_media">getFile_media(reportId, reportFragment, x__xgafv=None)</code>
421  <pre>Downloads a report file encoded in UTF-8.
422
423Args:
424  reportId: string, ID of the report. (required)
425  reportFragment: integer, The index of the report fragment to download. (required)
426  x__xgafv: string, V1 error format.
427    Allowed values
428      1 - v1 error format
429      2 - v2 error format
430</pre>
431</div>
432
433<div class="method">
434    <code class="details" id="request">request(body=None, x__xgafv=None)</code>
435  <pre>Inserts a report request into the reporting system.
436
437Args:
438  body: object, The request body.
439    The object takes the form of:
440
441{ # A request object used to create a DoubleClick Search report.
442  &quot;columns&quot;: [ # The columns to include in the report. This includes both DoubleClick Search columns and saved columns. For DoubleClick Search columns, only the `columnName` parameter is required. For saved columns only the `savedColumnName` parameter is required. Both `columnName` and `savedColumnName` cannot be set in the same stanza.\ The maximum number of columns per request is 300.
443    { # A request object used to create a DoubleClick Search report.
444      &quot;columnName&quot;: &quot;A String&quot;, # Name of a DoubleClick Search column to include in the report.
445      &quot;customDimensionName&quot;: &quot;A String&quot;, # Segments a report by a custom dimension. The report must be scoped to an advertiser or lower, and the custom dimension must already be set up in DoubleClick Search. The custom dimension name, which appears in DoubleClick Search, is case sensitive.\ If used in a conversion report, returns the value of the specified custom dimension for the given conversion, if set. This column does not segment the conversion report.
446      &quot;customMetricName&quot;: &quot;A String&quot;, # Name of a custom metric to include in the report. The report must be scoped to an advertiser or lower, and the custom metric must already be set up in DoubleClick Search. The custom metric name, which appears in DoubleClick Search, is case sensitive.
447      &quot;endDate&quot;: &quot;A String&quot;, # Inclusive day in YYYY-MM-DD format. When provided, this overrides the overall time range of the report for this column only. Must be provided together with `startDate`.
448      &quot;groupByColumn&quot;: True or False, # Synchronous report only. Set to `true` to group by this column. Defaults to `false`.
449      &quot;headerText&quot;: &quot;A String&quot;, # Text used to identify this column in the report output; defaults to `columnName` or `savedColumnName` when not specified. This can be used to prevent collisions between DoubleClick Search columns and saved columns with the same name.
450      &quot;platformSource&quot;: &quot;A String&quot;, # The platform that is used to provide data for the custom dimension. Acceptable values are &quot;floodlight&quot;.
451      &quot;productReportPerspective&quot;: &quot;A String&quot;, # Returns metrics only for a specific type of product activity. Accepted values are: - &quot;`sold`&quot;: returns metrics only for products that were sold - &quot;`advertised`&quot;: returns metrics only for products that were advertised in a Shopping campaign, and that might or might not have been sold
452      &quot;savedColumnName&quot;: &quot;A String&quot;, # Name of a saved column to include in the report. The report must be scoped at advertiser or lower, and this saved column must already be created in the DoubleClick Search UI.
453      &quot;startDate&quot;: &quot;A String&quot;, # Inclusive date in YYYY-MM-DD format. When provided, this overrides the overall time range of the report for this column only. Must be provided together with `endDate`.
454    },
455  ],
456  &quot;downloadFormat&quot;: &quot;A String&quot;, # Format that the report should be returned in. Currently `csv` or `tsv` is supported.
457  &quot;filters&quot;: [ # A list of filters to be applied to the report.\ The maximum number of filters per request is 300.
458    {
459      &quot;column&quot;: { # A request object used to create a DoubleClick Search report. # Column to perform the filter on. This can be a DoubleClick Search column or a saved column.
460        &quot;columnName&quot;: &quot;A String&quot;, # Name of a DoubleClick Search column to include in the report.
461        &quot;customDimensionName&quot;: &quot;A String&quot;, # Segments a report by a custom dimension. The report must be scoped to an advertiser or lower, and the custom dimension must already be set up in DoubleClick Search. The custom dimension name, which appears in DoubleClick Search, is case sensitive.\ If used in a conversion report, returns the value of the specified custom dimension for the given conversion, if set. This column does not segment the conversion report.
462        &quot;customMetricName&quot;: &quot;A String&quot;, # Name of a custom metric to include in the report. The report must be scoped to an advertiser or lower, and the custom metric must already be set up in DoubleClick Search. The custom metric name, which appears in DoubleClick Search, is case sensitive.
463        &quot;endDate&quot;: &quot;A String&quot;, # Inclusive day in YYYY-MM-DD format. When provided, this overrides the overall time range of the report for this column only. Must be provided together with `startDate`.
464        &quot;groupByColumn&quot;: True or False, # Synchronous report only. Set to `true` to group by this column. Defaults to `false`.
465        &quot;headerText&quot;: &quot;A String&quot;, # Text used to identify this column in the report output; defaults to `columnName` or `savedColumnName` when not specified. This can be used to prevent collisions between DoubleClick Search columns and saved columns with the same name.
466        &quot;platformSource&quot;: &quot;A String&quot;, # The platform that is used to provide data for the custom dimension. Acceptable values are &quot;floodlight&quot;.
467        &quot;productReportPerspective&quot;: &quot;A String&quot;, # Returns metrics only for a specific type of product activity. Accepted values are: - &quot;`sold`&quot;: returns metrics only for products that were sold - &quot;`advertised`&quot;: returns metrics only for products that were advertised in a Shopping campaign, and that might or might not have been sold
468        &quot;savedColumnName&quot;: &quot;A String&quot;, # Name of a saved column to include in the report. The report must be scoped at advertiser or lower, and this saved column must already be created in the DoubleClick Search UI.
469        &quot;startDate&quot;: &quot;A String&quot;, # Inclusive date in YYYY-MM-DD format. When provided, this overrides the overall time range of the report for this column only. Must be provided together with `endDate`.
470      },
471      &quot;operator&quot;: &quot;A String&quot;, # Operator to use in the filter. See the filter reference for a list of available operators.
472      &quot;values&quot;: [ # A list of values to filter the column value against.\ The maximum number of filter values per request is 300.
473        &quot;&quot;,
474      ],
475    },
476  ],
477  &quot;includeDeletedEntities&quot;: True or False, # Determines if removed entities should be included in the report. Defaults to `false`. Deprecated, please use `includeRemovedEntities` instead.
478  &quot;includeRemovedEntities&quot;: True or False, # Determines if removed entities should be included in the report. Defaults to `false`.
479  &quot;maxRowsPerFile&quot;: 42, # Asynchronous report only. The maximum number of rows per report file. A large report is split into many files based on this field. Acceptable values are `1000000` to `100000000`, inclusive.
480  &quot;orderBy&quot;: [ # Synchronous report only. A list of columns and directions defining sorting to be performed on the report rows.\ The maximum number of orderings per request is 300.
481    {
482      &quot;column&quot;: { # A request object used to create a DoubleClick Search report. # Column to perform the sort on. This can be a DoubleClick Search-defined column or a saved column.
483        &quot;columnName&quot;: &quot;A String&quot;, # Name of a DoubleClick Search column to include in the report.
484        &quot;customDimensionName&quot;: &quot;A String&quot;, # Segments a report by a custom dimension. The report must be scoped to an advertiser or lower, and the custom dimension must already be set up in DoubleClick Search. The custom dimension name, which appears in DoubleClick Search, is case sensitive.\ If used in a conversion report, returns the value of the specified custom dimension for the given conversion, if set. This column does not segment the conversion report.
485        &quot;customMetricName&quot;: &quot;A String&quot;, # Name of a custom metric to include in the report. The report must be scoped to an advertiser or lower, and the custom metric must already be set up in DoubleClick Search. The custom metric name, which appears in DoubleClick Search, is case sensitive.
486        &quot;endDate&quot;: &quot;A String&quot;, # Inclusive day in YYYY-MM-DD format. When provided, this overrides the overall time range of the report for this column only. Must be provided together with `startDate`.
487        &quot;groupByColumn&quot;: True or False, # Synchronous report only. Set to `true` to group by this column. Defaults to `false`.
488        &quot;headerText&quot;: &quot;A String&quot;, # Text used to identify this column in the report output; defaults to `columnName` or `savedColumnName` when not specified. This can be used to prevent collisions between DoubleClick Search columns and saved columns with the same name.
489        &quot;platformSource&quot;: &quot;A String&quot;, # The platform that is used to provide data for the custom dimension. Acceptable values are &quot;floodlight&quot;.
490        &quot;productReportPerspective&quot;: &quot;A String&quot;, # Returns metrics only for a specific type of product activity. Accepted values are: - &quot;`sold`&quot;: returns metrics only for products that were sold - &quot;`advertised`&quot;: returns metrics only for products that were advertised in a Shopping campaign, and that might or might not have been sold
491        &quot;savedColumnName&quot;: &quot;A String&quot;, # Name of a saved column to include in the report. The report must be scoped at advertiser or lower, and this saved column must already be created in the DoubleClick Search UI.
492        &quot;startDate&quot;: &quot;A String&quot;, # Inclusive date in YYYY-MM-DD format. When provided, this overrides the overall time range of the report for this column only. Must be provided together with `endDate`.
493      },
494      &quot;sortOrder&quot;: &quot;A String&quot;, # The sort direction, which is either `ascending` or `descending`.
495    },
496  ],
497  &quot;reportScope&quot;: { # The reportScope is a set of IDs that are used to determine which subset of entities will be returned in the report. The full lineage of IDs from the lowest scoped level desired up through agency is required.
498    &quot;adGroupId&quot;: &quot;A String&quot;, # DS ad group ID.
499    &quot;adId&quot;: &quot;A String&quot;, # DS ad ID.
500    &quot;advertiserId&quot;: &quot;A String&quot;, # DS advertiser ID.
501    &quot;agencyId&quot;: &quot;A String&quot;, # DS agency ID.
502    &quot;campaignId&quot;: &quot;A String&quot;, # DS campaign ID.
503    &quot;engineAccountId&quot;: &quot;A String&quot;, # DS engine account ID.
504    &quot;keywordId&quot;: &quot;A String&quot;, # DS keyword ID.
505  },
506  &quot;reportType&quot;: &quot;A String&quot;, # Determines the type of rows that are returned in the report. For example, if you specify `reportType: keyword`, each row in the report will contain data about a keyword. See the [Types of Reports](/search-ads/v2/report-types/) reference for the columns that are available for each type.
507  &quot;rowCount&quot;: 42, # Synchronous report only. The maximum number of rows to return; additional rows are dropped. Acceptable values are `0` to `10000`, inclusive. Defaults to `10000`.
508  &quot;startRow&quot;: 42, # Synchronous report only. Zero-based index of the first row to return. Acceptable values are `0` to `50000`, inclusive. Defaults to `0`.
509  &quot;statisticsCurrency&quot;: &quot;A String&quot;, # Specifies the currency in which monetary will be returned. Possible values are: `usd`, `agency` (valid if the report is scoped to agency or lower), `advertiser` (valid if the report is scoped to * advertiser or lower), or `account` (valid if the report is scoped to engine account or lower).
510  &quot;timeRange&quot;: { # If metrics are requested in a report, this argument will be used to restrict the metrics to a specific time range.
511    &quot;changedAttributesSinceTimestamp&quot;: &quot;A String&quot;, # Inclusive UTC timestamp in RFC format, e.g., `2013-07-16T10:16:23.555Z`. See additional references on how changed attribute reports work.
512    &quot;changedMetricsSinceTimestamp&quot;: &quot;A String&quot;, # Inclusive UTC timestamp in RFC format, e.g., `2013-07-16T10:16:23.555Z`. See additional references on how changed metrics reports work.
513    &quot;endDate&quot;: &quot;A String&quot;, # Inclusive date in YYYY-MM-DD format.
514    &quot;startDate&quot;: &quot;A String&quot;, # Inclusive date in YYYY-MM-DD format.
515  },
516  &quot;verifySingleTimeZone&quot;: True or False, # If `true`, the report would only be created if all the requested stat data are sourced from a single timezone. Defaults to `false`.
517}
518
519  x__xgafv: string, V1 error format.
520    Allowed values
521      1 - v1 error format
522      2 - v2 error format
523
524Returns:
525  An object of the form:
526
527    { # A DoubleClick Search report. This object contains the report request, some report metadata such as currency code, and the generated report rows or report files.
528  &quot;files&quot;: [ # Asynchronous report only. Contains a list of generated report files once the report has successfully completed.
529    {
530      &quot;byteCount&quot;: &quot;A String&quot;, # The size of this report file in bytes.
531      &quot;url&quot;: &quot;A String&quot;, # Use this url to download the report file.
532    },
533  ],
534  &quot;id&quot;: &quot;A String&quot;, # Asynchronous report only. Id of the report.
535  &quot;isReportReady&quot;: True or False, # Asynchronous report only. True if and only if the report has completed successfully and the report files are ready to be downloaded.
536  &quot;kind&quot;: &quot;A String&quot;, # Identifies this as a Report resource. Value: the fixed string `doubleclicksearch#report`.
537  &quot;request&quot;: { # A request object used to create a DoubleClick Search report. # The request that created the report. Optional fields not specified in the original request are filled with default values.
538    &quot;columns&quot;: [ # The columns to include in the report. This includes both DoubleClick Search columns and saved columns. For DoubleClick Search columns, only the `columnName` parameter is required. For saved columns only the `savedColumnName` parameter is required. Both `columnName` and `savedColumnName` cannot be set in the same stanza.\ The maximum number of columns per request is 300.
539      { # A request object used to create a DoubleClick Search report.
540        &quot;columnName&quot;: &quot;A String&quot;, # Name of a DoubleClick Search column to include in the report.
541        &quot;customDimensionName&quot;: &quot;A String&quot;, # Segments a report by a custom dimension. The report must be scoped to an advertiser or lower, and the custom dimension must already be set up in DoubleClick Search. The custom dimension name, which appears in DoubleClick Search, is case sensitive.\ If used in a conversion report, returns the value of the specified custom dimension for the given conversion, if set. This column does not segment the conversion report.
542        &quot;customMetricName&quot;: &quot;A String&quot;, # Name of a custom metric to include in the report. The report must be scoped to an advertiser or lower, and the custom metric must already be set up in DoubleClick Search. The custom metric name, which appears in DoubleClick Search, is case sensitive.
543        &quot;endDate&quot;: &quot;A String&quot;, # Inclusive day in YYYY-MM-DD format. When provided, this overrides the overall time range of the report for this column only. Must be provided together with `startDate`.
544        &quot;groupByColumn&quot;: True or False, # Synchronous report only. Set to `true` to group by this column. Defaults to `false`.
545        &quot;headerText&quot;: &quot;A String&quot;, # Text used to identify this column in the report output; defaults to `columnName` or `savedColumnName` when not specified. This can be used to prevent collisions between DoubleClick Search columns and saved columns with the same name.
546        &quot;platformSource&quot;: &quot;A String&quot;, # The platform that is used to provide data for the custom dimension. Acceptable values are &quot;floodlight&quot;.
547        &quot;productReportPerspective&quot;: &quot;A String&quot;, # Returns metrics only for a specific type of product activity. Accepted values are: - &quot;`sold`&quot;: returns metrics only for products that were sold - &quot;`advertised`&quot;: returns metrics only for products that were advertised in a Shopping campaign, and that might or might not have been sold
548        &quot;savedColumnName&quot;: &quot;A String&quot;, # Name of a saved column to include in the report. The report must be scoped at advertiser or lower, and this saved column must already be created in the DoubleClick Search UI.
549        &quot;startDate&quot;: &quot;A String&quot;, # Inclusive date in YYYY-MM-DD format. When provided, this overrides the overall time range of the report for this column only. Must be provided together with `endDate`.
550      },
551    ],
552    &quot;downloadFormat&quot;: &quot;A String&quot;, # Format that the report should be returned in. Currently `csv` or `tsv` is supported.
553    &quot;filters&quot;: [ # A list of filters to be applied to the report.\ The maximum number of filters per request is 300.
554      {
555        &quot;column&quot;: { # A request object used to create a DoubleClick Search report. # Column to perform the filter on. This can be a DoubleClick Search column or a saved column.
556          &quot;columnName&quot;: &quot;A String&quot;, # Name of a DoubleClick Search column to include in the report.
557          &quot;customDimensionName&quot;: &quot;A String&quot;, # Segments a report by a custom dimension. The report must be scoped to an advertiser or lower, and the custom dimension must already be set up in DoubleClick Search. The custom dimension name, which appears in DoubleClick Search, is case sensitive.\ If used in a conversion report, returns the value of the specified custom dimension for the given conversion, if set. This column does not segment the conversion report.
558          &quot;customMetricName&quot;: &quot;A String&quot;, # Name of a custom metric to include in the report. The report must be scoped to an advertiser or lower, and the custom metric must already be set up in DoubleClick Search. The custom metric name, which appears in DoubleClick Search, is case sensitive.
559          &quot;endDate&quot;: &quot;A String&quot;, # Inclusive day in YYYY-MM-DD format. When provided, this overrides the overall time range of the report for this column only. Must be provided together with `startDate`.
560          &quot;groupByColumn&quot;: True or False, # Synchronous report only. Set to `true` to group by this column. Defaults to `false`.
561          &quot;headerText&quot;: &quot;A String&quot;, # Text used to identify this column in the report output; defaults to `columnName` or `savedColumnName` when not specified. This can be used to prevent collisions between DoubleClick Search columns and saved columns with the same name.
562          &quot;platformSource&quot;: &quot;A String&quot;, # The platform that is used to provide data for the custom dimension. Acceptable values are &quot;floodlight&quot;.
563          &quot;productReportPerspective&quot;: &quot;A String&quot;, # Returns metrics only for a specific type of product activity. Accepted values are: - &quot;`sold`&quot;: returns metrics only for products that were sold - &quot;`advertised`&quot;: returns metrics only for products that were advertised in a Shopping campaign, and that might or might not have been sold
564          &quot;savedColumnName&quot;: &quot;A String&quot;, # Name of a saved column to include in the report. The report must be scoped at advertiser or lower, and this saved column must already be created in the DoubleClick Search UI.
565          &quot;startDate&quot;: &quot;A String&quot;, # Inclusive date in YYYY-MM-DD format. When provided, this overrides the overall time range of the report for this column only. Must be provided together with `endDate`.
566        },
567        &quot;operator&quot;: &quot;A String&quot;, # Operator to use in the filter. See the filter reference for a list of available operators.
568        &quot;values&quot;: [ # A list of values to filter the column value against.\ The maximum number of filter values per request is 300.
569          &quot;&quot;,
570        ],
571      },
572    ],
573    &quot;includeDeletedEntities&quot;: True or False, # Determines if removed entities should be included in the report. Defaults to `false`. Deprecated, please use `includeRemovedEntities` instead.
574    &quot;includeRemovedEntities&quot;: True or False, # Determines if removed entities should be included in the report. Defaults to `false`.
575    &quot;maxRowsPerFile&quot;: 42, # Asynchronous report only. The maximum number of rows per report file. A large report is split into many files based on this field. Acceptable values are `1000000` to `100000000`, inclusive.
576    &quot;orderBy&quot;: [ # Synchronous report only. A list of columns and directions defining sorting to be performed on the report rows.\ The maximum number of orderings per request is 300.
577      {
578        &quot;column&quot;: { # A request object used to create a DoubleClick Search report. # Column to perform the sort on. This can be a DoubleClick Search-defined column or a saved column.
579          &quot;columnName&quot;: &quot;A String&quot;, # Name of a DoubleClick Search column to include in the report.
580          &quot;customDimensionName&quot;: &quot;A String&quot;, # Segments a report by a custom dimension. The report must be scoped to an advertiser or lower, and the custom dimension must already be set up in DoubleClick Search. The custom dimension name, which appears in DoubleClick Search, is case sensitive.\ If used in a conversion report, returns the value of the specified custom dimension for the given conversion, if set. This column does not segment the conversion report.
581          &quot;customMetricName&quot;: &quot;A String&quot;, # Name of a custom metric to include in the report. The report must be scoped to an advertiser or lower, and the custom metric must already be set up in DoubleClick Search. The custom metric name, which appears in DoubleClick Search, is case sensitive.
582          &quot;endDate&quot;: &quot;A String&quot;, # Inclusive day in YYYY-MM-DD format. When provided, this overrides the overall time range of the report for this column only. Must be provided together with `startDate`.
583          &quot;groupByColumn&quot;: True or False, # Synchronous report only. Set to `true` to group by this column. Defaults to `false`.
584          &quot;headerText&quot;: &quot;A String&quot;, # Text used to identify this column in the report output; defaults to `columnName` or `savedColumnName` when not specified. This can be used to prevent collisions between DoubleClick Search columns and saved columns with the same name.
585          &quot;platformSource&quot;: &quot;A String&quot;, # The platform that is used to provide data for the custom dimension. Acceptable values are &quot;floodlight&quot;.
586          &quot;productReportPerspective&quot;: &quot;A String&quot;, # Returns metrics only for a specific type of product activity. Accepted values are: - &quot;`sold`&quot;: returns metrics only for products that were sold - &quot;`advertised`&quot;: returns metrics only for products that were advertised in a Shopping campaign, and that might or might not have been sold
587          &quot;savedColumnName&quot;: &quot;A String&quot;, # Name of a saved column to include in the report. The report must be scoped at advertiser or lower, and this saved column must already be created in the DoubleClick Search UI.
588          &quot;startDate&quot;: &quot;A String&quot;, # Inclusive date in YYYY-MM-DD format. When provided, this overrides the overall time range of the report for this column only. Must be provided together with `endDate`.
589        },
590        &quot;sortOrder&quot;: &quot;A String&quot;, # The sort direction, which is either `ascending` or `descending`.
591      },
592    ],
593    &quot;reportScope&quot;: { # The reportScope is a set of IDs that are used to determine which subset of entities will be returned in the report. The full lineage of IDs from the lowest scoped level desired up through agency is required.
594      &quot;adGroupId&quot;: &quot;A String&quot;, # DS ad group ID.
595      &quot;adId&quot;: &quot;A String&quot;, # DS ad ID.
596      &quot;advertiserId&quot;: &quot;A String&quot;, # DS advertiser ID.
597      &quot;agencyId&quot;: &quot;A String&quot;, # DS agency ID.
598      &quot;campaignId&quot;: &quot;A String&quot;, # DS campaign ID.
599      &quot;engineAccountId&quot;: &quot;A String&quot;, # DS engine account ID.
600      &quot;keywordId&quot;: &quot;A String&quot;, # DS keyword ID.
601    },
602    &quot;reportType&quot;: &quot;A String&quot;, # Determines the type of rows that are returned in the report. For example, if you specify `reportType: keyword`, each row in the report will contain data about a keyword. See the [Types of Reports](/search-ads/v2/report-types/) reference for the columns that are available for each type.
603    &quot;rowCount&quot;: 42, # Synchronous report only. The maximum number of rows to return; additional rows are dropped. Acceptable values are `0` to `10000`, inclusive. Defaults to `10000`.
604    &quot;startRow&quot;: 42, # Synchronous report only. Zero-based index of the first row to return. Acceptable values are `0` to `50000`, inclusive. Defaults to `0`.
605    &quot;statisticsCurrency&quot;: &quot;A String&quot;, # Specifies the currency in which monetary will be returned. Possible values are: `usd`, `agency` (valid if the report is scoped to agency or lower), `advertiser` (valid if the report is scoped to * advertiser or lower), or `account` (valid if the report is scoped to engine account or lower).
606    &quot;timeRange&quot;: { # If metrics are requested in a report, this argument will be used to restrict the metrics to a specific time range.
607      &quot;changedAttributesSinceTimestamp&quot;: &quot;A String&quot;, # Inclusive UTC timestamp in RFC format, e.g., `2013-07-16T10:16:23.555Z`. See additional references on how changed attribute reports work.
608      &quot;changedMetricsSinceTimestamp&quot;: &quot;A String&quot;, # Inclusive UTC timestamp in RFC format, e.g., `2013-07-16T10:16:23.555Z`. See additional references on how changed metrics reports work.
609      &quot;endDate&quot;: &quot;A String&quot;, # Inclusive date in YYYY-MM-DD format.
610      &quot;startDate&quot;: &quot;A String&quot;, # Inclusive date in YYYY-MM-DD format.
611    },
612    &quot;verifySingleTimeZone&quot;: True or False, # If `true`, the report would only be created if all the requested stat data are sourced from a single timezone. Defaults to `false`.
613  },
614  &quot;rowCount&quot;: 42, # The number of report rows generated by the report, not including headers.
615  &quot;rows&quot;: [ # Synchronous report only. Generated report rows.
616    { # A row in a DoubleClick Search report.
617      &quot;a_key&quot;: &quot;&quot;, # Indicates the columns that are represented in this row. That is, each key corresponds to a column with a non-empty cell in this row.
618    },
619  ],
620  &quot;statisticsCurrencyCode&quot;: &quot;A String&quot;, # The currency code of all monetary values produced in the report, including values that are set by users (e.g., keyword bid settings) and metrics (e.g., cost and revenue). The currency code of a report is determined by the `statisticsCurrency` field of the report request.
621  &quot;statisticsTimeZone&quot;: &quot;A String&quot;, # If all statistics of the report are sourced from the same time zone, this would be it. Otherwise the field is unset.
622}</pre>
623</div>
624
625</body></html>