/3.0/ads/advise/gta/online
Advertising materials (3.0)
Getting GTA banners with enrichment
The request to advisor with the data enrichment. If the branch is not found in the database, it will be removed form the result. You get the enriched data not only via reference materials, but also via advertising materials in case the fallback scheme works (fake GTA-banner).
query Parameters
| key required | string Unique key of API user. |
Request Body schema: application/json
Query in json format.
| banner_slot required | string Enum: "recovery_list" "discovery_list" The place of an advertising display. |
| query required | string [ 1 .. 1024 ] characters The text of the search query. |
| query_context_rubrics | Array of integers[ items ] Contextual categories of the query grouped by equivalence. |
| region_id | integer Project ID. Has the lowest priority among viewport and userLocation when defining the project. |
| auth_user_id | integer The user ID from auth if a user is logged in. |
object The location of the user. Mandatory if available, and if not prohibited by GDPR. | |
| locale | string = 5 characters Locale. |
| product_id | integer The product ID, the same as the one that is sent to BSS. If it is not passed, it will be taken from the key. |
| shv | string Version of the shell. If the parameter has not been passed, the current version of the API will be taken. |
Array of objects (PropPoint) = 4 items unique Viewport coordinates. Can be used when a user is unknown, in order to understand what advertisers to offer them. The order of the points is strictly defined: counter-clockwise, starting from the top left corner. | |
| user_id | string <uuid> Obligatory, if not prohibited by GDPR. appInstanceId – for mobile apps, a regular BSS userID for other products. |
Responses
Response Schema: application/json
required | object (ObjMeta) Response metadata |
required | object (PropGtaOnline) |
Request samples
- Payload
{- "banner_slot": "recovery_list",
- "query": "string",
- "query_context_rubrics": [
- [
- 0
]
], - "region_id": 0,
- "auth_user_id": 0,
- "user_location": {
- "accuracy": 0,
- "reliable": true,
- "lon": 55.10401153,
- "lat": 36.75896072
}, - "locale": "ru_RU",
- "product_id": 0,
- "shv": "string",
- "viewport": [
- {
- "lon": 55.10401153,
- "lat": 36.75896072
}, - {
- "lon": 55.10401153,
- "lat": 36.75896072
}, - {
- "lon": 55.10401153,
- "lat": 36.75896072
}, - {
- "lon": 55.10401153,
- "lat": 36.75896072
}
], - "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5"
}Response samples
- 200
- 400
- 403
- 404
- 500
{- "meta": {
- "code": 200,
- "api_version": "dev",
- "issue_date": "string"
}, - "result": {
- "banners": [
- {
- "region_id": "123456",
- "segment_id": "123456",
- "hash": "string",
- "name_ex": {
- "primary": "Sunny",
- "extension": "cafe",
- "legal_name": "LLC Sunny",
- "addition": "string",
- "description": "Warehouse",
- "short_name": "Sunny"
}, - "org": {
- "id": "123456",
- "name": "string",
- "extension": "string",
- "primary": "string",
- "branch_count": "7"
}, - "main_rubric_id": 0,
- "ad_attributes": {
- "banner_id": "string",
- "ads_id": "123456",
- "content": {
- "options": {
- "images": [
- {
- "url": "string"
}
], - "color": "string",
- "logo": {
- "bg_color": "#FFFFFF",
- "text_color": "#000000",
- "use_default_value": true,
}, - "actions": [
- {
- "type": "string",
- "value": "string",
- "name": "string",
- "platforms": [
- null
], - "caption": "string"
}
], - "videos": [
- {
- "resources_description_url": "string"
}
]
}, - "text": "string",
- "text_warning": "string",
}, - "rubric_id": 0,
- "is_ads": true,
- "erid": [
- "string"
], - "algorithm_id": 1,
- "branch_id": "string",
- "auction_id": "185078a5-6bda-458b-bf76-91149ffd8ccc",
- "placement": 0,
- "legal_name": "string",
- "project_id": 0
}
}
], - "stories": {
- "objects": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "projectId": 0,
- "content": {
- "slides": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "button": {
- "backgroundColor": "string",
- "action": {
- "type": null,
- "value": null,
- "name": null,
- "platforms": [ ],
- "caption": null
}
}, - "video": {
- "url": "string",
- "duration": 0
}, - "body": "string",
- "title": "string",
- "footnote": {
- "logoUrl": "string",
- "warning": "string",
- "title": "string",
- "subtitle": "string"
}, - "swipeInterval": 8000,
- "backgroundUrl": "string",
- "rating": 0.5,
- "template": {
- "textPosition": "left_top"
}
}
], - "preview": {
- "backgroundUrl": "string",
- "text": "string"
}
}, - "algorithmId": 1,
- "adsId": "123456",
- "erid": [
- "string"
], - "legalName": "string",
- "orgId": "string"
}
]
}
}
}