You earn XP by allowing the app to automatically measure exposure to TV, YouTube, outdoor media, ad tracking, and radio ads in your surroundings. You have to activate Media Research for this purpose.
The longer you leave the app running in the background the more points you collect, which will give you a better score and more chances to win the prize draws.