Advergame

From VNDev Wiki

An advergame is a form of advertising in video games, in which the video game is developed by or in close collaboration with a corporate entity for purposes of advertising a brand-name product. While other video games may use in-game advertising (such as an advertisement on a virtual billboard or branding on an in-game object), an advergame is differentiated by the Interactive Advertising Bureau as a "game specifically designed around [the] product or service being advertised". An advergame is considered a type of advertainment. (From Wikipedia)

Examples in Visual Novels:

https://en.wikipedia.org/wiki/I_Love_You,_Colonel_Sanders!