Aberdeen will face the winners of FK Zalgiris Vilnius or BK Hacken in the Europa League play-off round.
Barry Robson's side enter the competition at this stage after finishing third in the Scottish Premiership.
It means victory in the play-off round would see the club qualify for the group stage of the Europa League.
Defeat would send Aberdeen into the group stage of the Europa Conference League.
Aberdeen will travel for the away leg of the two-legged fixture first having been drawn second.
The first leg will be played on Thursday, August 24 with the return fixture one week later on August 31.
Aberdeen Europa League play-off round fixtures
FK Žalgiris Vilnius/BK Häcken vs Aberdeen - Thursday, August 24
Aberdeen vs FK Žalgiris Vilnius/BK Häcken - Thursday, August 31