Porting Mobile Game to HTML With Unity Ads?

Hi! I have a game on Android in which I have Unity Ads. I wanted to put it as a flash game, but I have the code to put in an ad. If I port it to HTML, will it just ignore the code or will I have to take out the code?

You can always use #IF ANDROID or #IF HTML (might be webbrowser or something) and this way it wont even compile and you wont waste resources on loading useless code