The home side lineup featured a number of young players with several of those who had played at Brechin earlier in the season in Dubai with the Championship side's first team for a training camp.
Aberdeen had the first attempt at goal in the third minute, Anderson's shot from 20 yards well saved by the Town keeper. Diarra fired over as the home side responded in positive fashion and they dominated the early phases of play with wide men McCamley and Jones particularly prominent.
And they took the lead on 11 minutes when a good move down the right ended with a deflected shot from Jones beating Sam Jackson.
Neat interplay between Ruth and Anderson saw the latter denied twice by fine blocks as the Dons came more into the game after a sticky opening spell.
Six minutes from the break Ethan Ross was denied by the post after a fine shot beat Davison-Hale.
In a frantic end to the half Ruth headed over then at the other end Obiero's shot from six yard flew high over when he really should have scored.
The Dons made a fast start to the second period, Ethan Ross shooting just wide before a cross from brother Seb was just too high for the inrushing Ruth. However, the Dons drew level on 52 minutes, a dazzling run by Ethan Ross seeing him skip to the bye line before cutting the ball back into the path of Ruth who made no mistake from six yards.
Two minutes later only a last ditch tackle from Luke Turner denied McCamley after fine work by the dangerous Jones.
On 61 minutes Connor Barron came on to replace the trialist who had played well in midfield. Only a fine block from Pata stopped Anderson giving the Dons the lead but the striker was not to be denied and on 71 minutes Bruce gave Aberdeen the lead.
Barron played a fabulous cross-field ball to Ethan Ross who beat his man before squaring for Anderson to fire the ball in from 15 yards. A goal of real quality from the Dons.
However, the Terriers were back on level terms three minutes later when substitute Thompson netted at the second attempt after being picked out in the box by Jones.
Akinola headed over as Leigh Bromby's side pushed for a winner, but they were caught out in 80 minutes as the Dons took the lead for a second time. Jack Mackenzie's long clearance saw Anderson outmuscle Kherbouche before racing through to slot the ball past the keeper.
The Dons managed the game well in the closing stages which were marred by a terrible tackle from Akinola on Turner which resulted in the Huddersfield man seeing red amidst scuffles between the two sets of players.
An unfortunate end to what had been a well-contested match, Aberdeen's greater experience and fitness seeing them notch a deserved victory.