Initialization

Integrating TyrAds web is easy and can be done by just passing the url in the in-app-browser or iframe:

https://websdk.tyrads.com/?apiKey=YOUR_API_KEY&apiSecret=YOUR_API_SECRET&userID=CUSTOMER_USER_ID&platform=web

Just replace the following values with your own.

  • YOUR_API_KEY

  • YOUR_API_SECRET

  • CUSTOMER_USER_ID

If your website is using html, you can use the following steps to integrate TyrAds web:

  • add an iframe to your page

<iframe id="tyrads_iframe" src="" height="650" width="300"></iframe>
  • provide the source URL dynamically to the iframe src attribute

<script type="text/javascript" deffered>
        (function () {

                var frameElement = document.getElementById("tyrads_iframe");
                var apiKey = "YOUR API KEY"
                var apiSecret = "YOUR API SECRET"
                var userId = "1234567890"
                frameElement.src = "https://websdk.tyrads.com/?apiKey=" + apiKey + "&apiSecret=" + apiSecret + "&userID=" + userId + "&platform=web";

        })();  
</script>

Last updated