Open the YouTube app on your smart TV, sign in with your Gmail account and then go to youtube.com/activate on your phone or computer. Next, enter the code displayed on the TV in the space provided on the phone and then OK.