React Native Amazon Publisher Services allows you to add demand partners via Amazon Publisher Services; a React Native wrapper around the native Amazon Publisher Services SDKs for both iOS and Android.
Amazon DSP requires in-app bid requests to carry the public web URL of the content the user is viewing, so that AmazonAdBot can crawl the page and verify what surrounds the ad. Inventory it cannot verify progressively loses eligibility with Amazon advertisers.
Pass it per bid request through contentUrl:
const adLoader = AdLoader.createBannerAdLoader({
slotUUID: 'your-slot-uuid',
size: '320x50',
contentUrl: 'https://yourdomain.com/article/12345',
});The URL must match the in-app content — not a deep link, not a store URL, not the app home page — and must be publicly reachable. Omit the option entirely when you have no reliable URL: a missing field is neutral, a wrong one is an active non-compliance signal.
| Platform | Behaviour |
|---|---|
| iOS | Applied through +[APS setContentUrl:], immediately before loadAd and inside the same native call. |
| Android | Ignored. The Android APS SDK exposes no equivalent. |
Two caveats worth knowing on iOS:
+[APS setContentUrl:]is a class method, so the value is process-global and sticky — it cannot be cleared, and the last URL set stays attached to subsequent requests until another one replaces it.- The SDK throws an
NSExceptionin development builds when given an empty or nil value, so an emptycontentUrlis skipped rather than forwarded.
Both the Android gap and the iOS stickiness have been raised with Amazon APS.
See the contributing guide to learn how to contribute to the repository and the development workflow.
LGPL-3.0
