Instructions for Adding the Applanza SDK to Your Website
Follow these steps to integrate the Applanza SDK into your website for displaying ads and other functionalities.
Step 1: Include the SDK Script
Add the following <script> tag to the <head> section of your website. This will load the Applanza SDK:
<script src="https://my.applanza.com/sdk.js"></script>
Place this code inside the <head> tag of your HTML document. For example:
<head> <title>My Website</title> <script src="https://my.applanza.com/sdk.js"></script> </head>
Step 2: Use the SDK Method
After the SDK script has been successfully loaded, call the showApplanza() method to initialize the SDK and display ads. Place this code anywhere on your page where you want the ad to be shown:
<script> showApplanza(); </script>
For example:
<body> <h1>Welcome to My Website</h1> <script> showApplanza(); </script> </body>
Step 3: Verify Integration
1.Open your website in a browser.
2.Check the console (press F12 > Console tab) for any errors related to loading the SDK or executing showApplanza().
3.Ensure the ads or other SDK functionalities are appearing as expected.
Notes:
•Asynchronous Loading: The SDK script is loaded asynchronously, so it won’t block the loading of other page resources.
•Caching: The SDK may be cached by the browser for better performance. To clear the cache during development, hard-refresh the page (usually Ctrl+Shift+R or Cmd+Shift+R).
If you encounter any issues, please contact our support team at [email protected].