I think this is the right answer. Bob Smith Foam Cure I think is similar/same sort of stuff?
Just another thought ... I've had a couple places where this didn't do the trick, but I stumbled on 3m weather stripping glue. It's black color, messy, sticky, gooey, but really seems to hold well ... might be an option for especially stubborn tasks.