cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Question to Recommendation Result Scope

torsten-mittag
Explorer
797

Hello community,

I'm acutally wondering about the Result Scope of a recommendation (hash).

By requesting any Recommendation results via <MarketingCloudURL>/sap/opu/odata/sap/PROD_RECO_RUNTIME_SRV/ I get a scenario hash for optimized recommendations. This hash information also contains the expiry date and a result scope.

Example:

                    <content type="application/xml">
                        <m:properties>
                            <d:ScenarioId>MY_OWN_RECO</d:ScenarioId>
                            <d:HashId>3C295048B69761E0E4592B69223B4F4A</d:HashId>
                            <d:ExpiresOn>2021-06-18T06:31:48.8311180</d:ExpiresOn>
                            <d:ResultScope>G</d:ResultScope>
                        </m:properties>
                    </content>

In all my tests the result scope was G for Generic Reco.

In the standard SAP Commerce intergration these generic recommendations are used for every customer and are displayed fo every customer.

But in our use case we using a recommendation based on "Recently Purchased Items". So it's necessary that the recommendation results are only displayed for the correct user. Therfore the result scope must be R for Restricted.

Is there any way to define the result scope of a recommendation scenario in the SAP Marketing Cloud?

I would be grateful for any help.

Best Regards

Torsten

Accepted Solutions (1)

Accepted Solutions (1)

torsten-mittag
Explorer
0 Likes

Resolution:

Unfortunately, no further information on this topic can be found. And since it is not clear when a recommendation from the SAP Marketing Cloud is marked as Generic or Restricted, we decided to adapt the source code in SAP Commerce.

When parsing the response from the SAP Marketing Cloud, we check the Recommendation Scenario ID, and as soon as it is an ID that the shop should act as Restricted, we write an 'R' in the Result Scope.

Answers (0)