SDK - Affiliate Offer Table
The Affiliate Offer Table SDK is a simple utility that displays affiliate offers in a table form based on API data. Simply enter your affiliate API information, and this SDK will automatically display the offers in an organized table structure. It is a quick and simple approach to show offer information without extensive setup.
Setup
Instructions to Enable the Offer18 Affiliate Offer Table SDK
1. Create a New HTML File
2. Add the SDK Configuration and Script
Inside the <body>
tag, add the following script to configure and load the Offer18 SDK. Replace the placeholder values with your actual affiliate details:
3. Add Your Affiliate API Details
In the OFFER18_API_CONFIG
object
aid: Enter your unique Affiliate ID.
mid: Enter your Account ID (MID).
key: Enter your API Key.
These fields are mandatory for Affiliate Offer Table SDK
Additional Configuration Options
You can enhance the OFFER18_API_CONFIG
object by adding optional parameters to customize the display and filtering of offers in the Affiliate Offer Table. Below is a list of additional configuration options available.
Parameter | Type | Description |
fields | Array | Specifies the fields to display in the table, in the order provided. Available Fields: |
offer_id | String | Comma-separated string of specific offer IDs to display. Shows only these offers. |
page | String | Specifies the page number for pagination. |
category | String | Filters offers by a specific category (e.g., "Finance," "E-commerce"). |
model | String | Specifies the model of the offer, such as CPA (Cost Per Action) or CPL (Cost Per Lead). |
country | String | Comma-separated list of country codes to filter offers by location. |
offer_status | String | Set to |
authorized | String | Set to |
Example File
Here's an example of a fully configured OFFER18_API_CONFIG
object with both required and optional parameters:
Last updated