Connect variable to game from site

Currently my game is showing ads every x times, if i want to change that x then i need to change it in unity and then update the game on the google play. Is it possible to make a variable(In site or somewhere else) and then inside unity c# get the variable value from the website (so i don’t need to change update and all that)
Something like:

Site:
value = 7;

Unity c#

int adCounter = Site.value;
if(GameOver) adCounter--; //Decrease if gameover

if(adCounter == 0) adCounter = Site.value;//Reset back

You can use the WWW-class to read online files.