ad-images
Ad Images

List Ad Images Batch

List images for multiple ads in a single request.

This batch endpoint eliminates N+1 queries when displaying images for multiple ads. Returns images for all requested ads that the user has permission to access.

Query Parameters:

  • ids: Comma-separated ad IDs (e.g., "1038,1039,1040,1041,1042")

Response:

  • ads: Map of ad_id to images list (same format as single ad endpoint)
  • total_ads: Number of ads successfully returned
  • requested_ids: Original IDs that were requested
  • missing_ids: IDs not found or user lacks permission
get/api/v1/ad-images/ads/batch

Request

  • Base URL: https://api.trylapis.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.trylapis.com/api/v1/ad-images/ads/batch
  • Auth: HTTP bearer

Query parameters

idsstring required

Comma-separated list of ad IDs

client_user_idinteger nullable

Client user ID to view data for

Headers

x-lapis-dev-tokenstring nullable
x-assume-user-idinteger nullable

Response

Successful Response

adsobject required

Map of ad_id to images list response

total_adsinteger required

Total number of ads returned

requested_idsinteger[] required

IDs that were requested

missing_idsinteger[]

IDs that were not found or user lacks permission

Changes

No recorded changes to this operation across all 1 revision of this API.