Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 1.33 KB

README.md

File metadata and controls

30 lines (22 loc) · 1.33 KB

Ads Metrics Demo

Advertisement banners are displayed to users in a mobile application in a country from an advertiser. When this happens, an impression event is recorded and stored. Optionally, if the user clicks on the banner, a click event is recorded. Revenue is generated only in the case of a click being triggered.

Business Model Has 3 Goals

  1. Read events stored in JSON files
  2. Calculate metrics for some dimensions
  3. Make a recommendation for the top 5 advertiser_ids to display for each app and country combination.

Guides

The following guides illustrate how to use some features concretely:

  1. This app implemented by spring boot to demonstrate some business about ads metrics
  2. To run this app you need to have installed jdk 21 or higher before
  3. Navigate to the root of the project via command line and execute the command

./mvnw spring-boot:run

Business Guide

  1. There are 2 impressions.json and clicks.json in the root of project that are inputs
  2. First those inputs will be read by DatabaseLoader Component.
  3. And then do some business code in BusinessService to achieve our goals.
  4. After Application started two files will be generated by service class and will be saved in the classpath
report-dimension.json
report-top5.json

This is just demo however we can also expose api to get those files or report.