Multiformat converting traffic source!
Boost your B2C campaigns with Adavice DSP: PUSH & POP and more! + BONUS

Guide đŸ“Š Galaksion Optimizer Script (works with any tracker!)

dood

🚀
Staff Member
Community Leader
Joined
May 2, 2018
Messages
3,745
A few months ago I published a guide called How to Start With Galaksion Ad Network. Before that I’ve published a few case studies like these:

So I was thinking maybe it’s time that I share the first Optimizer Script for Galaksion traffic source? You know I already shared a few scripts like that on the forum, so for different traffic sources.

This script will pull data from your traffic source (in this case Galaksion) and optimise based on that data. Optimising while using data from traffic source will take click loss into consideration. This might actually be a good idea, as long as you are comfortable with posting back conversions to your traffic source.

You can download/copy the script here 👇



Clicking on the image above (or this link) will create a copy of the Optimizer script in your Google account and you’ll be the only person that will have access to that version of the script.

For this script to work, you’ll need to make sure postbacks are correctly set up from your tracker to the traffic source. You can find the instructions on how to set up a postback to Galaksion here. One thing I’ve noticed with postback on Galaksion is that they don’t have a token for offer payout in postback URL, so optimising based on ROI will not be available this time.

This script will not load data from your tracker, but you’ll still need to use the tracker to postback conversions back to the traffic source.

If you are sure your postback is correctly set up, you can now go on and create a new campaign on Galaksion. Once your campaign is created, open the Campaigns page, and look for the ID of your campaign, like this:



Remember that ID - you’ll need that ID to put it in the Configuration tab.



As I mentioned before - this script doesn’t pull the data from the tracker, so the last thing you’ll need to enter in the Configuration tab is your Galaksion username and password. Those 2 fields are used to generate the API key used in API calls. It’s kinda weird that you have to use your username and password to generate the API key every time, but it is how it is.

NOTE: The API section is available in the Galaksion account by request.



Once you add your Username, Password and Campaign ID you are ready to add some optimization rules to the Rules sheet!

Adding Rules​

This script supports adding up to 3 rules for each campaign. Each rule can have a maximum of 3 conditions.



Here are simple instructions on how to add a rule:

  1. You need to turn the rule ON first. Click on the checkbox (1) near the Rule name, and then a box should switch from red to green.
  2. Next, you’ll need to select at least one condition. You don’t have to use all three, but you’ll have to enter at least one. Your rule can optimize by 4 different fields:
    1. Conversions
    2. CV
    3. Cost
    4. CPA
    5. Impressions
    6. Clicks (only available for push campaigns)
    7. CTR (only available for push campaigns)
    8. CPC (only available for push campaigns)
  3. Then you’ll need to pick how you want this rule to compare values. You can select between higher or lower.
  4. And the last field (4) is the value. In case you want to use decimal values, you’ll need to use the dot and not comma. So for example if you want to create a rule that will block all zones that spent more than $11.50 and have no conversions, you’ll put 11.50 (and not 11,50) in the field. Also, don’t put $ signs in those fields. Just numbers.
  5. Now you need to define the action of the rule. If the above conditions are met, what should the script do? You can choose between Block zone and Pause campaign options.
  6. Last field you need to fill out is the time range (6 - Data from). If your campaign is getting a lot of traffic you may want to optimize based on a shorter time range, and in case your campaign is not getting much traffic, select a wider time range. The script can load the data from:
    1. last 24 hours
    2. last 3 days
    3. last 7 days
    4. last 14 days
    5. last 30 days
  7. Once you run the script (or Google Sheets runs in, based on settings I’ll explain later), the Last run field should show some values (date and time). If it’s empty, it means your rule hasn’t run yet.
  8. If you want to run the script now (manually) you can always click on the RUN SCRIPT NOW button. Loading the data and running the optimization rules in the background can take a while (if you have a lot of data - sometimes it can take up to 5 minutes) so don’t press this too much. If the script is running, you can check the Log sheet and wait once the script is done.

✅ Here are a few examples of valid rules:​

1. Block all zones that have spent more than $5 in the last 7 days and have cost per conversion (CPA) higher than $0.5 (for example, if your offer payout is $0.5, this is a 10x spend rule)




2. Block all zones that have spent more than $2 in the last 24 hours and have 0 conversions (< 1).




3. Pause campaign which spent more than $50 in the last 7 days and has cost per conversion higher than $0.9.




4. Pause campaign which spent more than $10 in the last 7 days and had 0 conversions (<1).




⛔ And here are a few examples of invalid rules:​

1. Nothing selected in 2nd drop-down field (comparison field, must be set to greater or lower)




2. Action not selected (Do what field empty)




3. Rule turned OFF (checkbox not checked)




4. No time frame selected (Data from field empty)




😕 Of course, you can create a valid rule which doesn’t make much sense. I’ll post a few examples:​

1. Block all zones which spent more than $2 in the last 7 days and have conversion rate lower than 0%.



What’s wrong with this? You expect the CV to be negative. If the zone didn’t get any conversions, that CV on that zone will be 0%, not lower than 0%.


2. Block zones which spent more than $2 in the last 7 days and have the number of conversions lower than 0.



What’s wrong with this? You expect the number of conversions to be negative. If the zone didn’t get any conversions, that number of conversions on that zone will be 0%, not lower than 0%. If you want to fetch all zones that have 0 conversions, use Conversions / lower / 1.


3. Block zones that have spent more than $3 in the last 7 days.



What’s wrong with this? Well it will block ALL zones that spend more than $3 - even the ones that have conversions. Usually, you’ll want to add more conditions under the same rule, for example under the 2nd condition you could add CPA / greater / 0.3.

Running the script 24/7​

Make sure you have at least one valid rule set before creating a trigger that will run the script every 15 minutes.

If you want this script to run every 15 minutes, every day, follow these steps:



Select Extensions > Apps Script from the main menu. Then select Triggers from the left menu.



Then, click on the + Add Trigger button:



And configure the settings in popup like this:



Once you are done - click on Save.

💡 TIP: I suggest you don’t use values lower than “Every 15 minutes” in the last drop down because executing Google Sheets Apps Scripts can be slow and your script might run for 5-6 minutes on each run. You don’t want the same script running twice at the same time. So setting the script to run every 15 minutes should be OK.

When you click Save, you might need to give some permissions to this script, so popups like these might show up:



Pick the Google account you wish to use with this script.



Click on the Advanced button.



And then click on the bottom link.



Click on the Allow button. And now you should see a trigger in the list, like this:



You are all set! The script will run every 15 minutes, every day.


When to use the Optimizer script?​

Galaksion supports CPA bidding, so I’d suggest you always start your campaigns on CPA model. That way, you’ll get the best traffic right from the start, and the CPA algorithm will optimise your campaign while it’s alive (ie. it will stop sending traffic from zones that aren’t converting or convert but with high CPA).

While you can use CPA bidding to start with, it might happen that your campaign will start getting less and less traffic in case there are other campaigns in the Galaksion network that perform better than yours.

You should be able to collect some data with the initial CPA test and find some profitable zones. If your CPA campaigns die too quickly, you might consider creating blacklist CPM campaigns with those zones. That way you should be able to get constant traffic at a fixed CPM cost. And if your campaign starts getting traffic from new zones (that are not already blacklisted) this script would take care of them. Also, if some of the existing profitable zones take a dip when it comes to CPA cost, this script can also exclude them from the campaign.

So I think blacklist CPM campaigns should be a good fit for this script. I’m not sure it makes sense to use this script for CPA campaigns. If you are looking for instructions on how to relaunch campaigns on Galaksion, you can read this post. In that post CPA bidding is used, but you can do the same for CPM campaigns.

This script works with all available add formats on Galaksion; popunder and push.

Let me know in the comments below if you are using this script and if there is anything I can do to improve it! 👇
 
LeadStackMedia
May I ask what is the approximate cr of your push collection?😳
Depends on the campaign, but these days with pops, I usually try to get as close to 1% as possible on the initial testing and then expect it to go up from there with optimization.

Here's a campaign from yesterday after going through the Galaksion CPA Goal algo:



Obviously, I have a few high traffic zones that are converting really well. Definitely important to keep an eye on those.
 
A few months ago I published a guide called How to Start With Galaksion Ad Network. Before that I’ve published a few case studies like these:

So I was thinking maybe it’s time that I share the first Optimizer Script for Galaksion traffic source? You know I already shared a few scripts like that on the forum, so for different traffic sources.

This script will pull data from your traffic source (in this case Galaksion) and optimise based on that data. Optimising while using data from traffic source will take click loss into consideration. This might actually be a good idea, as long as you are comfortable with posting back conversions to your traffic source.

You can download/copy the script here 👇



Clicking on the image above (or this link) will create a copy of the Optimizer script in your Google account and you’ll be the only person that will have access to that version of the script.

For this script to work, you’ll need to make sure postbacks are correctly set up from your tracker to the traffic source. You can find the instructions on how to set up a postback to Galaksion here. One thing I’ve noticed with postback on Galaksion is that they don’t have a token for offer payout in postback URL, so optimising based on ROI will not be available this time.

This script will not load data from your tracker, but you’ll still need to use the tracker to postback conversions back to the traffic source.

If you are sure your postback is correctly set up, you can now go on and create a new campaign on Galaksion. Once your campaign is created, open the Campaigns page, and look for the ID of your campaign, like this:



Remember that ID - you’ll need that ID to put it in the Configuration tab.



As I mentioned before - this script doesn’t pull the data from the tracker, so the last thing you’ll need to enter in the Configuration tab is your Galaksion username and password. Those 2 fields are used to generate the API key used in API calls. It’s kinda weird that you have to use your username and password to generate the API key every time, but it is how it is.

NOTE: The API section is available in the Galaksion account by request.



Once you add your Username, Password and Campaign ID you are ready to add some optimization rules to the Rules sheet!

Adding Rules​

This script supports adding up to 3 rules for each campaign. Each rule can have a maximum of 3 conditions.



Here are simple instructions on how to add a rule:

  1. You need to turn the rule ON first. Click on the checkbox (1) near the Rule name, and then a box should switch from red to green.
  2. Next, you’ll need to select at least one condition. You don’t have to use all three, but you’ll have to enter at least one. Your rule can optimize by 4 different fields:
    1. Conversions
    2. CV
    3. Cost
    4. CPA
    5. Impressions
    6. Clicks (only available for push campaigns)
    7. CTR (only available for push campaigns)
    8. CPC (only available for push campaigns)
  3. Then you’ll need to pick how you want this rule to compare values. You can select between higher or lower.
  4. And the last field (4) is the value. In case you want to use decimal values, you’ll need to use the dot and not comma. So for example if you want to create a rule that will block all zones that spent more than $11.50 and have no conversions, you’ll put 11.50 (and not 11,50) in the field. Also, don’t put $ signs in those fields. Just numbers.
  5. Now you need to define the action of the rule. If the above conditions are met, what should the script do? You can choose between Block zone and Pause campaign options.
  6. Last field you need to fill out is the time range (6 - Data from). If your campaign is getting a lot of traffic you may want to optimize based on a shorter time range, and in case your campaign is not getting much traffic, select a wider time range. The script can load the data from:
    1. last 24 hours
    2. last 3 days
    3. last 7 days
    4. last 14 days
    5. last 30 days
  7. Once you run the script (or Google Sheets runs in, based on settings I’ll explain later), the Last run field should show some values (date and time). If it’s empty, it means your rule hasn’t run yet.
  8. If you want to run the script now (manually) you can always click on the RUN SCRIPT NOW button. Loading the data and running the optimization rules in the background can take a while (if you have a lot of data - sometimes it can take up to 5 minutes) so don’t press this too much. If the script is running, you can check the Log sheet and wait once the script is done.

✅ Here are a few examples of valid rules:​

1. Block all zones that have spent more than $5 in the last 7 days and have cost per conversion (CPA) higher than $0.5 (for example, if your offer payout is $0.5, this is a 10x spend rule)




2. Block all zones that have spent more than $2 in the last 24 hours and have 0 conversions (< 1).




3. Pause campaign which spent more than $50 in the last 7 days and has cost per conversion higher than $0.9.




4. Pause campaign which spent more than $10 in the last 7 days and had 0 conversions (<1).




⛔ And here are a few examples of invalid rules:​

1. Nothing selected in 2nd drop-down field (comparison field, must be set to greater or lower)




2. Action not selected (Do what field empty)




3. Rule turned OFF (checkbox not checked)




4. No time frame selected (Data from field empty)




😕 Of course, you can create a valid rule which doesn’t make much sense. I’ll post a few examples:​

1. Block all zones which spent more than $2 in the last 7 days and have conversion rate lower than 0%.



What’s wrong with this? You expect the CV to be negative. If the zone didn’t get any conversions, that CV on that zone will be 0%, not lower than 0%.


2. Block zones which spent more than $2 in the last 7 days and have the number of conversions lower than 0.



What’s wrong with this? You expect the number of conversions to be negative. If the zone didn’t get any conversions, that number of conversions on that zone will be 0%, not lower than 0%. If you want to fetch all zones that have 0 conversions, use Conversions / lower / 1.


3. Block zones that have spent more than $3 in the last 7 days.



What’s wrong with this? Well it will block ALL zones that spend more than $3 - even the ones that have conversions. Usually, you’ll want to add more conditions under the same rule, for example under the 2nd condition you could add CPA / greater / 0.3.

Running the script 24/7​

Make sure you have at least one valid rule set before creating a trigger that will run the script every 15 minutes.

If you want this script to run every 15 minutes, every day, follow these steps:



Select Extensions > Apps Script from the main menu. Then select Triggers from the left menu.



Then, click on the + Add Trigger button:



And configure the settings in popup like this:



Once you are done - click on Save.

💡 TIP: I suggest you don’t use values lower than “Every 15 minutes” in the last drop down because executing Google Sheets Apps Scripts can be slow and your script might run for 5-6 minutes on each run. You don’t want the same script running twice at the same time. So setting the script to run every 15 minutes should be OK.

When you click Save, you might need to give some permissions to this script, so popups like these might show up:



Pick the Google account you wish to use with this script.



Click on the Advanced button.



And then click on the bottom link.



Click on the Allow button. And now you should see a trigger in the list, like this:



You are all set! The script will run every 15 minutes, every day.


When to use the Optimizer script?​

Galaksion supports CPA bidding, so I’d suggest you always start your campaigns on CPA model. That way, you’ll get the best traffic right from the start, and the CPA algorithm will optimise your campaign while it’s alive (ie. it will stop sending traffic from zones that aren’t converting or convert but with high CPA).

While you can use CPA bidding to start with, it might happen that your campaign will start getting less and less traffic in case there are other campaigns in the Galaksion network that perform better than yours.

You should be able to collect some data with the initial CPA test and find some profitable zones. If your CPA campaigns die too quickly, you might consider creating blacklist CPM campaigns with those zones. That way you should be able to get constant traffic at a fixed CPM cost. And if your campaign starts getting traffic from new zones (that are not already blacklisted) this script would take care of them. Also, if some of the existing profitable zones take a dip when it comes to CPA cost, this script can also exclude them from the campaign.

So I think blacklist CPM campaigns should be a good fit for this script. I’m not sure it makes sense to use this script for CPA campaigns. If you are looking for instructions on how to relaunch campaigns on Galaksion, you can read this post. In that post CPA bidding is used, but you can do the same for CPM campaigns.

This script works with all available add formats on Galaksion; popunder and push.

Let me know in the comments below if you are using this script and if there is anything I can do to improve it! 👇

Good day, dear @dood !

Galaksion's team would like to extend our sincerest gratitude to you for your dedication and passion in work with our advertising network. We're sure, this publication, focused on tracking integrations, will provide users with valuable insights about our platform’s capabilities! This guide can be seamlessly integrated into users' workflow processes to enhance productivity and drive success.

Thank you for your commitment for consistently going above and beyond to support Galaksion and its community!

Best wishes,
The Galaksion Team
 
As a token of our appreciation and to increase AffLIFT users' engagement, we would like to tell everyone that for those who join us after reading this guide by @dood , we have a promo code DOOD20, which will allow new users to receive an extra +20% bonus on their account with the first deposit of $100 or more! Just use the following link đŸ”„

Additionally, we have exciting news for our existing users as well! We have prepared a bonus for you too! Use promo code DGUIDE20 to receive $20 added to your balance when depositing $100 or more đŸ”„
 
amazing stuff, thanks @dood! If possible, script for RollerAds would be appreciated as well
Hi! Thank you for your interest in such a tool for RollerAds.
You can try our in-house features to level up your campaign optimization—check out the CPA Goal bid model and CPA optimization feature.
  • CPA Goal—a bidding model on our platform. You input how much you’d like your cost of acquisition (Target CPA) to be, and then our algorithm optimizes your zones, feeds, rates, and overall ad spend.
  • CPA Optimization is a feature that allows you to turn off the lowest converting zones automatically. You no longer need to disable outperforming zones manually. You set the rules there that you want to follow, and the platform automatically optimizes the campaign according to them.
Note: To ensure the bid model and feature work, you need to set up a postback.

Let us know if you need any help!
 
+1 on rollerads version, but will the reporting via rollerads API be real time? The reporting in the dashboard is not real time and has a large delay
 
+1 on rollerads version, but will the reporting via rollerads API be real time? The reporting in the dashboard is not real time and has a large delay
Hey,

🙌statistics via API may update to 1 hour. However, our own optimization tools work with real-time data :)
 
Top