Really struggling with adding amazon affiliate to app

How would I use this snippet inside if my app to place in a certain div? I have tried reading through the topics of html.Script(), external scripts and app.scripts.append_script but stumped with this.

I have tried each of these methods and am not getting it right.


<script type="text/javascript">
amzn_assoc_placement = "";
amzn_assoc_tracking_id = "";
amzn_assoc_ad_mode = "search";
amzn_assoc_ad_type = "smart";
amzn_assoc_marketplace = "amazon";
amzn_assoc_region = "US";
amzn_assoc_default_search_phrase = "";
amzn_assoc_default_category = "All";
amzn_assoc_linkid = "";
amzn_assoc_design = "in_content";
</script>
<script src="//z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US"></script>