TrueReach Bidder Adapter for Prebid Js

Complete Sample-

			
	<html>
	<head>
		<script async src="//www.googletagservices.com/tag/js/gpt.js"></script>
		<script async src="[INSERT PREBID.JS LINK]"></script>
	
		<script>
			var PREBID_TIMEOUT = 1500;
			var FAILSAFE_TIMEOUT = 3000;
			var adUnits = [{
				code: 'test-banner',
				mediaTypes: {
					banner: {
						sizes: [[300, 250]]
					}
				},
				bids: [{
					bidder: 'truereach',
					params: {
						site_id: '0142010a-8400-1b01-72cb-a553b9000009',
						bidfloor: 0.1
					}
				}]
			}];

			var googletag = googletag || {};
			googletag.cmd = googletag.cmd || [];
			googletag.cmd.push(function () {
				googletag.pubads().disableInitialLoad();
			});
	
			var pbjs = pbjs || {};
			pbjs.que = pbjs.que || [];
	
			pbjs.que.push(function () {
				pbjs.addAdUnits(adUnits);
				pbjs.setConfig({
					priceGranularity: "high",
					enableSendAllBids: false
				});
	
				pbjs.requestBids({
					bidsBackHandler: initAdserver,
					timeout: PREBID_TIMEOUT
				});
			});
	
			function initAdserver() {
				if (pbjs.initAdserverSet) return;
				pbjs.initAdserverSet = true;
				googletag.cmd.push(function () {
					pbjs.que.push(function () {
						pbjs.setTargetingForGPTAsync();
						googletag.pubads().refresh();
					});
				});
			}

			setTimeout(function () {
				initAdserver();
			}, FAILSAFE_TIMEOUT);
	
	
			googletag.cmd.push(function () {
				googletag.defineSlot('/21696116818/Test_headerbidding', [300,250], 'div-gpt-ad-1567150930627-0')
				.addService(googletag.pubads());
				googletag.pubads().enableSingleRequest();
				googletag.enableServices();
			});
	
		</script>
	</head>
	
	<body>
	
		<div id='div-gpt-ad-1567150930627-0'>
			<script type='text/javascript'>
				googletag.cmd.push(function () {
					googletag.display('div-gpt-ad-1567150930627-0');
				});
			</script>
		</div>
	
	</body>
	
</html>
		
	

Name Scope Description Example Type
site_id required TrueReach provided site ID '0142010a-8400-1b01-72cb-a553b9000009' String
bidfloor required Minimum price (CPM) in USD. Must be greater than 0. 0.1 Number

Supported Banner sizes-

In prebid.js, currently we support Banner Ads only.

Native and Video ads support comming soon.


Contact Us for more details or OpenRTB integration.