1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need help with amonetize script integration

Discussion in 'Pay Per Install' started by Markosh, May 10, 2017.

  1. Markosh

    Markosh Junior Member

    Joined:
    Feb 2, 2015
    Messages:
    194
    Likes Received:
    31
    Hi BHW

    I was all time amonetize fan .. But since 2016 I left amonetize for window installs due to low earning and frequent blocks . But I was always using amonetize for mac traffic for higher rate ( $2.5 per US install for mac ).. But since this may they stopped to provide direct link and was told to use the .php script .. The script was very difficult for me to integrate without any help.. I asked for help with my AM for integration but he too failed to help ( Reply from AM : I don't have technical knowledge). So I'm asking for help with u guys ..

    I'm using wordpress hosted website ... Can you guys pls tell me where to put this script



    This is what is provided in docs : link to docs : https://docs.google.com/document/d/...Kio3mnB0QrCcky8S8/edit#heading=h.24l67fm1jgyz


    Obfuscated Direct Download Link - Mac Edition
    This download link supports traffic from Mac, Windows, and Mobile.


    API URL
    On your web page, you should call our API to get a download link.
    http://www.getmacdomain.download?id={PUBLISHER_CAMPAIGN_ID}
    Parameters

    The table below explains the parameters you can specify for the Download Manager service.

    Mandatory

    Parameter

    URL Parameter example

    Yes

    Publisher Campaign ID

    id=2222

    No

    fn

    The name of the downloaded file.

    fn=setup

    The downloaded file will be named “setup.dmg”


    PHP Example

    <?php

    $publisher_campaign_id = '12';

    $getlinkurl = 'http://www.getmacdomain.download?id='.$publisher_campaign_id;

    $curl = curl_init('');

    $url = $getlinkurl.$param;

    curl_setopt($curl , CURLOPT_URL , $url);

    curl_setopt($curl , CURLOPT_RETURNTRANSFER , 1);

    curl_setopt($curl , CURLOPT_CONNECTTIMEOUT , 60);

    curl_setopt($curl , CURLOPT_TIMEOUT , 60);

    curl_setopt($crl, CURLOPT_CUSTOMREQUEST, "GET");

    $curlresult = curl_exec($curl);

    $err = curl_errno( $curl );

    curl_close($curl);

    ?>

    <html>

    <head>

    </head>

    <body>

    <a href="<?php echo $curlresult ?>">Download</a>

    </body>

    </html>
     
    • Thanks Thanks x 1
  2. alistairX

    alistairX Newbie

    Joined:
    Jun 12, 2017
    Messages:
    11
    Likes Received:
    0
    I am also having same problem. Have you solved it?
     
  3. Markosh

    Markosh Junior Member

    Joined:
    Feb 2, 2015
    Messages:
    194
    Likes Received:
    31
    Nope
     
    • Thanks Thanks x 1
  4. alistairX

    alistairX Newbie

    Joined:
    Jun 12, 2017
    Messages:
    11
    Likes Received:
    0
    Search it on google. It's name is amonetize download manger integration guide. I hope you can solve it.