Borbole has a mod here:
https://vborg.vbsupport.ru/showthread.php?t=250093
You could edit and add in a few lines of code for 4 different inputs, some plugins depend on how you want to go about it for example you mentioned ad codes etc then reference the differences between these two by downloading and viewing the code:
https://vborg.vbsupport.ru/showthread.php?t=251787
https://vborg.vbsupport.ru/showthread.php?t=259340
So as you can see there's different ways to go about different codes, different locations and more etc however one of those will give you a idea how to go about it

.