I've never found suction cups to be strong enough to hold the weight of candles I've used.
What I have used is a small shelf with the lip that you close the window on top of to hold the shelf in place. Don't know if I'm describing it well and I don't readily see one online to show a photo. This is the time of year they can sometimes be found amongst the candles.