Skip to content

Advertisement banners are displayed to users in a mobile application (app_id) in a country (country code) from an advertiser (advertiser_id). 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.

Notifications You must be signed in to change notification settings

java-salehian/stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

https://www.bing.com/search?form=SKPBOT&q=README.md: Provide instructions on how to set up and run your application.

# Metrics Calculation Application

## Setup
1. Clone the repository
2. Configure MySQL database in `application.properties`
3. Run the application using `mvn spring-boot:run`

## Usage
•  Place your JSON files in the specified directory

•  Access the endpoint using below order:
###
POST http://localhost:8080/events/process
Content-Type: application/json

{
  "impressions": [
    "D:\\webmetrics\\files\\impression1.json",
    "D:\\webmetrics\\files\\impression2.json"
  ],
  "clicks": [
    "D:\\webmetrics\\files\\click1.json",
    "D:\\webmetrics\\files\\click2.json"
  ]
}
*** Please notice to change te file locations.
*** please notice that the first line of each file is a comment and is not processed.

###
GET http://localhost:8080/metrics

###
GET http://localhost:8080/recommendations

About

Advertisement banners are displayed to users in a mobile application (app_id) in a country (country code) from an advertiser (advertiser_id). 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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages