Skip to main content

Static API → Offer API

The Static API (GET https://api.adgem.com/v1/all/campaigns) is AdGem's legacy offer feed. The Offer API replaces it with OAuth 2.0 authentication, a consistent offers array, optional pagination, and richer offer data (goals, multi-reward, targeting). Both accept the same filters, so migrating is mostly a matter of swapping the endpoint, the auth, and how you parse the response.

Side by side

Static APIOffer API
EndpointGET https://api.adgem.com/v1/all/campaignsGET https://offer-api.adgem.com/v1/offers
Authappid + token query parametersAuthorization: Bearer <access_token> (OAuth 2.0)
Offers shapeobject keyed by campaign IDarray under data.offers
Paginationnone (full list)optional (per_page, with page)
Filterscountry_codes, categories, reward_type, platform, tracking_typesthe same, as query parameters
Envelope{ status, data, links }{ status, data: { offers, pagination }, links }

Migrate

  1. Switch auth. Replace the appid/token query parameters with a bearer access token — get a refresh token from the dashboard and exchange it per Offer API › Authentication.
  2. Switch the endpoint to https://offer-api.adgem.com/v1/offers. Your existing filters (country_codes, categories, reward_type, platform, tracking_types) carry over and work the same way — see the GET /v1/offers reference.
  3. Update response parsing. Iterate data.offers (an array) instead of the campaign-ID-keyed object. The Offer API also returns additional data (goals, multi-reward, targeting).
  4. Adopt pagination if you want paged responses — add per_page, then page as needed (sending page without per_page returns a 422). See Pagination.
  5. Poll on a schedule (about every 5 minutes) and cache results, rather than calling in real time. See the Overview.