the link you provided would not work , since '?' can be only once in a link.
But if you replace the second '?' for '&' then it will work...
So you could use as a banner destination url:
and the system would automatically attach the &a_aid=referral_id&a_bid=banner_id