Considering the foam is floating and preventing anything entering the hole, it would be considered holed if the ball was either on top of the foam or leaning against the foam. Of course, if you are on the green and putting, go ahead and remove it so that you can putt into the hole.
My biggest advice, in addition to getting an instructor (or not!) and practicing regularly on the right things, would be to commit. It’s far too easy to leave the things that are helping you once you hit a bad shot or have a bad round. If you have a good instructor, then commit. Don’t go chasing YouTube videos or quick tips; buy into what they’re saying and put the blinders on. Block out all exterior noise and work on the things YOU need to work on. After all, you’re paying money for lessons, why not commit? Otherwise, you’re throwing away money and wasting the instructor’s time.
Don’t over analyze every bad shot either. It’s not about the result of the shot at first. Instead, focus on whether you executed what you and your instructor are trying to accomplish. This is hard to do because you want to play good golf right away, but you gotta train the right things, and eventually, it’ll bear fruit. If you see on video that you’re doing it right, then show it to your instructor and re-evaluate. Maybe you’re overdoing it or maybe you’re not doing it enough.