Ad Serving
Serving an ad
Serves an ad based on the placement tag (tagid
) and request payload (AdRequest
).
Selects the most appropriate ad using campaign, creative, and bidding strategy data.
Returns the final ad determined through DSP response and internal mediation logic.
curl --request POST \
--url https://your_a2_service/app/v0/ad/{tagid} \
--header 'Content-Type: application/json' \
--data '{
"user": {
"gender": "M",
"id": "account-187acvbvz",
"yob": 1988
},
"version": "0.1.0"
}'
POST
Path Parameters
The ID of the placement.
Get from the advertising manager.
Body
application/json
AdRequest is used for requesting an ad.
Version of the SDK API.
Device object for the current ad request.
User object for the current ad request.
Was this page helpful?
Previous
/app/v0/logRecords ad interaction events for advertising optimization and analytics.
Supported event types:
- Impressions (imp): Records ad view events
- Clicks (clk): Records ad click events
- Conversions (conv): Records post-view conversion events including purchases, installations, and subscriptions
Note: Returns 200 OK for all requests. Invalid schemas are silently ignored.
Next