what glue to use ? Body moulding rubber insert

If those old moldings are aftermarket, they are held in not by glue but buy interference.
Pull it all the way out and soak it in hot water and stretch it a little and reinstall it by starting at one end and kind of roll it back in.
I think they are original .