Affiliate programs

List of affiliate programs

Parameters

HTTP method Access rights URL Parameters Note
GET advcampaigns <span>https://api.admitad.com/advcampaigns/</span>
  • offset**
  • limit**
  • language***
  • website****
  • has_tool*****
  • traffic_id******
Returns the list of affiliate programs*.
GET advcampaigns <span>https://api.admitad.com/advcampaigns/{id}/</span>
  • language***
Returns the affiliate program, where id is the affiliate program identifier*.
  • * Returns the result in the JSON format.
  • ** Sets skipping and the number of records returned. For example limit=5&offset=2.
  • *** Internationalization of categories (ru by default). E.g. :doc:`language=ru </params/language>.
  • **** Ad space identifier. For example, website=12342, allows to determine the need for moderation when a program is connected.
  • ***** Filter by the availability of a tool for a program. Possible values:
    • deeplink
    • products
    • retag
    • lost_orders
    • coupons
    • basket_tracking
    • tracking_in_mobile_site
    • tracking_in_mobile_app
    • vendor_bonus
  • ****** Filter by allowed traffic sources of the program. For example traffic_id=1. To get the IDs of traffic sources, use this method.

Using this method you can export the list of the programs from the catalog and their standard rates. If you want to see exclusive rates of the programs for your ad space, use :doc:`this method <./advcampaigns-website-list>.

Example of use

Example of a request with utility ``curl``:

curl -L -H 'Authorization: Bearer access_token' -X GET<br>
https://api.admitad.com/advcampaigns/?limit=1&website=1234124<br>
<br>
curl -L -H 'Authorization: Bearer access_token' -X GET<br>
https://api.admitad.com/advcampaigns/3/?language=ru

Example of the response from the API server in the JSON format:

{<br>
    "results": [<br>
        {<br>
            "status": "active",<br>
            "rating": "5.00",<br>
        "image": "//cdn.admitad.com/media/campaign/images/2012/06/13/4b9182dae3a6758eb12f76a76a5b3f26.jpg",<br>
            "description": "Gmail is a mail service by google",<br>
            "traffics": [<br>
                {<br>
                    "enabled": false,<br>
                    "name": "Type 1",<br>
                    "type": "lead",<br>
                    "id": 1<br>
                },<br>
                {<br>
                    "enabled": false,<br>
                    "name": "Type 2",<br>
                    "type": "sale",<br>
                    "id": 2<br>
                }<br>
            ],<br>
            "actions": [<br>
                {<br>
                    "payment_size": "50.00",<br>
                    "type": "sale",<br>
                    "name": "Action name",<br>
                    "id": 1<br>
                },<br>
                {<br>
                    "payment_size": "1.30%",<br>
                    "type": "sale",<br>
                    "name": "Paid order",<br>
                    "id": 892<br>
                },<br>
                {<br>
                    "payment_size": "11.00",<br>
                    "type": "lead",<br>
                    "name": "Registration",<br>
                    "id": 11<br>
                }<br>
            ],<br>
            "site_url": "http://www.gmail.com/",<br>
            "regions": [<br>
                {<br>
                    "region": "BY"<br>
                },<br>
                {<br>
                    "region": "CA"<br>
                },<br>
                {<br>
                    "region": "DE"<br>
                },<br>
                {<br>
                    "region": "KZ"<br>
                },<br>
                {<br>
                    "region": "RU"<br>
                },<br>
                {<br>
                    "region": "US"<br>
                }<br>
            ],<br>
            "currency": "USD",<br>
            "geotargeting": true,<br>
            "coupon_iframe_denied": false,<br>
            "connected": true,<br>
            "id": 6,<br>
            "cr": 9.83,<br>
            "ecpc": 45.32,<br>
            "epc": 4532.45,<br>
            "cr_trend": 3.3323,<br>
            "ecpc_trend": 2.3441,<br>
            "epc_trend": 241.8345,<br>
            "categories": [<br>
                {<br>
                    "language": "en",<br>
                    "name": "Shop",<br>
                    "parent": null,<br>
                    "id": 1<br>
                },<br>
                {<br>
                    "language": "en",<br>
                    "name": "Online Games",<br>
                    "parent": null,<br>
                    "id": 2<br>
                },<br>
                {<br>
                    "language": "en",<br>
                    "name": "Browser",<br>
                    "parent": {<br>
                        "language": "en",<br>
                        "name": "Online Games",<br>
                        "parent": null,<br>
                        "id": 2<br>
                    },<br>
                    "id": 3<br>
                },<br>
                {<br>
                    "language": "en",<br>
                    "name": "Other",<br>
                    "parent": null,<br>
                    "id": 5<br>
                },<br>
                {<br>
                    "language": "en",<br>
                    "name": "Finances",<br>
                    "parent": {<br>
                        "language": "en",<br>
                        "name": "Other",<br>
                        "parent": null,<br>
                        "id": 5<br>
                    },<br>
                    "id": 6<br>
                },<br>
                {<br>
                    "language": "en",<br>
                    "name": "Subcategory",<br>
                    "parent": {<br>
                        "language": "en",<br>
                        "name": "Other",<br>
                        "parent": null,<br>
                        "id": 5<br>
                    },<br>
                    "id": 17<br>
                }<br>
            ],<br>
            "name": "Campaign1"<br>
            "action_type": "sale",<br>
            "individual_terms": false,<br>
            "allow_deeplink": true,<br>
            "action_testing_limit": 500,<br>
            "mobile_device_type": "smartphone",<br>
            "mobile_os_type": "android",<br>
            "mobile_os": "android 9.0",<br>
            "action_countries": ["BY", "GE", "RU"],<br>
            "allow_actions_all_countries": false,<br>
        }<br>
    ],<br>
    "_meta": {<br>
        "count": 4,<br>
        "limit": 1,<br>
        "offset": 0<br>
    }<br>
}

Description of API server response fields

Name Description
id Affiliate program ID
name Name of affiliate program
image Affiliate program logo
status Affiliate program status
rating Affiliate program rating
description Affiliate program description
raw_description Affiliate program description containing HTML tags
site_url Affiliate program website
exclusive Exclusive affiliate program
currency System currencies
regions Ad space regions
categories Categories of affiliate programs
actions The list of rates for prepaid actions
cr Indicator of the average conversion rate
cr_trend Changes in the indicator of the average conversion rate
ecpc Average eCPC indicator
ecpc_trend Changes in the indicator of the average eCPC
epc EPC indicator
epc_trend change of the EPC indicator
rate_of_approve Approval rate
more_rules Additional rules
geotargeting Splitting payment depending on client’s country
coupon_iframe_denied Prohibition of coupon traffic via iframe
activation_date Date of program start
modified_date Date of last change to the program
connected The program has joined one or more publisher’s ad spaces
avg_hold_time Actual average hold time
avg_money_transfer_time Average payment time
denynewwms The recruitment of new publishers has been suspended
goto_cookie_lifetime Postclick cookie life time
retag ReTag
show_products_links

Product feeds links are allowed (true, false)

traffics Traffic sources
landing_code Related landing page code
landing_title Related landing page header
action_type Type of action (lead/sale)
individual_terms Individual terms
allow_deeplink Ability to use "Deeplink"
allow_actions_all_counties This program is available in all countries (true/false)
action_countries Countries from which actions are paid for (["GE", "RU", ...]/null)
action_testing_limit

After the specified number of actions is generated, the publisher must halt traffic to receive feedback from the advertiser.

For mobile programs and online games only (int/null)

mobile_os_type

Operating system supported by the app.

For mobile programs only ("android"/"ios"/null)

mobile_os

The application installation is supported starting from the current version.

For mobile programs only ("android 6.0"/"android all"/"ios 11.0"/"ios all"/null)

mobile_device_type

Device supported by the app.

For mobile programs only ("smartphone"/"tablet"/"all"/null)

List of programs for the ad space

Parameters

HTTP method Access rights URL Parameters Note
GET advcampaigns_for_website <span>https://api.admitad.com/advcampaigns/website/{w_id}/</span>
  • offset**
  • limit**
  • connection_status***
  • has_tool****
Returns the list of affiliate programs of the ad space, where w_id is the ad space ID*.
GET advcampaigns_for_website <span>https://api.admitad.com/advcampaigns/{c_id}/website/{w_id}/</span> Returns the affiliate program, where w_id is the ad space identifier and с_id is the affiliate program identifier*.
  • * Returns the result in the JSON format.
  • ** Sets skipping and the number of records returned. For example limit=5&offset=2.
  • *** Filter by the cooperation status with an ad space. Possible values:
    • active
    • pending
    • declined
  • ***** Filter by tool availability for the program. Possible values:
    • deeplink
    • products
    • retag
    • lost_orders
    • coupons
    • basket_tracking
    • tracking_in_mobile_site
    • tracking_in_mobile_app
    • vendor_bonus

Example of use

Example of a request with utility ``curl``:

curl -L -H 'Authorization: Bearer access_token' -X GET<br>
https://api.admitad.com/advcampaigns/website/22/?limit=1<br>
<br>
curl -L -H 'Authorization: Bearer access_token' -X GET<br>
https://api.admitad.com/advcampaigns/6/website/22/

Example of the response from the API server in the JSON format:

{<br>
    "results": [<br>
        {<br>
            "status": "active",<br>
            "connection_status": "active",<br>
            "rating": "5.00",<br>
            "image": "//cdn.admitad.com/media/campaign/images/2012/06/13/4b9182dae3a6758eb12f76a76a5b3f26.jpg",<br>
            "show_products_links": false,<br>
            "traffics": [<br>
                {<br>
                    "enabled": false,<br>
                    "name": "Type 1",<br>
                    "id": 1<br>
                },<br>
                {<br>
                    "enabled": false,<br>
                    "name": "Type 2",<br>
                    "id": 2<br>
                }<br>
            ],<br>
            "description": "Gmail is a mail service by google",<br>
            "avg_hold_time": null,<br>
            "actions": [<br>
            {<br>
                "payment_size": "5USD",<br>
                "type": "lead",<br>
                "name": "Example action",<br>
                "id": 42<br>
            }<br>
        ],<br>
            "site_url": "http://www.gmail.com/",<br>
            "regions": [<br>
                {<br>
                    "region": "01"<br>
                },<br>
                {<br>
                    "region": "BY"<br>
                },<br>
                {<br>
                    "region": "CA"<br>
                },<br>
                {<br>
                    "region": "DE"<br>
                },<br>
                {<br>
                    "region": "KZ"<br>
                },<br>
                {<br>
                    "region": "RU"<br>
                },<br>
                {<br>
                    "region": "US"<br>
                }<br>
            ],<br>
            "actions_detail": [<br>
                {<br>
                    "tariffs": [<br>
                        {<br>
                            "action_id": 42,<br>
                            "rates": [<br>
                                {<br>
                                    "price_s": "0.00",<br>
                                    "tariff_id": 42,<br>
                                    "country": null,<br>
                                    "date_s": "2014-11-06",<br>
                                    "is_percentage": false,<br>
                                    "id": 78,<br>
                                    "size": "5.00"<br>
                                }<br>
                            ],<br>
                            "id": 42,<br>
                            "name": "Tariff name"<br>
                        }<br>
                    ],<br>
                    "type": "lead",<br>
                    "name": "Example action",<br>
                    "id": 42<br>
                }<br>
            ],<br>
            "currency": "USD",<br>
            "goto_cookie_lifetime": 45,<br>
            "geotargeting": true,<br>
            "coupon_iframe_denied": false,<br>
            "allow_deeplink": true,<br>
            "cr": 84.38,<br>
            "cr_trend": 3.41,<br>
        "activation_date": "2010-03-31 19:05:39",<br>
        "modified_date": "2010-04-12 18:05:32"<br>
        "moderation": false,<br>
        "gotolink": "http://ad.admitad.com/goto/some_link/",<br>
            "ecpc": 23.74,<br>
            "epc": 2374.34,<br>
            "ecpc_trend": 2.41,<br>
            "epc_trend": 241.45,<br>
            "id": 6,<br>
            "show_products_links": true,<br>
            "products_csv_link": "http://export.admitad.com/ru/webmaster/websites/xxx/products/export_adv_products/?user=webmaster&code=db403bd6d2&advcampaign_id=xxx&format=csv",<br>
            "products_xml_link": "http://export.admitad.com/ru/webmaster/websites/xxx/products/export_adv_products/?user=webmaster&code=db403bd6d2&advcampaign_id=xxx&format=xml",<br>
            "feeds_info": [<br>
                                {<br>
                                        "name": "Campaign1",<br>
                                        "admitad_last_update": "2015-10-27 15:35:58",<br>
                                        "advertiser_last_update": "2015-10-27 08:38:00",<br>
                                        "csv_link": "http://export.admitad.com/ru/webmaster/websites/22/products/export_adv_products/?user=webmaster1&code=db403bd6d2&feed_id=xxx&format=csv",<br>
                                        "xml_link": "http://export.admitad.com/ru/webmaster/websites/22/products/export_adv_products/?user=webmaster1&code=db403bd6d2&feed_id=xxx&format=xml"<br>
                                }<br>
                        ],<br>
            "categories": [<br>
                {<br>
                    "language": "en",<br>
                    "name": "Shop",<br>
                    "parent": null,<br>
                    "id": 1<br>
                },<br>
                {<br>
                    "language": "en",<br>
                    "name": "Online Games",<br>
                    "parent": null,<br>
                    "id": 2<br>
                },<br>
                {<br>
                    "language": "en",<br>
                    "name": "Browser",<br>
                    "parent": {<br>
                        "language": "en",<br>
                        "name": "Online Games",<br>
                        "parent": null,<br>
                        "id": 2<br>
                    },<br>
                    "id": 3<br>
                },<br>
                {<br>
                    "language": "en",<br>
                    "name": "Other",<br>
                    "parent": null,<br>
                    "id": 5<br>
                },<br>
                {<br>
                    "language": "en",<br>
                    "name": "Finance",<br>
                    "parent": {<br>
                        "language": "en",<br>
                        "name": "Other",<br>
                        "parent": null,<br>
                        "id": 5<br>
                    },<br>
                    "id": 6<br>
                },<br>
                {<br>
                    "language": "en",<br>
                    "name": "Subcategory",<br>
                    "parent": {<br>
                        "language": "en",<br>
                        "name": "Other",<br>
                        "parent": null,<br>
                        "id": 5<br>
                    },<br>
                    "id": 17<br>
                }<br>
            ],<br>
            "name": "Campaign1",<br>
            "advertiser_legal_info": "{"Example" LLC}, INN: {1112223334}",<br>
            "action_testing_limit": 500,<br>
            "mobile_device_type": "smartphone",<br>
            "mobile_os_type": "android",<br>
            "mobile_os": "android 9.0",<br>
            "action_countries": ["BY", "GE", "RU"],<br>
            "allow_actions_all_countries": false,<br>
            "actions_limit": 10000,<br>
            "actions_limit_24": 1000<br>
        }<br>
    ],<br>
    "_meta": {<br>
        "count": 4,<br>
        "limit": 1,<br>
        "offset": 0<br>
    }<br>
}

Description of API server response fields

Name Description
id Affiliate program ID
name Name of affiliate program
image Affiliate program logo
status Affiliate program status
connection_status Status of cooperation with the ad space ('active', 'pending', 'declined')
rating Affiliate program rating
description Affiliate program description
raw_description Affiliate program description containing html tags
site_url Affiliate program website
currency System currencies
regions Ad space regions
categories Categories of affiliate programs
actions The list of rates for prepaid actions
actions_detail Detailed information about current paid actions (actions - rates - rewards)
сr Indicator of the average conversion rate
cr_trend Changes in the indicator of the average conversion rate
ecpc Average eCPC indicator
ecpc_trend Changes in the indicator of the average eCPC
epc EPC indicator
epc_trend Change of the EPC indicator
geotargeting Splitting payment depending on client's country
coupon_iframe_denied Prohibition of coupon traffic via iframe
activation_date Date of program start
modified_date Date of last change to the program
avg_hold_time Actual average hold time
avg_money_transfer_time Average payment time
gotolink A default affiliate link for a selected ad space
goto_cookie_lifetime Postclick cookie life time
traffics Allowed traffic types
moderation Need for moderation
show_products_links Product feeds links are allowed (true, false)
products_xml_link Link to downloading product feeds in xml format (if show_products_links = true)
products_csv_link Link to downloading product feeds in csv format (if show_products_links = true)
feeds_info The list of product feeds of the affiliate program
allow_deeplink Ability to use "Deeplink"
action_countries Countries from which actions are paid for (["GE", "RU", ...]/null)
allow_actions_all_counties This program is available in all countries (true/false)
action_testing_limit

After the specified number of actions is generated, the publisher must halt traffic to receive feedback from the advertiser.

For mobile programs and online games only (int/null)

mobile_os_type

Operating system supported by the app.

For mobile programs only ("android"/"ios"/null)

mobile_os

The application installation is supported starting from the current version.

For mobile programs only ("android 6.0"/"android all"/"ios 11.0"/"ios all"/null)

mobile_device_type

Device supported by the app.

For mobile programs only ("smartphone"/"tablet"/"all"/null)

actions_limit

After registering the specified number of actions within the program activity time, the affiliate link becomes inactive.

For mobile programs and online games only (int/null)

actions_limit_24

After registering the specified number of actions within 24 hours (UTC+3), the affiliate link becomes inactive.

For mobile programs and online games only (int/null)

advertiser_legal_info

Initial advertiser’s name of the legal entity and its INN (individual taxation number)

{advertiser_legal_name}, INN: {advertiser_INN}


The field in the response may be empty if the advertisers doesn’t support advertisement marking at the moment.

Description of paid actions fields

Name Description
id Action ID
name Name of action
type Type of action (lead/sale)
rates List of rates for a paid action

Description of fields for paid action rates

Name Description
id Rate ID
name Name of rate
action_id Action ID
rates List of rates for a paid action

Description of fields for rate rewards

Name Description
id Rate reward ID
size Rate reward value (percentage or amount in the currency of the program)
tariff_id Rate ID
country The country the rate is valid for, null - all countries
price_s The bottom limit of payment that the rate is valid for
date_s The date the rate is valid from
is_percentage Rate type ('True' if interest rate)

Description of the affiliate program product feed fields

Name Description
name Name of feed
xml_link Link to downloading product feeds in xml format
csv_link Link to downloading product feeds in csv format
admitad_last_update Date of last update
advertiser_last_update Date of last update by the advertiser

Connecting the ad space to the program

Parameters

HTTP method Access rights URL Note
POST manage_advcampaigns <span>https://api.admitad.com/advcampaigns/{c_id}/attach/{w_id}/</span>
  • Returns the result of operation, where w_id is the ad space identifier and с_id is the affiliate program identifier.
  • By joining an affiliate program using this method, you automatically confirm you have read its rules and are ready to comply with them.
  • * Returns the result in the JSON format.

Example of use

Example of a request with utility ``curl``:

curl -L -H 'Authorization: Bearer access_token' -X POST<br>
https://api.admitad.com/advcampaigns/2/attach/3/

Example of the response from the API server in the JSON format:

{<br>
    "message": "Request for adding the campaign CampaignName was successfully created.",<br>
    "success": "OK"<br>
}

Disconnecting the ad space from the program

Parameters

HTTP method Access rights URL Note
POST manage_advcampaigns <span>https://api.admitad.com/advcampaigns/{c_id}/detach/{w_id}/</span> Returns the result of operation in the JSON format, where w_id is the ad space identifier and с_id is the affiliate program identifier.
  • * Returns the result in the JSON format.

Example of use

Example of a request with utility ``curl``:

curl -L -H 'Authorization: Bearer access_token' -X POST<br>
https://api.admitad.com/advcampaigns/2/detach/3/

Example of the response from the API server in the JSON format:

{<br>
    "message": "Program CampaignName has been removed from your list. You can later add it again.",<br>
    "success": "Deleted"<br>
}