Skip to main content

Ping Post Response Settings Tab

Ping Post Response Settings tell LeadExec what to look for when searching the client’s response for an accepted lead.

Written by Chris Arenas

Overview

The Ping Post Response Settings tab tells LeadExec how to interpret and process the buyer’s response after a PING request is sent. These settings determine whether the ping was accepted, what payout was returned, and which transaction or reference ID should be used during the POST step.

This section is especially important for Ping/Post delivery methods, since the values returned during the PING are often required later during the POST request.

LeadExec supports multiple response parsing formats:

  • JSON

  • XML

  • Custom

The selected format determines how LeadExec reads and searches the response data.

For standard JSON and XML responses, you can usually configure the fields using simple key/value matching without needing regular expressions.

The Custom format is intended for advanced or non-standard response structures where regex pattern matching may be required.

Important: Always obtain a sample response from the client’s API documentation before configuring the Response Settings. If the documentation does not include a successful response example, request one directly from the client. Knowing exactly what a successful response looks like is critical for properly configuring the Success Response, Bid Price, and PING Reference ID fields.

Response Formats

JSON

Use this option when the buyer returns a standard JSON response.

Example:

{
"Success": true,
"Payout": "50.00",
"TransactionId": "104316639974"
}

In most JSON configurations, you only need to provide:

Setting

Value

Success Response Key

Success

Equal to the value

true

PING Reference ID

TransactionId

Bid Price

Payout


​XML

Use this option when the buyer returns XML responses.

Example:


<Response>
<Success>true</Success>
<Payout>50.00</Payout>
<TransactionId>104316639974</TransactionId>
</Response>

Example configuration:

Setting

Value

Success Response Key

Success

Equal to the value

true

PING Reference ID

TransactionId

Bid Price

Payout

Custom

Use the Custom option only when the buyer’s response does not follow a standard JSON or XML structure, or when values must be dynamically extracted using pattern matching.

This format supports regular expressions (regex) for advanced parsing.

Example regex patterns:

Purpose

Regex Example

Success Detection

"Success":true

Price Extraction

"Payout":"([0-9.]+)"

PING Reference ID

"TransactionId":"([a-zA-Z0-9!&\\.$%@#_-]+)"

These expressions allow LeadExec to capture dynamic values that may change with every request.

Key Functionality

Success Response

Defines what LeadExec should look for to determine if the ping was accepted.

Example:

Field

Value

Key

Success

Equal to the value

true

PING Reference ID

Specifies the field that contains the buyer’s transaction or ping reference token.

This value is commonly required later during the POST request.

Example:

Field

Value

Key

TransactionId

Bid Price

Defines which field contains the payout or bid amount returned by the buyer.

Example:

Field

Value

Key

Payout

Enable Ping during Sort

This setting should be enabled for all Ping/Post delivery methods.

When enabled, LeadExec executes the ping during the sorting process to retrieve the buyer’s real-time payout.

  • Successful pings update the account ranking using the returned payout.

  • Failed pings exclude the account from selection.

How to Configure

  1. Navigate to the Response Settings (PING) tab within your delivery method.

  2. Select the appropriate Response Format:

    • JSON

    • XML

    • Custom

  3. Configure the Success Response:

    • Enter the response field name.

    • Enter the expected success value.

  4. Configure the PING Reference ID field.

  5. Configure the Bid Price field.

  6. Enable Ping during Sort for Ping/Post delivery methods.

  7. Save the configuration.

Best Practices

  • Always match the configuration to the buyer’s API documentation.

  • Use JSON or XML formats whenever possible.

  • Only use Custom when regex or advanced parsing is required.

  • Test using sample responses before enabling the delivery method in production.

  • Verify that the payout and transaction ID are being captured correctly.

Troubleshooting

Ping Not Accepted

  • Verify the Success Response key and value exactly match the buyer’s response.

Payout Not Captured

  • Confirm the Bid Price field name matches the response field.

Missing PING Reference ID

  • Verify the correct transaction/reference field is configured.

Custom Regex Not Working

  • Validate the regex pattern against a real sample response from the buyer.

  • Ensure escape characters are properly formatted.

Next article: Retry Settings Tab>

Did this answer your question?