Some use the really sticky double sided tape(that's the foam you're seeing), others use trim adhesive or weatherstrip adhesive(3M). I use construction adhesives around my garage a lot and found subfloor adhesive to work great when my ashtray wood disengaged. I've used panel adhesive and found it not good for the SoCal. greenhouse effect in an automobile (too brittle over time).
The Golden Rule
1984 300SD (bought new, sold it in 1988, bought it back 13 yrs. later)