How to get tons of favorable coverage in the media.
Three words; BE A DEMOCRAT!
Insult and threaten any who oppose you.
Talk nonsense about guns, taxes, foreign policy, the Supreme Court, current events, economics.
Refuse to debate your opponent.
Insist that those who don't admire you are insurrectionists, Russian bots, fascists, conspiracy theorists, bigots, and rubes.
Conduct staged photos and protests.
Claim that your opponent committed wrongful acts or even crimes, and that evidence of these acts exists... somewhere. Maybe at the opponent's residence. Maybe in their text messages. Maybe in some dimension we haven't explored yet.
Insist you can't possibly lose the election, unless votes were suppressed.
No need to be right; BE LOUD!