Inserts a report request into the reporting system. Try it now .
Request
HTTP request
POST https://www.googleapis.com/doubleclicksearch/v2/reports
Authorization
This request requires authorization with the following scope:
Scope |
---|
https://www.googleapis.com/auth/doubleclicksearch
|
For more information, see the authentication and authorization page.
Request body
In the request body, supply data with the following structure:
{ "reportScope" : { "agencyId" : long , "advertiserId" : long , "engineAccountId" : long , "campaignId" : long , "adGroupId" : long , "keywordId" : long , "adId" : long } , "reportType" : string , "columns" : [ { "columnName" : string , "savedColumnName" : string , "customDimensionName" : string , "customMetricName" : string , "headerText" : string , "startDate" : string , "endDate" : string , "groupByColumn" : boolean , "platformSource" : string , "productReportPerspective" : string } ], "timeRange" : { "startDate" : string , "endDate" : string , "changedMetricsSinceTimestamp" : datetime , "changedAttributesSinceTimestamp" : datetime } , "filters" : [ { "column" : { "columnName" : string , "savedColumnName" : string , "customDimensionName" : string , "customMetricName" : string , "headerText" : string , "startDate" : string , "endDate" : string , "groupByColumn" : boolean , "platformSource" : string , "productReportPerspective" : string } , "operator" : string , "values" : [ ( value ) ] } ], "orderBy" : [ { "column" : { "columnName" : string , "savedColumnName" : string , "customDimensionName" : string , "customMetricName" : string , "headerText" : string , "startDate" : string , "endDate" : string , "groupByColumn" : boolean , "platformSource" : string , "productReportPerspective" : string } , "sortOrder" : string } ], "includeDeletedEntities" : boolean , "includeRemovedEntities" : boolean , "verifySingleTimeZone" : boolean , "downloadFormat" : string , "statisticsCurrency" : string , "startRow" : integer , "rowCount" : integer , "maxRowsPerFile" : integer }
reportScope
object
reportScope.
agencyId
long
reportScope.
advertiserId
long
reportScope.
engineAccountId
long
reportScope.
campaignId
long
reportScope.
adGroupId
long
reportScope.
keywordId
long
reportScope.
adId
long
reportType
string
reportType: keyword
, each row in the report will contain data about a keyword. See the Types of Reports
reference for the columns that are available for each type.columns[]
list
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.
columns[].
columnName
string
columns[].
savedColumnName
string
columns[].
headerText
string
columnName
or savedColumnName
when not specified. This can be used to prevent collisions between DoubleClick Search columns and saved columns with the same name. columns[].
startDate
string
endDate
. columns[].
endDate
string
startDate
. columns[].
groupByColumn
boolean
true
to group by this column. Defaults to false
.timeRange
object
timeRange.
startDate
string
timeRange.
endDate
string
timeRange.
changedMetricsSinceTimestamp
datetime
2013-07-16T10:16:23.555Z
. See additional references on how changed metrics reports work. timeRange.
changedAttributesSinceTimestamp
datetime
2013-07-16T10:16:23.555Z
. See additional references on how changed attribute reports work.filters[]
list
The maximum number of filters per request is 300.
filters[].
column
nested object
filters[].column.
columnName
string
filters[].column.
savedColumnName
string
filters[].
operator
string
filters[].
values[]
list
The maximum number of filter values per request is 300.
orderBy[]
list
The maximum number of orderings per request is 300.
orderBy[].
column
nested object
orderBy[].column.
columnName
string
orderBy[].column.
savedColumnName
string
orderBy[].
sortOrder
string
ascending
or descending
.includeDeletedEntities
boolean
false
. Deprecated, please use includeRemovedEntities
instead.verifySingleTimeZone
boolean
true
, the report would only be created if all the requested stat data are sourced from a single timezone. Defaults to false
.downloadFormat
string
csv
or tsv
is supported.statisticsCurrency
string
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).startRow
integer
0
to 50000
, inclusive. Defaults to 0
.rowCount
integer
0
to 10000
, inclusive. Defaults to 10000
.maxRowsPerFile
integer
1000000
to 100000000
, inclusive.includeRemovedEntities
boolean
false
. columns[].
customDimensionName
string
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.
columns[].
platformSource
string
filters[].column.
customDimensionName
string
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.
filters[].column.
headerText
string
columnName
or savedColumnName
when not specified. This can be used to prevent collisions between DoubleClick Search columns and saved columns with the same name. filters[].column.
startDate
string
endDate
. filters[].column.
endDate
string
startDate
. filters[].column.
groupByColumn
boolean
true
to group by this column. Defaults to false
. filters[].column.
platformSource
string
orderBy[].column.
customDimensionName
string
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.
orderBy[].column.
headerText
string
columnName
or savedColumnName
when not specified. This can be used to prevent collisions between DoubleClick Search columns and saved columns with the same name. orderBy[].column.
startDate
string
endDate
. orderBy[].column.
endDate
string
startDate
. orderBy[].column.
groupByColumn
boolean
true
to group by this column. Defaults to false
. orderBy[].column.
platformSource
string
columns[].
customMetricName
string
filters[].column.
customMetricName
string
orderBy[].column.
customMetricName
string
columns[].
productReportPerspective
string
- "
sold
": returns metrics only for products that were sold - "
advertised
": returns metrics only for products that were advertised in a Shopping campaign, and that might or might not have been sold
filters[].column.
productReportPerspective
string
- "
sold
": returns metrics only for products that were sold - "
advertised
": returns metrics only for products that were advertised in a Shopping campaign, and that might or might not have been sold
orderBy[].column.
productReportPerspective
string
- "
sold
": returns metrics only for products that were sold - "
advertised
": returns metrics only for products that were advertised in a Shopping campaign, and that might or might not have been sold
Response
If successful, this method returns a Reports resource in the response body.
Try it!
Use the APIs Explorer below to call this method on live data and see the response. Alternatively, try the standalone Explorer .