You pays your money, you takes your choice!
However, your question appears to relate to events in a novel (several novels!) written by Douglas Adams. And not to the original BBC radio series - series 2, which was broadcast in 1980 - on which the key novel was based.
I make this point because the novels had a rather different (in this case read: very different) storyline to the radio show. Therefore reading the 2nd novel won't necessarily take you very far in understanding the somewhat whacky world of Hitchhikers.
As the radio show came first, and as it contains different facts to the 2nd novel, the answer to the question will differ depending which version you consult, book or radio show; but in my opinion the real answer to your question is not actually the one you've accepted, above.
In series 2 episode 6 of the radio show (Fit the Twelfth), the ruler of the universe reveals that Zaphod is in a conspiracy with a consortium of psychiatrists to sabotage the computer program designed to answer the ultimate question (see series 1), by destroying the Earth: presumably (it is implied) because the psychiatrists believe that discovery of the ultimate answer would solve everyone's neuroses and put psychiatrists out of business, hence stopping that is worth a lot of money.
However, this explanation is given in such a roundabout manner, and so
obliquely, and so rapidly, that it is not readily understood
from a first hearing of the episode. Yet it does explain so
much (including the demolition of the Earth, the involvement of the Vogons, and the recurring appearances by Zaphod's analyst) that it is difficult
to dismiss it as being just an after-thought.
Unfortunately, without this small - but vital - piece of information, everything that happens in Series 2 makes very little sense.
Additionally, the radio episode in question (Fit the Twelfth) casts doubt upon the existence of the Ruler of the Universe, who, it implies, may be part of the unreality of Zarniwoop's pocket universe -- for the following reasons.
The key question is: do they ever leave Zarniwoop's pocket universe? The Ruler of the Universe seems to be aware that there is some doubt as to whether the universe that he rules is real or not. But their meeting with him occurs after Zaphod's meeting with Zarniwoop (at which Zaphod, Ford and Arthur appeared to return to the real universe: the pocket universe appeared to collapse in upon itself, the sky fell, they gained access to the Heart of Gold, etc). But unexpectedly, at their very next stop the Ruler of the Universe believes he's ruling an artificial universe. Hence Series 2 ended on an ambiguous note: have they actually exited the pocket universe -- or not?
None of the events in the three subsequent radio series cast any light on these developments!
So the relationship between the part-time president Zaphod Beeblebrox, the so-called Ruler of the universe and his cat, Zaphod's analyst, and the Vogons, is never cleared up.