-
Notifications
You must be signed in to change notification settings - Fork 103
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
Start buy flow if loading for rewarded ads fails #3254
Start buy flow if loading for rewarded ads fails #3254
Conversation
…js into rewarded_ad_handle_failure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also add a bug ID for future reference?
if (this.params_.onCancel) { | ||
this.params_.onCancel(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: replace with this.params_.onCancel?.();
if (this.params_.monetizationFunction) { | ||
this.params_.monetizationFunction(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar here, use optional chaining to invoke the function.
@@ -292,7 +292,7 @@ const REWARDED_AD_CSS = css` | |||
color: #202124; | |||
grid-column: 2; | |||
grid-row: 1; | |||
line-break: anywhere; | |||
line-break: auto; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this unrelated changed meant to be included?
Applied the changed and updated the description with a bug. |
In cases where we cannot init gpt.js we will mark rewarded ads as dismissed and show a buy flow.
b/305721069