A space to discuss online store customization, theme development, and Liquid templating.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
This is an accepted solution.
Hello there
It's important to note that the placement of the ad code can affect its performance. Adsterra recommend placing the ad code in a prominent position where it will be visible to visitors, such as the header, footer, or sidebar of your website. Additionally, it's also recommended to test the ad on different devices and browsers to make sure it's working properly.
Keep in mind that Adsterra has a variety of ad formats, such as Display ads, Push notifications, Interstitials, and Video ads. So, the process of adding the code may be different depending on the ad format you choose to use. The most important thing is to make sure that you follow the instructions provided by Adsterra, as well as your website platform when adding the code.
Hello @saad532 ,
We are OneExperts from OneCommerce and we here to help you.
You can follow these steps to add Adsterra code:
<head>
...
<!-- Adsterra Code -->
<script async src="https://www.adsterra.com/delivery/asyncjs.php"></script>
<div id="adsterra_slot_123456"></div>
<script>
var adsterra_conf = {
element_id: 'adsterra_slot_123456',
format_id: '123',
responsive: 'true',
onLoad: function() {
console.log('Adsterra ad has been loaded');
},
onError: function() {
console.log('Adsterra ad has failed to load');
}
};
Adsterra.init(adsterra_conf);
</script>
<!-- End Adsterra Code -->
</head>
It's important to note that you should replace "123456" and "123" with the real information you get from Adsterra platform after you create a campaign.
4. Click Save and preview.
-> In case that you want to place the ads on specific pages only. You can use the "page.liquid" template and add the Adsterra code there.
Hope this can help with your problem.
Regards,
OneExperts by OneCommerce.
Get know us at: Website | Blog | FAQ | Contact us
This is an accepted solution.
Hello there
It's important to note that the placement of the ad code can affect its performance. Adsterra recommend placing the ad code in a prominent position where it will be visible to visitors, such as the header, footer, or sidebar of your website. Additionally, it's also recommended to test the ad on different devices and browsers to make sure it's working properly.
Keep in mind that Adsterra has a variety of ad formats, such as Display ads, Push notifications, Interstitials, and Video ads. So, the process of adding the code may be different depending on the ad format you choose to use. The most important thing is to make sure that you follow the instructions provided by Adsterra, as well as your website platform when adding the code.
In your opinion. It's a good idea or not? to put adsterra ads on your online store? I mean will it hurt the store's reputation and makes it look shady?