Website
1. Put the following codes at the "head" part of your html
No need to pass the "USER_ID" and "OTHER_INFO" if you didnt want to record the user and other additional infos
2. You may also set the User Id and other informations as follow
For other informations, please pass 'JSON' or 'ARRAY' value
3. you can add the desired ads at the any positional you want. Just simply add the 'vantago-ads' or 'vantago-ads-tag' attribute to your element
If you both 'vantago-ads' and 'vantago-ads-tag', we will take the 'vantago-ads' Ads
4. Finally, call the 'start' function when all setting is done.
App
Basic Setup
Put the following fields at your api request header
You can pass the data you want to record at api request body
user_id
User Identifier
otherInfos
Other Infos to be recorded
Api Domain : https://vantagoads.com/tenant/api
Response structure
All api response will follow following structure, the request data will store at 'payload' field
code
Example: 200
status code of the request
timestamp
Example: 1688012713
the timestamp of response
payload
requested data
Get specific Ads by UUID
Path Parameter
adsUuid
requiredExample: eGzZRh7e
Ads UUID
Response schema: application/json
uuid
Example: eGzZRh7e
the uuid of returned ads
type
Example: image
the type of returned ads
asset
Example: https://vantagoads.com/short/example
the url of the ads asset (image/video url)
click_link
Example: https://vantagoads.com/short/example
the redirect url of the ads asset after click
/getAds/{adsUuid}
Response samples
Get random ads by ads tag
Path Parameter
tagUuid
requiredExample: peHLY5D0
Ads tag UUID
Response schema: application/json
uuid
Example: eGzZRh7e
the uuid of returned ads
type
Example: image
the type of returned ads
asset
Example: https://vantagoads.com/short/example
the url of the ads asset (image/video url)
click_link
Example: https://vantagoads.com/short/example
the redirect url of the ads asset after click
/getAdsByTag/{tagUuid}
Response samples
Record ads impression
Path Parameter
adsUuid
requiredExample: eGzZRh7e
Ads UUID
/recordImpression/{adsUuid}
Response samples