The Marchex Real Time Bidding (RTB) integration enables you to send bid requests to Marchex's marketplace in real-time. This integration allows you to monetize your call traffic by submitting calls to Marchex buyers who can bid on them dynamically based on call characteristics, search terms, and geographic targeting criteria.

Prerequisites
Before setting up this integration, ensure you have:
- An active Marchex account with RTB permissions
- Your Marchex Partner ID from your account
- Understanding of search terms and types relevant to your call traffic
- Knowledge of your call routing and monetization strategy
Configuration Steps
Step 1: Obtain Marchex Account Information
- Log into your Marchex account
- Navigate to your partner/publisher settings
- Locate your Partner ID (unique identifier for your account)
- Identify the Search Terms that best describe your call traffic
- Determine the appropriate Search Type for your campaigns
Step 2: Configure CallGrid Integration
Phase 1: Basic Template Setup
- Navigate to your CallGrid destination settings
- Click the Webhook tab
- Enable Webhook Integration
- Enable Template Mode
- Switch to Real Time Bidding template type
- Select Marchex from the Real Time Bidding templates
- Fill in the required fields:
Required Configuration Fields
Partner ID (Required)
- Enter your Marchex Partner ID
- This is your unique identifier in the Marchex system
- Example: 123456789
Search Term (Required)
- Enter the search term that best describes your call traffic
- This helps Marchex match your calls to appropriate buyers
- Example: auto insurance, home loans, legal services
Search Type (Required)
- Enter the search type category for your calls
- This defines the vertical or industry category
- Example: insurance, finance, legal, healthcare
- Click Save Webhook to proceed to advanced configuration
Phase 2: Advanced Configuration
After saving your basic template configuration, you'll be taken to the advanced configuration screen. The system automatically builds the webhook URL and request structure for you.
Request Configuration
URL Structure The webhook URL is automatically generated based on your configuration:

https://services.marchex.com/mcm/listings?partnerId=PartnerID&searchType=Type&searchTerm=Term&radius=50&zip=[[tag:InboundZipCode]]
HTTP Method
- Method: GET (automatically configured)
- Timeout: 10 seconds (default, adjustable)
URL Parameters The integration automatically includes these query parameters:
- partnerId: Your Marchex Partner ID
- searchType: The search type category
- searchTerm: The search term for your calls
- radius: Search radius (default 50 miles)
- zip: Dynamic zip code from [[tag:InboundZipCode]]
Acceptance Parsing
The most important setting is the acceptance criteria, which determines when bids are accepted.

Parsing Type
- Parse Type: JSON (automatically configured)
- Parse Field: Configure which field from the bid response to evaluate
Default Acceptance Criteria The system is pre-configured to check for publisher payouts using the 0.publisherPayout field:
- Field: 0.publisherPayout
- Condition: Greater Than
- Value: 0
This configuration accepts bids when Marchex responds with a publisher payout amount greater than 0.
Bid Response Handling
Response Field Options Configure which fields from the Marchex bid response to use for acceptance:
- Property Path: Enter the JSON path to the bid data
- Common Fields:
- 0.publisherPayout - The payout amount offered for the call
- 0.phoneNumber - Phone number where the call should be routed
- 0.listingId - The Marchex listing that accepted the bid
- 0.businessName - Name of the business receiving the call
Testing Your Configuration

To test your integration:
- Fill in your Partner ID, Search Term, and Search Type
- In the webhook testing section, provide test values:
- tag:InboundZipCode: Enter a test zip code (e.g., 90210)
- Click Run Webhook to test the connection
- Verify the test passes and shows a proper bid response from Marchex
- Confirm the acceptance parsing works correctly with the response
The built-in webhook test will send a test bid request to Marchex and show you whether bids would be accepted based on their response.
How It Works
Real-Time Bid Process
The integration facilitates real-time bidding through Marchex's MCM (Marchex Call Marketplace) system:
- Bid Request: CallGrid sends call information to Marchex's listings API
- Marketplace Evaluation: Marchex evaluates the call against available listings
- Bid Response: Marchex responds with available listings and payout information
- Acceptance Decision: Your system evaluates the bid response against your criteria
- Call Routing: If accepted, the call is routed to the Marchex destination
Bid Response Structure
Marchex's RTB API returns bid responses in the following format:
[
{
"listingId": "abc123def456",
"businessName": "Example Insurance Agency",
"phoneNumber": "18005551234",
"publisherPayout": 25.50,
"searchTerm": "auto insurance",
"searchType": "insurance",
"zipCode": "90210",
"radius": 50
}
]
Advanced Configuration Examples
Example 1: Basic Payout Acceptance
Acceptance Criteria:
- Field: 0.publisherPayout
- Condition: Greater Than
- Value: 0
This configuration accepts calls when Marchex offers any payout amount.
Example 2: Minimum Payout Threshold
Acceptance Criteria:
- Field: 0.publisherPayout
- Condition: Greater Than
- Value: 20.00
This setup ensures calls are only accepted when the payout exceeds $20.00.
Example 3: Business Name Validation
Acceptance Criteria:
- Field: 0.businessName
- Condition: Not Equals
- Value: null
This configuration ensures calls are only accepted when a valid business is matched.
Example 4: Multiple Acceptance Criteria
You can add multiple criteria to ensure both valid listings and minimum payouts:
Criteria 1:
- Field: 0.publisherPayout
- Condition: Greater Than
- Value: 15.00
Criteria 2:
- Field: 0.phoneNumber
- Condition: Not Equals
- Value: null
Search Term Optimization
Popular Search Terms by Vertical
Insurance:
- auto insurance
- home insurance
- life insurance
- health insurance
Finance:
- personal loans
- mortgage
- debt consolidation
- credit repair
Legal:
- personal injury
- divorce lawyer
- criminal defense
- bankruptcy
Healthcare:
- weight loss
- addiction treatment
- mental health
- physical therapy
Search Type Categories
- insurance - All insurance-related calls
- finance - Financial services and lending
- legal - Legal services and attorneys
- healthcare - Medical and wellness services
- home improvement - Contractors and home services
- automotive - Auto services and dealerships
Advanced Use Cases
Multi-Vertical Strategy
Configure multiple CallGrid destinations, each targeting different search terms and types to maximize coverage across various verticals.
Geographic Optimization
Leverage the automatic zip code parameter to route calls to businesses optimized for specific geographic regions.
Payout Optimization
Use payout thresholds to ensure calls are only routed when they meet your minimum revenue requirements.
Troubleshooting
Common Issues
Invalid Partner ID
- Verify your Partner ID is correct and matches your Marchex account
- Ensure your Marchex account is active and has RTB permissions
- Check that the Partner ID format is correct
No Listings Returned
- Verify your search terms are relevant and commonly searched
- Check that your search type matches your search term category
- Ensure there are active listings in your target geographic area
Low Payout Issues
- Review your search terms to ensure they target high-value verticals
- Check that your geographic targeting aligns with high-payout areas
- Verify that your call quality meets Marchex buyer requirements
Geographic Targeting Problems
- Ensure zip codes are being passed correctly in the InboundZipCode tag
- Verify the radius setting is appropriate for your market
- Check that there are active listings in your target areas
Testing the Integration
Template Configuration Test:
- After entering all required fields, click Save Webhook
- Review the auto-generated URL and parameters
Built-in Webhook Test:
- In the advanced configuration screen, provide test values:
- tag:InboundZipCode: Enter a test zip code (e.g., 90210)
- Click Run Webhook to test the connection
- Verify the bid response contains expected listing data
- Test different acceptance criteria using the webhook test feature
Live Integration Test:
- Monitor CallGrid logs for successful bid requests
- Verify bid responses are being parsed correctly
- Test call routing based on payout acceptance conditions
Best Practices
Search Term Strategy
- Use specific, high-intent search terms for better payout rates
- Test different search terms to find optimal performance
- Monitor search term performance and adjust based on results
Geographic Targeting
- Consider population density when setting radius parameters
- Test different geographic markets to maximize revenue
- Monitor geographic performance to identify high-value areas
Revenue Optimization
- Set competitive but realistic payout thresholds
- Track performance metrics across different verticals
- Adjust search terms and types based on marketplace demand
CallGrid Support
If you need assistance with this integration:
- Check the CallGrid logs for error messages
- Verify all configuration parameters
- Test the integration using the built-in webhook test feature
- Contact CallGrid support with integration details
Related Articles
Continue exploring with these related insights
CallGrid Bid API - Advanced Integration Guide
The CallGrid Bid API allows custom platforms and developers to send real-time bid requests to CallGrid campaigns.
Read ArticlePosting Bids from CallGrid to CallGrid using RTB
This guide will walk you through setting up your CallGrid campaign to send bid requests to another CallGrid customer.
Read ArticleCall Recording Best Practices
Call recording laws vary by state. Some states require only your consent, while others require everyone's consent (all-party consent).
Read ArticleGetting Started with CallGrid
Welcome to CallGrid! This guide will walk you through your first steps to get your account up and running quickly.
Read ArticleAuthor
CallGrid Team
Article Info
Categories
Topics