Showing Ads in your site is extremely simple! Please follow the next steps.
"dependencies": {
"@targecy/sdk": "VERSION",
},
...
Wherever in your site you want to insert the ad, please append the following tag:
import { Ad } from "@targecy/sdk";
...
<Ad publisher="YOUR_REGISTERED_ADDRESS" />
{
// the address we registered and where you will receive the rewards.
publisher: Address
}
{
styling?: {
layout?: 'banner_large' | 'banner_medium' | 'banner_small' | 'square' | 'list_item'; // list_item is the default
backgroundColor?: string;
titleColor?: string;
subtitleColor?: string;
borderRadius?: string; // in pixels
boxShadow?: string;
border?: string;
},
env?: 'development' | 'preview' | 'production';
}