Skip to main content

Overview

This guide covers integrating Mazeed+ placement API into React Native mobile applications using WebView for rendering ad placements. Integration Method: Direct API call from mobile application

Mazeed+ Credentials

You will receive:
  • Publishable API Key – For x-publishable-api-key header
  • Placement ID – For identifier field

API Endpoint

Response Formats

JSON Response (Default)

When requesting with Accept: application/json (default):

HTML Response

When requesting with Accept: text/html, the API returns an HTML document directly in the response body.

Request Attributes

Required Attributes

React Native Implementation

Configuration

API Service

WebView Renderer

Install Dependencies

WebView Component

Usage Example

Integration Summary

Quick Checklist:
  • Get Publishable API Key and Placement ID from Mazeed+
  • Install react-native-webview
  • Configure credentials
  • Implement API service
  • Create WebView component
  • Integrate into screen
Data Flow:
  1. Call API with: identifier, userId, mobile
  2. Receive: html and css
  3. Render in WebView

Performance: Preloading WebView

Recommendation: Preload WebView before showing to users.

Best Practices

  • Hide WebView until content is fully rendered
  • Use onLoadEnd callback
  • Don’t show empty WebView while loading

Mobile Number Format

Correct Format:
Incorrect Format: