Dogs can get a sexually transmitted tumor called a transvenereal tumor. This manifests as wart-like growths along the penis. Other possibilities include other dermal masses (benign or malignant), infection, and trauma. This dog needs to be examined by a veterinarian. Treatment varies dramatically pending diagnosis.