on 2021 Apr 01 1:13 PM
Hi all,
We would like to activate a website personalization scenario, like the one Commerce Cloud uses when integrating with Marketing Cloud. But on a non-SAP webiste.
I've been looking for the API's that the Commerce integration calls.
On this page, I found sample code for "Getting campaigns for the current user with the specified filters":
https://<Server>:<Port>/sap/opu/odata/sap/CUAN_INITIATIVE_SRV/Initiatives/?$select=Name,Description,... eq '' and Search/TileFilterCategory eq '1' and (Filter/InteractionContactId eq '1d998c85cc3d5205' or Filter/InteractionContactId eq 'john.dempsey@hana.com') and (Filter/InteractionContactIdOrigin eq 'EMAIL' or Filter/InteractionContactIdOrigin eq 'COOKIE_ID')
But when I try to call that on my Marketing system, it returns no results (with an email address that I have verified that is part of multiple active campaigns).
When I just pull a list with
https://<Server>:<Port>/sap/opu/odata/sap/CUAN_INITIATIVE_SRV/Initiatives
I can see that
- Search/TileFilterCategory is always emtpy for all my campaigns
- Category/CategoryCode is mostly CME, for Automated Campaign.
But even when adjusting the filters in the url accordingly, I still get no results.
I can also see that this part of the reply (in my full list call) is also always empty:
<d:Filter m:type="CUAN_INITIATIVE_SRV.InitiativeFilterCT">
<d:InteractionContactIdOrigin></d:InteractionContactIdOrigin>
<d:InteractionContactId></d:InteractionContactId>
So of course, when filtering on those, it's logical there is no result.
But why would that be always empty in my system then...
And how could I correctly make a call from my websites, that can verify whether a specific website visitor, is part of a specific campaign/TG? (I am already receiving the contact data from my website with a custom origin: Z_WEBSITE).
Thanks for your insights!
Kr
Joyca
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
I think I found the mistake.
The email address I was testing with, contains a + sign.
I encoded the + sign, and now I do get results.
So this call does return some campaigns!
https://server/sap/opu/odata/sap/CUAN_INITIATIVE_SRV/Initiatives/?$select=Name,Description,Initiativ... eq 'CME' and Search/TileFilterCategory eq '' and (Filter/InteractionContactId eq '1d998c85cc3d5205' or Filter/InteractionContactId eq 'test.address.delaware%2B2@gmail.com') and (Filter/InteractionContactIdOrigin eq 'EMAIL' or Filter/InteractionContactIdOrigin eq 'COOKIE_ID')
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Joyca,
I've just tested the case mentioned by you on our demo environment and got the same results and behavior like you described.
Did you already check how a request from SAP Commerce looks like when it checks if a user is in a specific campaign to personalize the shop (Segmentation Scenario)? Maybe that would help to adapt it later on.
I will try to do some tests and come back to you if I could find out anything.
BR Tobias
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Tobias,
We don't have an active demo integration with commerce running currently, so I can't check what Commerce actually calls...
But on this topic someone described the same problem, describing that commerce does actually make those calls. https://answers.sap.com/questions/13021321/sap-marketing-campaign-restriction-from-smartedit.html
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.