CallGrid

Retreaver Real Time Bidding Integration

Sell calls to a Retreaver buyer from CallGrid: set up the destination Ping, accept on retreaver_payout, map number, payout and duration, and test it.

Updated 5 min read

Overview#

This page covers selling calls from CallGrid to a buyer that runs on Retreaver. For each call, CallGrid pings the buyer's Retreaver RTB endpoint, reads whether Retreaver reserved the call and at what payout, and routes the call to the Retreaver number when the ping is accepted.

In CallGrid this is a destination with a Ping, configured on the destination's Ping tab.

Prerequisites#

  • The buyer's Retreaver RTB key and the publisher ID for your traffic.
  • An agreement with the buyer on payout, billable duration and the caller data they need.
  • A CallGrid campaign whose calls carry a caller ID (CallerId).

Step 1: Create the buyer and destination#

  1. Under Buyers, create a buyer for the Retreaver account.
  2. Go to Destinations > + New Destination. On the Settings tab, enter Name, Buyer, Timezone and Business Hours.
  3. Under Call Settings, set Phone Type:
    • Variable if Retreaver returns the number to dial in the ping response.
    • Phone if the buyer gave you a fixed Retreaver number.
  4. Expand Advanced under Call Settings and turn on Match Connect Duration (see Step 5).
  5. Click Save Destination, reopen the destination and go to the Ping tab.

Step 2: Build the ping#

  1. Turn on Ping Integration.
  2. Turn on Ping Template, choose Retreaver in the template picker (Real Time Bidding group) and enter the buyer's RTB Key. Publisher ID is optional.
  3. The template builds the request. To check it, or to build it by hand, use Request Data:
    • Method: POST, Content Type JSON, body {}
    • URL:
      Text
      https://rtb.retreaver.com/rtbs.json?key=YOUR_RTB_KEY&publisher_id=YOUR_PUBLISHER_ID&caller_number=[[tag:CallerId]]
    • The template also sends caller_state and caller_zip.
    • Timeout: short enough to finish inside the source's own ping timeout.
    • Use Static IP for requests: turn on only if the buyer allowlists IP addresses. Requests then come from 3.232.249.88 and 54.160.65.103.
  4. Add any other caller data the buyer asks for with tag macros, for example [[tag:InboundZipCode]] or [[tag:InboundStateCode]]. Tag names are case sensitive.
Destination Ping tab with the Retreaver ping template selected, RTB Key and optional Publisher ID filled

Turn on Ping Template (2), choose Retreaver (3) and enter the RTB Key. Publisher ID is optional (4).

Step 3: Acceptance Parsing#

  • Parsing Type: JSON
  • Operators: Equals, Not Equal To, Greater Than, Less Than

The standard rule is retreaver_payout Greater Than 0, which means Retreaver reserved a buyer for the call at a payout.

Goal

Rule

Accept paid reservations

retreaver_payout Greater Than 0

Require a minimum payout

retreaver_payout Greater Than your floor, for example 20

Minimum Revenue on the campaign or routing group is another way to set a floor.

Step 4: Field Mapping#

Field Mapping

Response path

Effect

Variable Phone/SIP

inbound_number

The number to dial (Phone Type Variable)

Variable Revenue/Bid

retreaver_payout

Revenue for the call

Variable Duration

retreaver_seconds

Seconds the call must last to convert

On the Settings tab, set Revenue Type to Variable and the Billable Type and duration that match your agreement. Use Value Extraction to save uuid into a custom tag if you want it; Retreaver uses this ID to look up why a request found no buyer.

Retreaver template acceptance rule retreaver_payout Greater Than 0, and Field Mapping of inbound_number, retreaver_payout and retreaver_seconds

The Retreaver template accepts on retreaver_payout Greater Than 0 (1) and maps inbound_number, retreaver_payout and retreaver_seconds (2).

Retreaver response#

Response shape from Retreaver's RTB documentation. Values are examples; check yours with Run Ping.

JSON
{  "uuid": "66b905ef-bc03-420e-ad43-e8eeae03918f",  "status": "reserved",  "retreaver_payout": 25.5,  "retreaver_seconds": 90,  "inbound_number": "+18005551234",  "expires_at": "2026-10-12T16:16:18.246Z"}

Field

Meaning

uuid

Retreaver's ID for this RTB request

status

Result of the request (see below)

retreaver_payout

Payout for the call

retreaver_seconds

Duration the call must reach to convert

inbound_number

Number to send the call to

expires_at

When the reservation expires

Status values in Retreaver's RTB documentation include reserved (a buyer was reserved), no-target (no buyer matched the call) and rejected (Retreaver could not reach a buyer). When no buyer is available, the response has no inbound_number.

Step 5: Duration matching#

Retreaver answers the call and plays a ringing tone while it connects its own buyer, so connected time in CallGrid can start earlier than on the buyer's side.

  • Match Connect Duration: "Turn this on when sending calls to Ringba, Retreaver, TrackDrive or any system that answers the call and plays a ringing tone." It always applies to Retreaver destinations, whether or not the box is ticked, so turning it on does no harm. It trims ring time after the call and can under-report by up to about one second.
  • True Connect (Beta): an in-call alternative that removes the difference on both sides. Ask your account manager before turning it on.

Step 6: Test and go live#

  1. In Ping Testing, set a test value for CallerId under Test Variables and click Run Ping.
  2. Check the response. Confirm acceptance passes on retreaver_payout above 0 and that the number, payout and duration map.
  3. Click Save Ping, then Save Destination, add the destination to the campaign's routing and place a live test call.

How it works on a call#

  1. A call or bid request arrives on the CallGrid campaign.
  2. CallGrid pings Retreaver with the caller's number.
  3. Retreaver checks its campaigns and returns a status and payout.
  4. If acceptance passes, the destination competes in routing using its revenue.
  5. If it wins, CallGrid dials the Retreaver number.

A busy result after an accepted ping is normal when the buyer has no agent free. It is not a CallGrid fault; with Failover Routing on, the call moves on to the next destination.

Troubleshooting#

Symptom

Check

Authentication error

RTB key and publisher ID; key still active on the buyer's side

no-target on every ping

Buyer's Retreaver campaign criteria, capacity or hours; required caller data missing

Accepted but not routed

Phone Type and the Variable Phone/SIP mapping

Duration disputes

Match Connect Duration on; compare Connected Call Duration, which is what CallGrid bills on

Pings time out

Destination Timeout. The Webhook Timeout source override (campaign Sources tab) sets the ping timeout for that source, with a 1 second minimum

Buyer blocks requests by IP

Turn on Use Static IP for requests and give the buyer both IPs

The call timeline shows every ping, response and acceptance decision.

Best practices#

  • Use one destination per Retreaver publisher ID or buyer program so performance is reported separately.
  • Set a payout floor instead of accepting every reservation.
  • Agree billable duration in writing and set it on the destination.

Do it with AI#

Ask Claude or ChatGPT. Try: "How many pings to my Retreaver destination were accepted yesterday, and how many timed out?" Claude and ChatGPT need the CallGrid connector turned on (setup guides for Claude and ChatGPT).

The connector is read only. It looks things up and reads your data. You make the changes in CallGrid.

Stuck on a step? Ask Griddy.