The battery will almost certainly cause an obstruction in his digestive tract apart from very possibly poisoning him too. Take your dog to the vet without any further delay. That is if you care for your dog at all.
Judging from the fact that you haven't already contacted the vet, and that you are wasting possibly valuable time mucking about with Y/As, perhaps you should consider whether or not you are a fit and proper person to have any kind of pet in your keeping at all.