Data Management APIs
- Allocation
- Activity Log
- Audience
- Audience Attribute
- Audience Segment
- Auth and User
- Campaign
- Catalog
- Creative
- Analytic
- Billing
- System
- License
- Media Library
- Placement Catalog
- Placement
Decision APIs
- Cache Management
- Configuration
- Ad Serving
- Ad Log
- Activity Log
Activity Log
Record Activity Log
Records user activity logs for advertising optimization and analytics.
Supported activity types:
activity.item_view
: Records product detail page viewsactivity.add_cart
: Records cart addition eventsactivity.page_view
: Records page navigation eventsactivity.search
: Records search query eventsactivity.purchase
: Records completed purchases
Note: Returns 200 OK for all requests. Invalid schemas are silently ignored.
POST
/
app
/
v0
/
log
/
activity
curl --request POST \
--url https://your_a2_service/app/v0/log/activity \
--header 'Content-Type: application/json' \
--data '{
"catalogs": [
{
"id": "",
"metadata": {
"brand": "<string>",
"category": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"image_link": "<string>",
"link": "<string>",
"seller_name": "<string>",
"title": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
},
"schema": "creative.catalog",
"source": "<string>"
}
],
"channel": "<string>",
"device": {
"carrier": "<string>",
"contype": 1,
"didmd5": "<string>",
"didsha1": "<string>",
"dpidmd5": "<string>",
"dpidsha1": "<string>",
"ext": {},
"flashver": "<string>",
"geo": {
"accuracy": 123,
"city": "<string>",
"country": "<string>",
"ext": {},
"ipservice": 1,
"lastfix": 123,
"lat": 123,
"lon": 123,
"metro": "<string>",
"region": "<string>",
"regionfips104": "<string>",
"type": 1,
"utcoffset": 123,
"zip": "<string>"
},
"geofetch": 0,
"h": 123,
"hwv": "<string>",
"ifa": "<string>",
"ip": "<string>",
"ipv6": "<string>",
"js": 0,
"lang": "<string>",
"langb": "<string>",
"lmt": 0,
"macsha1": "<string>",
"make": "<string>",
"mccmnc": "<string>",
"mccmncsim": "<string>",
"model": "<string>",
"os": "<string>",
"osv": "<string>",
"ppi": 123,
"pxratio": 123,
"sua": {
"architecture": "<string>",
"bitness": "<string>",
"browsers": [
{
"brand": "<string>",
"ext": {},
"version": [
"<string>"
]
}
],
"ext": {},
"mobile": 0,
"model": "<string>",
"platform": {
"brand": "<string>",
"ext": {},
"version": [
"<string>"
]
},
"source": 0
},
"type": 1,
"ua": "<string>",
"w": 123
},
"device_id": "<string>",
"id": "<string>",
"page_id": "<string>",
"query": "<string>",
"revenue": {
"currency": "<string>",
"revenue": 123
},
"schema": "activity.item_view",
"timestamp": 123,
"user_id": "<string>"
}'
"<any>"
Body
application/json
Response
200
application/json
Successful Response
The response is of type any
.
Was this page helpful?
curl --request POST \
--url https://your_a2_service/app/v0/log/activity \
--header 'Content-Type: application/json' \
--data '{
"catalogs": [
{
"id": "",
"metadata": {
"brand": "<string>",
"category": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"image_link": "<string>",
"link": "<string>",
"seller_name": "<string>",
"title": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
},
"schema": "creative.catalog",
"source": "<string>"
}
],
"channel": "<string>",
"device": {
"carrier": "<string>",
"contype": 1,
"didmd5": "<string>",
"didsha1": "<string>",
"dpidmd5": "<string>",
"dpidsha1": "<string>",
"ext": {},
"flashver": "<string>",
"geo": {
"accuracy": 123,
"city": "<string>",
"country": "<string>",
"ext": {},
"ipservice": 1,
"lastfix": 123,
"lat": 123,
"lon": 123,
"metro": "<string>",
"region": "<string>",
"regionfips104": "<string>",
"type": 1,
"utcoffset": 123,
"zip": "<string>"
},
"geofetch": 0,
"h": 123,
"hwv": "<string>",
"ifa": "<string>",
"ip": "<string>",
"ipv6": "<string>",
"js": 0,
"lang": "<string>",
"langb": "<string>",
"lmt": 0,
"macsha1": "<string>",
"make": "<string>",
"mccmnc": "<string>",
"mccmncsim": "<string>",
"model": "<string>",
"os": "<string>",
"osv": "<string>",
"ppi": 123,
"pxratio": 123,
"sua": {
"architecture": "<string>",
"bitness": "<string>",
"browsers": [
{
"brand": "<string>",
"ext": {},
"version": [
"<string>"
]
}
],
"ext": {},
"mobile": 0,
"model": "<string>",
"platform": {
"brand": "<string>",
"ext": {},
"version": [
"<string>"
]
},
"source": 0
},
"type": 1,
"ua": "<string>",
"w": 123
},
"device_id": "<string>",
"id": "<string>",
"page_id": "<string>",
"query": "<string>",
"revenue": {
"currency": "<string>",
"revenue": 123
},
"schema": "activity.item_view",
"timestamp": 123,
"user_id": "<string>"
}'
"<any>"
Assistant
Responses are generated using AI and may contain mistakes.