They are recommended from 9 years of age up to 26 years, and can still be done on individual basis up to 45, but again the best time to vaccinate is between 9 and 15 years for the following reasons:
1. Better immune response
2. Better chance of getting protection before exposition (before any sexual activity)
This is why some doctors prefer to vaccinate adolescents because the outcome would be better, but depending on your age , and your sexual activity, it might be useful to still get protected against HPV.
You should discuss this issue with your doctor.
In all cases, there is no harm from getting this vaccine, only fewer benefits when its done later than the recommended age.