My advice is to keep your trebuchets etc back a lil and use them to take out the inner gates etc since they have a longer range... put your less ranged units closeenough to take the outer gates or walls but far enough no to get hit too much.....

i find it a good technique to split them up and take out the outer walls in 2 areas and to pincer inside defenders so u could try that also