Skip to main content

What are the most common integration errors, and how can I fix them?

The most common errors occur during the installation of the ad code on your website. Here are the key issues and how to resolve them.

❌ Error 1: Push Notifications — Missing or Incorrect Service Worker File

Problem: The Service Worker file (e.g., 11111.sw.js) is not uploaded, is placed in the wrong folder, or is renamed.

Solution:

1. Download the exact file from your Push zone settings in the dashboard.

2. Upload it to your website's root folder (e.g., public_html/, www/, htdocs/).

  • Ensure the file name has not been changed and it is not placed inside a subfolder.

  • Verify it is accessible via a direct browser link: yoursite.com/yourfilename.sw.js (insert your unique file name)

❌ Error 2: Code Placed in the Wrong Part of the HTML

Problem: The JavaScript tag is not placed correctly within the <body> section of your website.

Solution:

  1. Locate the closing </body> tag in your site's HTML.

  2. Paste the copied ad code just before this </body> tag on all pages where ads should appear.

  3. Do not place the code in the <head> section or outside the HTML structure.

❌ Error 3: OnClick Ads — Incomplete or Duplicate Code Placement

Problem: The OnClick code is only on some pages, or is pasted multiple times, causing conflicts.

Solution:

  1. Ensure the OnClick tag is placed on every page you wish to monetize.

  2. Check that the tag appears only once per page to prevent errors.

General Troubleshooting Steps

  • Clear your browser cache and refresh the page after making changes.

  • Use browser developer tools (F12) to check the Console tab for specific JavaScript errors.

  • For WordPress sites with no root folder access, ensure the RollerAds WordPress Plugin is correctly activated and configured.

If issues persist after checking these points, contact your manager or our support team via the in-platform chat or at [email protected] for assistance.

Did this answer your question?