[EN] Linkrall Offline API for Publisher v3.7

Linkrall is a lower-cost Traffic Tracking Platform with multi-dimensional reports, optimization solutions and easy- using panels. For more information, please visit:http://www.linkrall.com

0. Update History

[2020/08/20] v3.6: For iOS14 new policy,added three click URL parameters:ip, lang, ua

[2021/01/11] v3.7: Added two response parameters: click_cap, cap_timezone

1. Introduction

Linkrall offline API is designed for the publishers to retrieve offers from the server. This document describes how publishers request Linkrall ads via the API call.

Notice

  • The API is accessible by HTTP GET request and returns data in JSON format.

  • This is an OFFLINE API which should NOT be called from end-user devices.

  • The API is recommended to be requested every 10-15 minutes.

  • The IDFA/GAID MUST be appended to the click URL if the parameter 'deviceid_required'=1

2. API Request Method

Request URL: http://[Advertiser Domain]/v3/api_v3?key=[API key]

Request Method: GET

Request Parameters

Parameters

Description

Required

key

The API key given by your Account Manager

Yes

limit

The page size, default 3000

No

page

The page number

No

os

Device OS, value ios/android

No

Response parameters

Parameter

Description

message

The message of API request

data

Array of Offers

id

Offer id

name

Offer title

payout

Offer payout

currency

Payment currency

Value: USD

countires

List of countries, multiple countries are separated by comma

Value: US,IN,JP

click_url

Offer click URL

preview_link

Offer preview URL(GP/Appstore)

package

Offer package name

description

Offer description, including KPI

device

Device type

Value: all/mobile/tablet

os

Device OS

Value: ios/android

min_osv

The minimum OS version

0 stands for no limited

incentive

0: non-incentive offer

1: incentive offer

deviceid_required

Whether IDFA/GAID is required.

0: No requirement

1: IDFA/GAID is a must.

icon

Icon URL

cap

Offer daily conversion cap, 99999 means unlimited.

click_cap

Offer daily click cap, -1 means unlimited.

cap_timezone

Cap Timezone

eg. 8 means GMT+8

creatives

Array of creative

creatives.type

Type of creative

Value: image/zip

creatives.size

File size(KB) of creative

creatives.width

Width of an image

creatives.height

Height of an image

creatives.url

URL of creative

video

Array of video

video.size

File size(KB) of video

video.url

URL of video

status

Offer status, paused offers will be removed from API feed.

Value: active

convert_type

Value: CPI/CPE/CPS

page

Page number

totalData

The total number of offers

limit

Page size

Response Example

3. Click URL Parameters

Parameter

Description

aff_sub1

Your click id

aff_sub2

User-defined parameter

aff_sub3

User-defined parameter

aff_sub4

User-defined parameter

aff_sub5

User-defined parameter

source_id

Your source id

google_aid

Google Advertising ID

ios_idfa

IOS Identifier for Advertising

app_name

Your app name

pkg_name

Your package name

ip

Device IP, only for iOS Version>14.0

Value: 192.168.0.0

lang

Device Language, only for iOS Version>14.0

Value: en-US

ua

User Agent, need to be URL encoded, only for iOS Version>14.0

Value: Mozilla%2F5.0%20(iPhone%3B%20CPU%20iPhone%20OS%2

11_0%20like%20Mac%20OS%20X)%20AppleWebKit%2F604.1.38%20

(KHTML%2C%20like%20Gecko)%20Version%2F11.0%20Mobile%2F1

5A372%20Safari%2F604.1

Click URL Example

http://[Advertiser Domain]/clk.php?offer_id=12345&aff_id=123&aff_sub1=[CLICK ID]&source_id=[SOURCE ID]&google_aid=[GAID]&ios_idfa=[IDFA]&app_name=[APP NAME]&ip=[CLIENT IP]&lang=[CLIENT LANGUAGE]&ua=[CLIENT UA]

4. Postback Parameters

Macro

Description

{aff_sub1}

Click ID

{aff_sub2}

User-defined Parameter

{aff_sub3}

User-defined Parameter

{aff_sub4}

User-defined Parameter

{aff_sub5}

User-defined Parameter

{source_id}

Source ID

{google_aid}

Google Advertising ID

{ios_idfa}

IOS Identifier for Advertising

{app_name}

App Name

{pkg_name}

Package Name

{payout}

Conversion Price

{offer_id}

Offer ID

{country_code}

Country Code (eg. US)

{click_ip}

Client Click IP

{click_time}

Client Click Time

{conv_ip}

Conversion IP

{conv_time}

Conversion Time

Last updated

Was this helpful?