Does your house have a subfloor? The answer might not be as simple as you think, especially if you have an older home.
After the materials you use for repairs have dried and cured (this can take up to 24 hours) you should slightly rough up the subflooring surface with an etching solution or a power tool.