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

string,null

User Identifier

otherInfos

object,null

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

integer

Example: 200

status code of the request

timestamp

integer

Example: 1688012713

the timestamp of response

payload

null,object,string

requested data

Get specific Ads by UUID

Path Parameter

adsUuid

required
string

Example: eGzZRh7e

Ads UUID

Response schema: application/json

uuid

string

Example: eGzZRh7e

the uuid of returned ads

type

string

Example: image

the type of returned ads

asset

string

Example: https://vantagoads.com/short/example

the url of the ads asset (image/video url)

click_link

string,null

Example: https://vantagoads.com/short/example

the redirect url of the ads asset after click

post

/getAds/{adsUuid}

Response samples



                

Get random ads by ads tag

Path Parameter

tagUuid

required
string

Example: peHLY5D0

Ads tag UUID

Response schema: application/json

uuid

string

Example: eGzZRh7e

the uuid of returned ads

type

string

Example: image

the type of returned ads

asset

string

Example: https://vantagoads.com/short/example

the url of the ads asset (image/video url)

click_link

string,null

Example: https://vantagoads.com/short/example

the redirect url of the ads asset after click

post

/getAdsByTag/{tagUuid}

Response samples



                

Record ads impression

Path Parameter

adsUuid

required
string

Example: eGzZRh7e

Ads UUID

post

/recordImpression/{adsUuid}

Response samples

© 2024 Solution Forest