This appears to be an inclusion/exclusion problem. My first step was to find the total permutations with no restrictions, using $\frac{8!}{2!2!2!2!} = 2520$.
What would be the permutation formulas for all adjacent A's, B's, C's, and D's? Furthermore, how do I know what is added and subtracted?
To count the cases where, say $AA$ and $CC$ (and possibly more) are adjacent, count the permutations of $\bar A,B,B,\bar C,D,D$ and imagine barred letters stand for double letters.