My dog has barrier frustration, and there was a time when she would bark excitedly when looking out the windows. She actually broke two windows one day, so I had to cover the windows for a while and work on cc/ds. The enviromental stimualtion had to be reduced. I highly recommend "Behavior Adjustment Training" by Grisha Stewart, Scaredy Dog by Ali Brown, and Control Unleashed by Leslie McDevit.
This is what I was told by my behavorist/trainer. I had taken group classes previously and would end up frustrated because I could not manage my dog. The trainer told me I could not take her class until I could better manage my dog. My dog is large though so that probably makes a difference. I did 1:1 lessons and it was back to the basics with an emphasis on my dog focusing on me, checking in with me frequently during walks, and keeping her under threshold. There has been a great improvement, but we still have a lot of work to do. It's a slow process. The private lessons really built my relationship with my dog. I gained confidence. I plan to take a group class when I can.