πŸ› 
Configuration
Here are the integrations that you can configure on the product after installation.
Currently, we only support Adsense ad codes, for more ad networks contact us.

1. Ad code (Adsense) setup

When we create an ad unit from Adsense we get an ad code like below but as we're using Vue.js and Adsense doesn't support it natively so we'll make few changes. Example Ad Code:
1
// Google Adsense Js script which needs to be run when site load
2
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js">
3
</script>
4
5
// Element which define our ad unit, need to be placed in respective code
6
<ins class="adsbygoogle"
7
style="display:block"
8
data-ad-client="ca-pub-0000000000000000"
9
data-ad-slot="0000000000"
10
data-ad-format="auto" // This ad property needs to be removed
11
></ins>
12
13
// Unnecessary script code
14
<script>
15
(adsbygoogle = window.adsbygoogle || []).push({});
16
</script>
Copied!

Step 1:

Add JS script of your Adsense code in your Extra code text section. This needs to be done once for all ad units.
1
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js">
2
</script>
Copied!
Referrence Image

Step 2:

Now copy the <ins> tag element of your ad code and place it in respective ad block.
1
<ins class="adsbygoogle"
2
style="display:block"
3
data-ad-client="ca-pub-0000000000000000"
4
data-ad-slot="0000000000"
5
></ins>
Copied!
Do not forget to remove data-ad-format="auto" property.
Referrence Image

2. Cron job setup

The cron job must be set up as it is responsible for handling background tasks.
    1.
    Create a new cron job with one of the following commands to run once in an hour.
      0 * * * * wget --quiet -O /dev/null https://yourdomain.com/cron.php
      0 * * * * wget --spider -O - https://yourdomain.com/cron.php >/dev/null 2>&1
      0 * * * * curl --silent https://yourdomain.com/cron.php
    2.
    Make sure to replace the https://yourdomain.com/ string with your domain name.
​

3. Luminati Proxies Setup

You can easily add Luminati proxies in your script by following the below steps.
1. Create an account on Luminati.io​
2. After successfully activating the account go to the "Zones" Section from the side menu and click on "Add Zone" button.
Referrence Image
3. In "Add new Zone" page select the following options and create zone
    Network types: Datacenter
    Price plan: Pay as you go* - $0.6/GB
    Permissions: 100% Uptime
    IP Type: Shared (Pay per usage)
Referrence Image
4. After creating Zone click on the Edit icon and you'll get the following screen, from there you can get your Zone Username & Password.
Referrence Image
5. You've created your zone and got your zone username & password, now open your TikTok script admin panel and add your Luminati proxies in the following format.
1
http://username:[email protected]:22225
Copied!
6. Replace "username" & "password" with your own zone details and click Add.
Referrence Image
7. Voila! You've successfully added your proxy.
Last modified 10mo ago