I had this problem before and a handnote to the neighbor did the trick. It turns out they were keeping their dog crate next to the window for entertainment, but in reality it was stressing the dog out, because he could see all the people walking past on the sidewalk. They relocated the crate and the problem was solved. And if direct engagement leads you nowhere then I would reach out to the landlord.