Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Track CSAI ad media failures #33

Merged
merged 3 commits into from
Apr 4, 2024
Merged

Conversation

daytime-em
Copy link
Contributor

No description provided.

@daytime-em daytime-em requested a review from a team as a code owner April 2, 2024 20:15
@daytime-em
Copy link
Contributor Author

Screenshot 2024-04-02 at 1 37 46 PM

Tests are passing locally

if (adData && adData[@"logData"]) {
NSDictionary *errorLog = (NSDictionary *)adData[@"logData"];
if (errorLog) {
if (errorLog[@"errorCode"] || errorLog[@"errorMessage"] || errorLog[@"type"]) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these keys coming from IMA? (If so wondering if we can add a doc link if there is one to help future us)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They come from IMA, yes but there's no public constants for them. I got these values by failing requests with proxyman then dumping events the IMASDKEvents to the logs

Copy link
Contributor Author

@daytime-em daytime-em Apr 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot 2024-04-04 at 3 29 17 PM

There's a log snippet of the keys above ⬆️

edit: also you can try yourself on the log-ad-events branch.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it!

Copy link
Contributor

@andrewjl-mux andrewjl-mux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@daytime-em daytime-em merged commit 045814b into releases/v0.12.0 Apr 4, 2024
1 check failed
@daytime-em daytime-em deleted the update/track-csai-fails branch April 4, 2024 22:46
@daytime-em daytime-em added the updates New (non-breaking) APIs label Apr 4, 2024
@github-actions github-actions bot mentioned this pull request Apr 5, 2024
daytime-em added a commit that referenced this pull request Apr 17, 2024
## Updates

* Track CSAI ad media failures (#33)

## Improvements

* Ima ads event data populated. (#30)
* fix: `adplay` and `adresponse` sent at incorrect time (#32)



Co-authored-by: Tomislav Kordic <[email protected]>
Co-authored-by: Emily Dixon <[email protected]>
Co-authored-by: GitHub <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
updates New (non-breaking) APIs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants