Client API

The following api is for client side only, meaning you can directly integrate our offers on your client side using javascript or similar code/framework

Get Offers

Get Offers

GET https://api.adbreakmedia.com/api/offers

Get All active Offers directly for clientside

Query Parameters

Name
Type
Description

identifier*

String

Your Placement Identifier

userId*

The id of the user

sub1

Extra value (it will be returned back to you)

sub2

Second Extra value (it will be returned back to you)

{
  "error": false,
  "message": "Offers fetched successfully",
  "device": "desktop",
  "userId": "1234",
  "user": "c49af49767d9a0eb5c26e2c0d6aea5a58b20a87d",
  "userStatus": "active",
  "userVerification": "none",
  "placementId": 1,
  "placementStatus": "active",
  "currency": "Coins",
  "eventStatus": "inactive",
  "eventMultiplier": 1,
  "eventMessage": "",
  "offers": [
    {
      "id": 5026,
      "name": "Lords Mobile",
      "description": {
        "en": "The true Emperor has fallen. We need a real hero, a true Lord who can unite the Kingdoms. Recruit heroes from various backgrounds, from dwarves and mermaids to dark elves and steampunk robots, and assemble your army in this magical world! Fight and conquer to establish your empire in one of the strategy games!"
      },
      "payout": 9080,
      "events": [
        {
          "id": "646fe4c6753722fa9f6c621b",
          "action": {
            "en": "install , open & defeat level 2 Monster"
          },
          "payout": 9080
        }
      ],
      "epc": 0.2
      "verification": "none",
      "multipleTimes": false,
      "isFeatured": false,
      "icon": "https://play-lh.googleusercontent.com/oFz-KTIgL6yAuuA5XeHapTQLDcoBVgA9JXCTiID70rPcJBGAT9DdiqNDjNLxcYaG6W3W=s120-rw",
      "category": ["app"],
      "url": "https://api.adbreakmedia.com/api/offers/click?offerId=5026&userId=1234&placementId=1",
      "device": ["android"],
      "popularity": "80"
    }
  ]
}

Get userHistory

Get User History

GET https://api.adbreakmedia.com/api/users/userHistory

Get All user history directly for client side

Query Parameters

Name
Type
Description

placement_identifier*

String

Your Placement Identifier

userId*

String

The id of the user

Note: payoutEarned param is only available on multievent offers

circle-info

Good to know: If you have any queries or feel difficulty in integrating our offers, reach out to our publisher support at [email protected] and they will help you solve your issue.

Last updated