Skip to main content

(Optional) External ID's Support in Bridge

External ID and Secondary ID

info

Outbrain supports two custom values that can be used by the publisher for reporting purposes. Make sure to set the extId or extSecondaryId params before calling sfWidget.configure() method. External ID in the Bridge is supported from SDK v4.26.0.

Step 1

In the "Article Activity" the app developer should implement the SFWebViewParamsDelegate interface which is basically:

public interface SFWebViewParamsDelegate {
String getExternalId(); //Optional
String getExternalSecondaryId(); //Optional
String getPubImpId(); //Optional
}

For example:

@Override
public String getExternalId() {
return "value111";
}

@Override
public String getExternalSecondaryId() {
return "value222";
}

@Override
public String getPubImpId() {
return "value333";
}

Step 2

Before initializing the widget, the app developer should set the delegate as detailed below:

SFWebViewWidget.setParamsDelegate(this);

Publisher Imp id in Bridge

Outbrain Publisher Imp id in Bridge

info

Outbrain uses the odb parameter pubImpId to get the session ID/ click identifier from the publisher.

warning

OBPubImp ID in the Bridge is supported from SDK v4.30.4.

Step 1

In the "Article Activity" the app developer should implement the SFWebViewParamsDelegate interface which is basically:

public interface SFWebViewParamsDelegate {
String getExternalId(); //Optional
String getExternalSecondaryId(); //Optional
String getPubImpId();
}

For example:

@Override
public String getPubImpId() {
return "exampleID";
}

Step 2

Before initializing the widget, the app developer should set the delegate as detailed below:

SFWebViewWidget.setParamsDelegate(this);