Hi,
I would say, change the page you are including to a php file too (as you probably already know, php can contain html or you can use php to echo it).
That way you don't even need an if statement in your main page, you just move those if statements to the page containing the ads, echo'ing the right div based on your "CountryCode" variable.
Good luck.