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

[Rendering API] Migrate from internal clickthrough browser to SFSafariViewController #796

Merged
merged 25 commits into from
Mar 14, 2023

Conversation

OlenaPostindustria
Copy link
Collaborator

@OlenaPostindustria OlenaPostindustria commented Mar 6, 2023

Closes #793

@OlenaPostindustria OlenaPostindustria marked this pull request as ready for review March 9, 2023 15:43
@@ -110,7 +110,6 @@ public class Prebid: NSObject {
public var creativeFactoryTimeoutPreRenderContent: TimeInterval = 30.0

//Controls whether to use PrebidMobile's in-app browser or the Safari App for displaying ad clickthrough content.
//For original API should be true
public var useExternalClickthroughBrowser = false
Copy link
Contributor

Choose a reason for hiding this comment

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

This property looks outdated now.

Rendering API. SDK opens an URL only in the SFSafariViewController, right? It means the imp.clickbrowser will always be 1.

Original API. This scenario assumes rendering in any ad server SDK. We can't know which browser will be used. But we should give publishers ability to clarify the behavior if needed. Since the Original API is mostly ised with GMA SDK, we can assume that the click URL will be opened in SFSafariViewController as well. So the default value should be 1 too.

The name is irrelevant anymore too. There is no attempt to open an URL in something external. Let's rename this property to something more OpenRTB-focused, like impClickbrowser with default value @1 and ability to customize it only for Original API integration. The comment to his property should point to the description of the respective field in the OpenRTB standard.

@@ -34,10 +33,9 @@
#import "PBMMacros.h"


@interface PBMClickthroughBrowserOpener ()
@interface PBMSafariOpener ()
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's rename to PBMSafariVCOpener. Because there is a difference between opening in the SFSafariViewController and the Safari application.

Copy link
Contributor

@YuriyVelichkoPI YuriyVelichkoPI left a comment

Choose a reason for hiding this comment

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

LGTM

@YuriyVelichkoPI YuriyVelichkoPI merged commit b049123 into master Mar 14, 2023
@YuriyVelichkoPI YuriyVelichkoPI deleted the migrate-to-sf-view-controller branch March 14, 2023 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Rendering API] Migrate from internal clickthrough browser to SFSafariViewController
2 participants