Skip to content

Latest commit

 

History

162 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


React Native Amazon Publisher Services

NPM version License Codecov


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.

Documentation

Content URL (Amazon DSP)

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 support

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 NSException in development builds when given an empty or nil value, so an empty contentUrl is skipped rather than forwarded.

Both the Android gap and the iOS stickiness have been raised with Amazon APS.

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

LGPL-3.0

About

No description, website, or topics provided.

Resources

Contributing

Stars

3 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages