Offer Catalog API
The Offer Catalog API enables publishers to access Offers allocated to their accounts programmatically. It provides a convenient way to retrieve a JSON feed of all the Offers currently provisioned to their account that are only active and running, including their creatives, tracking links, and other metadata.
This allows publishers to stay up-to-date with their available Offers and perform real-time status checks before displaying Offers to their users.
- Contact your account manager to enable access to the Offer Catalog API.
- ο»ΏObtain your API Key:ο»Ώ Before making API calls, ensure you have your API Key on hand. This unique identifier is necessary for authenticating your requests.
- Make an Offer Catalog API call: Utilize the Offer Catalog endpoint to retrieve Offers. This call will return a JSON response containing details about all available Offers or a single Offer.
- Parse the response and display Offers: Once you receive the API response, parse it to extract relevant information such as Offer titles, descriptions, images, and tracking links. Then, format and display these Offers to suit your requirements.
Method: GET Base URL: https://api.adspostx.com/native/v3/catalog.json
Parameter | Description | Type | Example |
---|---|---|---|
Content-Type requiredο»Ώ | Should be application/json | string | application/json |
Parameter | Description | Type | Example |
---|---|---|---|
api_key requiredο»Ώ | Your API Key. Obtain your API Key.ο»Ώ Required Permission: Ads/Offers | string | 4bbdefc2-b130-424d-8170-54bdcb98e64e |
offer_id optional | If provided, the response will only return data related to that specific Offer. | string | 1651 |
countries optional | Specify ISO 3166-1 alpha-2 country code(s) to fetch Offers related to specific countries. Use a 2-character country code (e.g., US)
| string | US or US,IN,EG |
os optional | Specify the targeted operating systems for Offers, Supported values include windows, macos, android, and ios.
| string | ios or ios,android |
platforms optional | Specify the targeted platforms for Offers, Supported values include desktop, phone, and tablet.
| string | desktop or tablet,phone |
browsers optional | Specify the targeted web browsers for Offers, Supported values include edge, chrome, firefox, safari, and opera.
| string | chrome or chrome,firefox |
ο»Ώ
After a successful request to the Offer Catalog API, the response body will include an offers object. This object contains an array of individual offer objects, each representing a unique Offer associated with your API key.
Additionally, when a specific offer_id is provided, the response will only include details of that Offer.
Upon making an API call, the following attributes are returned in the response.
offers array of offer objects Each object represents the details of an Offer, including its associated creatives. Each offer object has the following attributes:
When retrieving Offers, we provide aΒ creativesΒ attribute with each returned Offer, which lists creatives available for use in your Offers.
Included with each creative is an is_primary boolean attribute. You can use any of the creatives available depending on the platform you are rendering or default to theΒ primary creative if you are unsure.
The Catalog API also supports on-the-fly image transformations: by simply adding the query parameter "width=XXX" into the image url (replace XXX with a suitable integer value for width, depending on the device resolution). The query parameters "height=XXX" or "?aspect_ratio=X:Y" are also available as on-the-fly image processing directives on images.
We also provide an aspect_ratio attribute for each creative which can be helpful in selecting an image for the Offer.
An aspect_ratio with:
- a value of 1 = square image
- a value < 1 signifies generally portrait
- a value > 1 signifies generally landscape
- The returned click_url value(s) in the Offer Catalog response can be updated to include payload values, similar to Direct Offer links. This allows for additional information to be passed along with the URL. ( Learn moreο»Ώ about using payload values in click_urls.)
- When utilizing the Offer Catalog API to return LoyaltyBoost Offers that reward users for engagement, implementing payloads becomes crucial. By including user identifiers in the payload, you ensure that rewards are issued to the correct user upon completion of actions.
- Implementing payloads in click_urlsensures that necessary user information is transmitted and returned accurately. This enhances the functionality of LoyaltyBoost offers and helps correctly attribute rewards to users based on their engagement.
π’ If you're running into any issues while going through the integration process, feel free to contact us at [email protected]