Designing a smart digital advertising system