Skip to content

Commit b42ce47

Browse files
authored
[NOCSL] Sponsored Listings - add missing parameters function signature (#151)
1 parent 586737e commit b42ce47

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

library/src/main/java/io/constructor/core/ConstructorIo.kt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1522,9 +1522,11 @@ object ConstructorIo {
15221522
* @param searchTerm the term that results are displayed for, i.e. "Pumpkin"
15231523
* @param sectionName the section that the results came from, i.e. "Products"
15241524
* @param resultID the result ID of the search response that the click came from
1525+
* @param slCampaignId The campaign id of the clicked item
1526+
* @param slCampaignOwner The campaign owner of the clicked item
15251527
*/
1526-
fun trackSearchResultClick(itemName: String, customerId: String, searchTerm: String = Constants.QueryConstants.TERM_UNKNOWN, sectionName: String? = null, resultID: String? = null) {
1527-
var completable = trackSearchResultClickInternal(itemName, customerId, null, searchTerm, sectionName, resultID)
1528+
fun trackSearchResultClick(itemName: String, customerId: String, searchTerm: String = Constants.QueryConstants.TERM_UNKNOWN, sectionName: String? = null, resultID: String? = null, slCampaignId: String? = null, slCampaignOwner: String? = null) {
1529+
var completable = trackSearchResultClickInternal(itemName, customerId, null, searchTerm, sectionName, resultID, slCampaignId, slCampaignOwner)
15281530

15291531
disposable.add(completable.subscribeOn(Schedulers.io()).subscribe({}, {
15301532
t -> e("Search Result Click error: ${t.message}")
@@ -1544,9 +1546,11 @@ object ConstructorIo {
15441546
* @param searchTerm the term that results are displayed for, i.e. "Pumpkin"
15451547
* @param sectionName the section that the results came from, i.e. "Products"
15461548
* @param resultID the result ID of the search response that the click came from
1549+
* @param slCampaignId The campaign id of the clicked item
1550+
* @param slCampaignOwner The campaign owner of the clicked item
15471551
*/
1548-
fun trackSearchResultClick(itemName: String, customerId: String, variationId: String?, searchTerm: String = Constants.QueryConstants.TERM_UNKNOWN, sectionName: String? = null, resultID: String? = null) {
1549-
var completable = trackSearchResultClickInternal(itemName, customerId, variationId, searchTerm, sectionName, resultID)
1552+
fun trackSearchResultClick(itemName: String, customerId: String, variationId: String?, searchTerm: String = Constants.QueryConstants.TERM_UNKNOWN, sectionName: String? = null, resultID: String? = null, slCampaignId: String? = null, slCampaignOwner: String? = null) {
1553+
var completable = trackSearchResultClickInternal(itemName, customerId, variationId, searchTerm, sectionName, resultID, slCampaignId, slCampaignOwner)
15501554
disposable.add(completable.subscribeOn(Schedulers.io()).subscribe({}, {
15511555
t -> e("Search Result Click error: ${t.message}")
15521556
}))

0 commit comments

Comments
 (0)