Plugin Directory

Changeset 3244823


Ignore:
Timestamp:
02/22/2025 09:37:44 AM (13 months ago)
Author:
JonasBreuer
Message:

release 2.5.0

Location:
affiliate-power
Files:
32 added
4 edited

Legend:

Unmodified
Added
Removed
  • affiliate-power/trunk/affiliate-power-settings.php

    r3234543 r3244823  
    8989                    array('slug' => 'sitename', 'label' => 'Site name', 'info' => __('If you are using your Tradedoubler account for several pages, enter the site name you defined in the Tradedoubler login area for this page. The plugin will only import sales from this site name. Please do not enter the site id but the name. You can find the site name in the publisher area, menu item Sites -> Sites. If you are using several sites for this page you can separate the site names with comma. If you are using your account only for this page anyway, just leave the field empty. In this case, the plugin will download all sales.', 'affiliate-power')),
    9090                    array('type' => 'checkbox', 'slug' => 'us-format', 'label' => 'US format', 'info' => __('Activate this checkbox, if your tradedoubler account is using US format. It might be using US format even if you are not in ths US. You can check this by looking at the dates in the Tradedoubler login area. If they list the month first (mm/dd/yy), your account is using US format.', 'affiliate-power')),
     91                ),
     92            ),
     93           
     94            'webgains' => array(
     95                'slug' => 'webgains',
     96                'link_pattern' => 'wgcampaignid',
     97                'label' => 'Webgains',
     98                'check_login_params' => 2,
     99                'fields' => array(
     100                    array('slug' => 'publisher_id', 'label' => 'Publisher-ID', 'info' => __('You can find your numeric Publisher-ID in your Publisher account settings (bottom left corner after logging in).'), 'validation' => 'ctype_digit'),
     101                    array('slug' => 'token', 'label' => 'API Token', 'info' => __('To generate an API Token, login into your Webgains account, click on your username in the top right corner and on "Manage API Tokens". Click on "Generate new token", give it a name and copy the generated token (yes, it is crazy long).')),
    91102                ),
    92103            ),
  • affiliate-power/trunk/affiliate-power.php

    r3234543 r3244823  
    66AUTHOR: Jonas Breuer
    77AUTHOR URI: https://www.j-breuer.de
    8 VERSION: 2.4.1
     8VERSION: 2.5.0
    99Text Domain: affiliate-power
    1010Min WP Version: 4.6
     
    1313if (!defined('ABSPATH')) die; //no direct access
    1414
    15 define('AFFILIATE_POWER_VERSION', '2.4.1');
     15define('AFFILIATE_POWER_VERSION', '2.5.0');
    1616
    1717define('AFFILIATE_POWER_DIR', dirname(__FILE__).'/'); 
  • affiliate-power/trunk/apis/adcell.php

    r2283644 r3244823  
    3232        if (!$token) return false;
    3333       
    34         $StartDate = time()-3600*24;
    35         $EndDate = time();
     34        $StartDate = date('Y-m-d', time()-3600*24);
     35        $EndDate = date('Y-m-d', time());
    3636
    37         $report_url = 'http://www.adcell.de/csv_affilistats.php?sarts=x&pid=a&status=a&subid=&eventid=a';
    38         $report_url .= '&timestart='.$StartDate;
    39         $report_url .= '&timeend='.$EndDate;
    40         $report_url .= '&uname='.$username;
    41         $report_url .= '&pass='.$password;
     37        $report_url = 'https://api.adcell.org/api/v2/affiliate/statistic/byCommission?token='.$token.'&startDate='.$StartDate.'&endDate='.$EndDate.'&rows=1&page=1';
    4238
    4339        $http_answer = wp_remote_get($report_url);
     
    6965        $EndDate = date('Y-m-d', $tillTS);
    7066
    71         $json_url = 'https://www.adcell.de/api/v2/affiliate/statistic/byCommission?token='.$token.'&startDate='.$StartDate.'&endDate='.$EndDate.'&rows=1000&page=1';
     67        $json_url = 'https://api.adcell.org/api/v2/affiliate/statistic/byCommission?token='.$token.'&startDate='.$StartDate.'&endDate='.$EndDate.'&rows=1000&page=1';
    7268
    7369        $http_answer = wp_remote_get($json_url);
     
    129125
    130126    static private function getToken($username, $password) {
    131         $json_url = 'https://www.adcell.de/api/v2/user/getToken?userName='.$username.'&password='.$password;
     127        $json_url = 'https://api.adcell.org/api/v2/user/getToken?userName='.$username.'&password='.$password;
    132128       
    133129        $http_answer = wp_remote_get($json_url);
  • affiliate-power/trunk/readme.txt

    r3234545 r3244823  
    44Tags: affiliate, tracking, revenue attribution, financeads, awin
    55Requires at least: 4.6
    6 Tested up to: 6.7.1
     6Tested up to: 6.7.2
    77Requires PHP: 5.6
    88Stable tag: trunk
     
    2525That’s what I thought as well and that’s why I made the WordPress Plugin Affiliate Power.
    2626
    27 Affiliate Power imports your sales of various affiliate networks. That gives you up to date income reviews and statistics right in your WordPress backend. The basic version is absolutely free. The [premium version](https://www.affiliatepowerplugin.com/premium/) actually tracks which post, referer, campaign, and device has brought the sale. You'll finally know what really pays.
     27Affiliate Power imports your sales of various affiliate networks. That gives you up to date income reviews and statistics right in your WordPress backend. The basic version is absolutely free. The [premium version](https://www.affiliatepowerplugin.com/premium/) actually tracks which post, referer, campaign, and device has brought the sale. You'll finally know what really pays. If you have less than 100 sales per month, the premium version is completely free.
    2828
    2929
     
    3232Premium only features are *emphasized*.
    3333
    34 * Supported Networks: adcell, awin, belboon, commission junction, financeads, digistore24, tradedoubler
     34* Supported Networks: adcell, awin, belboon, commission junction, financeads, digistore24, tradedoubler, webgains
    3535* Filter your import per website
    3636* Overview over all sales
Note: See TracChangeset for help on using the changeset viewer.