The drugs work best in combination with sex therapy. Several studies have shown this. There’s more to satisfying sex than just an erection. The quality of the relationship is crucial, especially if sex has been a sore point or if the couple hasn’t had much for a while. To find a sex therapist near you, visit the American Association of Sex Educators, Counselors, and Therapists, the Society for Sex Therapy and Research, or the American Board of Sexology.
The time the dose should be taken and how long the effects last depend on the medication used. The most common side effect of these medications is a headache. However, there is a potential for certain dangerous drug interactions. Anyone prescribed this medication must let his doctor know about any medications he's on, and especially if he's taking nitrates (e.g., nitroglycerin spray, nitroglycerin pills, or nitroglycerin patch) for heart problems.
If a man's arteries become blocked with cholesterol – as a result of genetics, and/or lifestyle factors such as smoking, a poor diet and lack of exercise – it will affect the vessels all over his body. The arteries supplying the penis are relatively small, just 1-2mm wide, and so they become blocked more quickly than others. The blood flow to the area is reduced, meaning erections become more difficult.
Another potential new treatment consists of penile low-intensity shock wave lithotripsy. This consists of 1500 shocks twice a week for 3–6 weeks. The purpose is to stimulate neovascularisation to the corporal bodies with improvement in penile blood flow and endothelial function. The use of low-intensity shock wave lithotripsy may convert PDE5 inhibitor non-responders to responders.47
The Cancer of the Prostate Strategic Urologic Research Endeavor (CaPSURE) study, designed to determine whether an individual man’s sexual outcomes after most common treatments for early-stage prostate cancer could be accurately predicted on the basis of baseline characteristics and treatment plans, found that 2 years after treatment, 177 (35%) of 511 men who underwent prostatectomy reported the ability to attain functional erections suitable for intercourse. 
Having erection trouble from time to time isn't necessarily a cause for concern. If erectile dysfunction is an ongoing issue, however, it can cause stress, affect your self-confidence and contribute to relationship problems. Problems getting or keeping an erection can also be a sign of an underlying health condition that needs treatment and a risk factor for heart disease.