How Internet ads work

Digital advertising brings money to companies and relevant ads to you and me — and attracts fraud. How does it all work?