Attach a pick or use floral pins to add your foam pumpkin to your swag. I use floral pins. Add floral pin to the bottom of your foam pumpkin then add hot glue.
Then set that pumpkin down in place and it will adhere to the mesh and shouldn't go anywhere.
Keep adding pumpkin into swag base where you desire.
You can also use a pipe cleaner to attach your pumpkins to the spine of the swag base.