ROTFL. Other than the risk of a defmation lawsuit, sure. I will say, creating the ad isn;t the problem in that case. Publishing it is the event the creates a risk of civil liability.
There is absolutely no risk of criminal liability for it though.
Then John McCain has nothing to worry about.