SalesReport
A template sales report.
Select
Represents a report job that will be run to retrieve performance and statistics information about sales. By default, the report will retrieve data for the last month. Specify StartDate and EndDate to run the report on the desired time period.
For example:
SELECT * FROM [SalesReport] WHERE StartDate = '01-01-2018' AND EndDate = '01-02-2018'
Columns
Name | Type | Description |
SalesPersonId | String | Breaks down reporting data by salesperson User.id. |
SalesPersonName | String | Breaks down reporting data by salesperson. |
AdServerImpressions | Long | The number of impressions delivered by the ad server. |
AdServerCpmAndCpcRevenue | Long | The CPM and CPC revenue earned, calculated in publisher currency, for the ads delivered by the ad server. |
AdServerWithoutCpdAverageEcpm | Long | The average estimated cost-per-thousand-impressions earned from the CPM and CPC ads delivered by the ad server. |
Pseudo-Columns
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。
Name | Type | Description |
EndDate | Date | The end date of the custom date range. The end date cannot be later than today's date. |
StartDate | Date | The start date of the custom date range. The start date must be earlier than or the same as the end date. |
DateRangeType | String | The period of time for which the reporting data is being generated. Supported values are: TODAY, YESTERDAY, LAST_WEEK, LAST_MONTH, LAST_3_MONTHS, REACH_LIFETIME, CUSTOM_DATE, NEXT_DAY, NEXT_90_DAYS, NEXT_WEEK, NEXT_MONTH, CURRENT_AND_NEXT_MONTH, NEXT_QUARTER, NEXT_3_MONTHS, NEXT_12_MONTHS. In order to define custom time periods, set this to CUSTOM_DATE. |