My neighbours dog used to make noise at that time, but instead of tapping on the wall so they called the police (a bit odd imo), I banged on their door at 3am and told them to shut their dog up. 2 days later, he got rid of the dog. Good news for the dog too, you could hear it in its cage all day and night.