I've used both the 3m adhesive and double sided 3m tape. All from automotive parts stores. All worked well to hold trim in place. IMO the tape is best, because the bond is instant. Adhesive needs time to cure, so molding has to be held in place while that happens.
I used adhesive used designed to install emblems and trim.
I've also used auto windshield adhesive.
I used double sided tape made for attaching automotive molding and trim.
2014 Silverado LTZ 1500 Crew Cab 5.3L maximum trailering package