One code per ad, per screen
The code does not point straight at your link. It points at a short address that identifies the ad and the screen it is playing on, records the scan, and forwards the viewer on in the same moment. That is what makes a scan attributable to a place: the café window, not just the campaign.