You should get the option right in that popup window to select "Transfer Purchases" but apparently you are not seeing the option appearing.
Take a look at this. Transferring purchases.
Copied from that kb article .....
After connecting your device to the computer and its icon appears in iTunes, go to the File menu, then Devices, and chooseTransfer Purchases from "(Your device name)".