IP address, or if you have any shared accounts you could have a cookie identifying you as the same user. Ads also target connections of people who're interested in a product so you could get the ad from being friends/following someone who watched the videos. The ads will find you.