Trying to add ad code but getting "parsing error"

Hello I am trying to add some code provided to me by an ad network to run their ads on my website. however when i try to add the code I get the parsing unexpected token error. I have attached a picture below. I appreciate any help. I cannot use the google ad sense ad because google ad sense is not compatible with my content so I have to resort to other ad networks. thanks

You can’t add html code to your page like that, you either have to add it in an iframe or as a custom tool in Tracking and Analytics.
https://support.wix.com/en/article/using-iframes-to-display-visible-content-on-your-site
https://support.wix.com/en/article/embedding-custom-code-to-your-site

Plus, as mentioned in that first link, that Wix does not provide support for code that comes from a third party provider, so if you need any help with integrating it into Wix then you need to be contacting the support for the third party code provider.

Can you please tell me which ad network are you using?