Skip to content

Remove networkName from AdFailedToLoad event#6208

Merged
polmiro merged 2 commits into
mainfrom
remove-networkname-from-ad-failed-to-load-event
Feb 5, 2026
Merged

Remove networkName from AdFailedToLoad event#6208
polmiro merged 2 commits into
mainfrom
remove-networkname-from-ad-failed-to-load-event

Conversation

@polmiro

@polmiro polmiro commented Feb 5, 2026

Copy link
Copy Markdown
Member

Summary

  • Remove networkName field from AdFailedToLoad class
  • Make networkName optional in AdEventData protocol and AdEventsRequest
  • Update tests and snapshot to reflect the change

When an ad fails to load, multiple networks may have been involved in trying to fulfill the request. Attributing the failure to a single network is not meaningful.

This is a breaking change for the experimental ad tracking API (@_spi(Experimental)).

When an ad fails to load, multiple networks may have been involved in
trying to fulfill the request. Attributing the failure to a single
network is not meaningful.

This is a breaking change for the experimental ad tracking API.
@claude

claude Bot commented Feb 5, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

Restructure internal protocol hierarchy:
- AdEventData no longer includes networkName (base protocol)
- AdImpressionEventData includes networkName (for impression events)
- Add AdEvent.networkName computed property for request building
- Update AdEventsRequest to use adEvent.networkName
@polmiro polmiro merged commit cdd0cd4 into main Feb 5, 2026
15 checks passed
@polmiro polmiro deleted the remove-networkname-from-ad-failed-to-load-event branch February 5, 2026 15:21
polmiro added a commit to RevenueCat/purchases-hybrid-common that referenced this pull request Feb 6, 2026
…ad events (#1461)

## Summary

- Remove `networkName` from `trackAdFailedToLoad` in both Android and
iOS — when an ad fails to load, multiple networks may have been
involved, so attributing the failure to a single network is not
meaningful
- Make `networkName` nullable/optional in `trackAdDisplayed`,
`trackAdOpened`, `trackAdRevenue`, and `trackAdLoaded` — ad SDKs can
return null for the network name
- Bump iOS SDK `5.57.1` → `5.57.2` and Android SDK `9.20.1` → `9.20.2`

These are breaking changes for the experimental ad tracking API.

**Related PRs:**
- RevenueCat/purchases-android#3074
- RevenueCat/purchases-ios#6208
- RevenueCat/purchases-android#3076
- RevenueCat/purchases-ios#6229
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants