Test PIDs and Configurations
warning
Production Warning: These test PIDs and configurations are for development and testing purposes only. Never use them in your production environment.
info
Testing Overview: Use these test PIDs and configurations to validate your integration, test different creative formats, and ensure proper functionality before going live with production placements.
Media Placement Test PIDs
Media Video Ads
Use these PIDs to test different creative formats and orientations:
| PID | Description | Creative Format | 
|---|---|---|
| 84242 | Landscape creatives only | Landscape video ads | 
| 127546 | Vertical creatives only | Vertical video ads | 
| 127547 | Square creatives only | Square video ads | 
| 128779 | Carousel creatives only | Carousel video ads | 
| 128780 | Multiple creative sizes & formats | Mixed formats for comprehensive testing | 
Usage Example
let adPlacementSettings = TeadsAdPlacementSettings { settings in
    settings.enableDebug()
}
let adRequestSettings = TeadsAdRequestSettings { settings in
    settings.pageUrl(URL(string: "https://example.com/article"))
}
let mediaPlacement = TeadsAdPlacementMedia(pid: 84242, settings: adPlacementSettings, delegate: self)
mediaPlacement.requestAd(adRequestSettings: adRequestSettings)
Media Native Placement Test PIDs
Media Native Ads
Use this PID to test native video ads with custom layouts:
| PID | Description | Creative Format | 
|---|---|---|
| 124859 | Display creatives only | Native video ads with custom rendering | 
Usage Example
let adPlacementSettings = TeadsAdPlacementSettings { settings in
    settings.enableDebug()
}
let adRequestSettings = TeadsAdRequestSettings { settings in
    settings.pageUrl(URL(string: "https://example.com/article"))
}
let mediaNativePlacement = TeadsAdPlacementMediaNative(pid: 124859, settings: adPlacementSettings, delegate: self)
mediaNativePlacement.requestAd(adRequestSettings: adRequestSettings)
Feed Placement Test Configuration
Use this configuration to test content recommendation widgets:
| Parameter | Value | Description | 
|---|---|---|
| Article URL | https://test-demo.outbrain.com | Test article URL for content recommendations | 
| Widget ID | MB_1,MB_2,TEST_FEED | Test widget identifiers | 
| Installation Key | NANOWDGT01,TESTKEY01 | Test installation keys | 
| User ID | nil | Optional user identifier | 
| Dark Mode | true | Enable dark mode for testing | 
Usage Example
let config = TeadsAdPlacementFeedConfig(
    articleUrl: URL(string: "https://test-demo.outbrain.com")!,
    widgetId: "MB_1",
    installationKey: "NANOWDGT01",
    widgetIndex: 0,
    userId: nil,
    darkMode: true,
    testDisplay: false,
    extId: nil,
    extSecondaryId: nil,
    obPubImpl: nil
)
let feedPlacement = TeadsAdPlacementFeed(config: config, delegate: self)
feedPlacement.load()
Recommendations API Test Configuration
Use this configuration to test programmatic content recommendations:
| Parameter | Value | Description | 
|---|---|---|
| Article URL | https://test-demo.outbrain.com | Test article URL for content recommendations | 
| Widget ID | SDK_1,RECS_1,TEST_RECS | Test recommendations identifiers | 
| Installation Key | NANOWDGT01,TESTKEY01 | Test installation keys | 
| User ID | nil | Optional user identifier | 
| Dark Mode | true | Enable dark mode for testing | 
Usage Example
let config = TeadsAdPlacementRecommendationsConfig(
    articleUrl: URL(string: "https://test-demo.outbrain.com")!,
    widgetId: "SDK_1"
)
let recommendationsPlacement = TeadsAdPlacementRecommendations(config: config, delegate: self)
recommendationsPlacement.load()
Testing Best Practices
Development Testing
- Use appropriate test PIDs: Choose PIDs that match your expected creative formats
- Test all placement types: Validate Media, Media Native, Feed, and Recommendations
- Test different configurations: Try various widget IDs and installation keys
- Enable test mode: Adds detailed logging
Integration Validation
- Run Validation Tool: Use the Validation Tool for comprehensive testing
- Test visibility: Ensure ads are fully visible and clickable
- Test audio management: Verify proper audio handling during video playback
- Test lifecycle events: Confirm all placement events are firing correctly
Pre-Production Checklist
- Remove all test PIDs and configurations
- Remove enableDebug()andenableValidationMode()settings
- Replace with production PIDs and configurations
- Test with production settings in staging environment
- Verify app-ads.txt implementation
- Confirm privacy compliance settings
Common Testing Scenarios
Testing Creative Formats
- Landscape videos: Use PID 84242
- Vertical videos: Use PID 127546
- Square videos: Use PID 127547
- Carousel ads: Use PID 128779
- Mixed formats: Use PID 128780
Testing Feed Widgets
- Standard feed: Use widget ID MB_1with installation keyNANOWDGT01
- Alternative feed: Use widget ID MB_2with installation keyTESTKEY01
- Test feed: Use widget ID TEST_FEEDfor basic functionality testing
Testing Recommendations
- Standard recommendations: Use widget ID SDK_1
- Alternative recommendations: Use widget ID RECS_1
- Test recommendations: Use widget ID TEST_RECSfor basic functionality
Troubleshooting Test Issues
No Ads Loading
- Check that you're using valid test PIDs
- Verify network connectivity
- Ensure proper placement configuration
- Check console logs for error messages
Creative Format Issues
- Try different test PIDs for various formats
- Verify your container size matches creative requirements
- Check for overlay issues affecting visibility
Feed/Recommendations Issues
- Verify widget ID and installation key combinations
- Check article URL accessibility
- Ensure proper delegate implementation
Related Documentation
- Integration Guide - Complete integration steps
- Prerequisites & Setup Checklist - Essential setup requirements
- Validation Tool - Comprehensive testing tool
- Troubleshooting Guide - Common issues and solutions
- Settings Configuration - Advanced configuration options