Bases: tune_reporting.base.endpoints.advertiser_report_base.AdvertiserReportBase
Base class intended for gathering from Advertiser Stats actuals.
The constructor.
Parameters: |
---|
Counts all existing records that match filter criteria and returns an array of found model data.
param (dict) map_params: start_date: YYYY-MM-DD HH:MM:SS
end_date: YYYY-MM-DD HH:MM:SS
group: Group results using this endpoint’s fields.
- filter: Apply constraints based upon values
associated with this endpoint’s fields.
- response_timezone: Setting expected timezone for results,
default is set in account.
return: (TuneServiceResponse)
Places a job into a queue to generate a report that will contain records that match provided filter criteria, and it returns a job identifier to be provided to action /export/download.json to download completed report.
param (dict) map_params: start_date: YYYY-MM-DD HH:MM:SS
end_date: YYYY-MM-DD HH:MM:SS
fields: Present results using these endpoint’s fields.
group: Group results using this endpoint’s fields.
- filter: Apply constraints based upon values
associated with this endpoint’s fields.
- timestamp: Set to breakdown stats by timestamp choices:
hour, datehour, date, week, month.
- response_timezone: Setting expected timezone for results,
default is set in account.
return: (TuneServiceResponse)
Helper function for fetching report upon completion. Starts worker for polling export queue.
param str job_id: Job identifier assigned for report export. return: (TuneServiceResponse)
Finds all existing records that match filter criteria and returns an array of found model data.
param (dict) map_params: start_date: YYYY-MM-DD HH:MM:SS
end_date: YYYY-MM-DD HH:MM:SS
fields: Present results using these endpoint’s fields.
group: Group results using this endpoint’s fields.
- filter: Apply constraints based upon values
associated with this endpoint’s fields.
limit: Limit number of results, default 10, 0 shows all.
page: Pagination, default 1.
- sort: Sort results using this endpoint’s fields.
Directions: DESC, ASC.
- timestamp: Set to breakdown stats by timestamp choices:
hour, datehour, date, week, month.
- response_timezone: Setting expected timezone for results,
default is set in account.
return: (TuneServiceResponse)
Bases: tune_reporting.base.endpoints.endpoint_base.EndpointBase
Base components for every TUNE Reporting API reports.
The constructor.
Parameters: |
---|
Bases: tune_reporting.base.endpoints.advertiser_report_base.AdvertiserReportBase
Base class for handling TUNE Reporting API Insight stats reports.
The constructor.
Parameters: |
---|
Helper function for parsing export response to gather job identifier.
param (object) response: TuneServiceResponse return (str): Report Job identifier
Bases: tune_reporting.base.endpoints.advertiser_report_base.AdvertiserReportBase
Base class intended for gathering from Advertiser Stats logs.
The constructor.
Parameters: |
---|
Counts all existing records that match filter criteria and returns an array of found model data.
:param (dict) map_params
start_date: YYYY-MM-DD HH:MM:SS
end_date: YYYY-MM-DD HH:MM:SS
- filter: Apply constraints based upon values
- associated with this endpoint’s fields.
- response_timezone: Setting expected timezone for results,
- default is set in account.
return: (TuneServiceResponse)
Places a job into a queue to generate a report that will contain records that match provided filter criteria, and it returns a job identifier to be provided to action /export/download.json to download completed report.
param (dict) map_params: start_date: YYYY-MM-DD HH:MM:SS
end_date: YYYY-MM-DD HH:MM:SS
fields: Present results using these endpoint’s fields.
- filter: Apply constraints based upon values
associated with this endpoint’s fields.
format: Export format choices: csv.
- response_timezone: Setting expected timezone for results,
default is set in account.
return: (TuneServiceResponse)
Helper function for fetching report upon completion.
Parameters: | job_id (str) – Job identifier assigned for report export. |
---|---|
Returns: | (TuneServiceResponse) |
Finds all existing records that match filter criteria and returns an array of found model data.
param (dict) map_params: start_date: YYYY-MM-DD HH:MM:SS
end_date: YYYY-MM-DD HH:MM:SS
fields: Present results using these endpoint’s fields.
- filter: Apply constraints based upon values
associated with this endpoint’s fields.
limit: Limit number of results, default 10, 0 shows all.
page: Pagination, default 1.
- sort: Sort results using this endpoint’s fields.
Directions: DESC, ASC.
- response_timezone: Setting expected timezone for results,
default is set in account.
return (object): (TuneServiceResponse)
Bases: object
Base components for every TUNE Reporting API request.
The constructor.
Parameters: |
|
---|
Call TUNE Reporting API service requesting response endpoint_base upon provided controller/action?query_string.
param str action: TUNE Reporting API endpoint’s action name. param array map_query_string: Action’s query string parameters. return: (TuneServiceResponse)
Gather specific set of fields for this endpoint.
Parameters: | int – TUNE_FIELDS_ALL, TUNE_FIELDS_DEFAULT, TUNE_FIELDS_RECOMMENDED |
---|---|
Return (array): | list endpoint fields |
Helper function for parsing export response to gather job identifier.
param (TuneServiceResponse) response: return (str): Report Job identifier throws: (TuneSdkException)
Bases: object
Worker for handle polling of report request on export queue.
The constructor.
Parameters: |
---|
Parameters: |
---|
tune management shared endpoints module