Banner: How to integrate the code?
When inserting scripts, ensure that you replace the following unique values: ADCODE-ID, SPOT-ID, or URL.
VanillaJS / iframe
iframe
In the case of iframe, your account manager will provide an URL.
Use it to insert into the code below:
for /body
Then insert this iframe within the site’s body element, where advertising content is intended to be shown.
VanillaJS
Your account manager will provide your ADCODE-ID, and SPOT-ID.
Use ADCODE-ID and SPOT-ID to replace {ADCODE-ID} and {SPOT-ID} in the scripts below.
Head:
The commonly used name for the HTML file is Index.html. However, this name can vary depending on the project.
for /head in the HTML file
Body:
While inserting the following code, pay close attention to the SPOT-ID number. Each line with <div data-banner="{SPOT-ID}"></div> is dedicated to a specific spot.
for /body
React
Your account manager will provide your ADCODE-ID, and SPOT-ID.
Use ADCODE-ID and SPOT-ID to replace {ADCODE-ID} and {SPOT-ID} in the scripts below.
Head:
for /head in the HTML file
Ad show component for React
It is also crucial to create a file for the component that handles the ad show. Then insert it into the relevant section of the project.
Step 1. Please create a file named like “src/ComponentWithAdBanner.jsx” with the following code:
for a file “src/ComponentWithAdBanner.jsx”
Step 2. Insert the newly created component into the relevant section of the project, such as: src/app.jsx
for src/app.jsx
Other TMA formats for publishers
- Tg-Interstitial: How to integrate the code? →
- Video: How to integrate the code? →
- General article: How can I integrate code? →