Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

As we're quickly taking off into 2023, our Adobe Target Product teams want to hear your top interest areas for learning opportunities and value realization with Adobe Target ~ to fill out the survey with your suggestions, experience, and feedback, follow the link to the right.
SOLVED

Adobe Target Recommendations using Server Side Delivery

Avatar

Level 8

Hi Team,

 

We are planning to use Adobe Target Recommendations using Server Side.

I am referring the help doc developer.adobe.com/target/before-administer/recs-api/fetch-recs-server-side-delivery-api/ to implement this. I need to check the json response of the recommendation activity

I have already defined the json design (non html) and form based recs activity using Adobe Target . I am facing issue with API body so wanted to check the exact structure (it is not clear in the help doc)

 

Any pointers  in this regard will be really helpful.

 

#serverside #recommendations

1 Accepted Solution

Avatar

Correct answer by
Level 3

Hi @LordOfTheRings 

It looks like your delivery api mbox response is coming through without issue (and you are able to see the mbox trace).

The response code NO_CONTENT indicates the issue most likely lies with your Recommendations Criteria.

 

I would review your criteria and maybe use a basic one like "most popular" (and enable backup recommendations) as a starting point and remove any inclusion/exclusion rules.

You might also want to review the Global Exclusions, I can see there are a bunch defined in your Mbox Trace that could be stopping you getting any Recommendations back.

 

There are some common causes documented here:

https://experienceleague.adobe.com/docs/target/using/recommendations/recommendations-faq/recommendat... 

View solution in original post

3 Replies

Avatar

Level 3

Hi @LordOfTheRings 

 

Assuming you have created a Recommendations Activity with the form based composer that returns a JSON recommendations design as outlined on that page.

 

Is your issue related to formatting the body of the /delivery API call? (in JSON format)

This page contains some good examples:
https://developer.adobe.com/target/implement/delivery-api/  

Avatar

Level 8

Thank you @Jacob_T1  @perrin_ennen  thank you for your response.

 

I have used this request body alongwith trace:

{
    "id": {
        "tntId""fa7a61803b44410a80d412fe47646090.31_0"
    },
    "context": {
        "channel""web",
        "address": {
            "url""https://www.abc.com/default"
        },
        "screen": {
            "width"1536,
            "height"864
        }
    },
     "property" : {
        "token""c72849c6-2a3c-8a3b-xx00-12345baf1234"
      },
    "trace": {
        "authorizationToken""685dfad4-951b-4d93-a5dc-e9a6af26327a"
    },
    "execute": {
        "mboxes"
        [
            {
            "name""recommendationMbox",
            "index"1
        }
        ]
    }
}

but getting no recommended entities under the option but got this :

 
<textarea rows='20' cols='50'>Adobe Target Recommendations DebuggerThis debugger is only appearing for your specific sessionTo stop showing this debugger, append ?mboxTrace=disable or&mboxTrace=disable to your URL[ { "Served Recommendations" : { "Requested Recommendations" : 3, "Criteria Recommendations" : [ ], "Backup Recommendations" : [ ] }}, { "Breakdown of Recommendations" : { "Recommendations due to Criterion Criteria based on adobeQA" : [ ], "Recommendations due to Backup" : [ ] }}, { "productRequest for criterion - Criteria based on adobeQA" : { "recUnitId" : 212344, "currentId" : "tnt", "previousIds" : [ ], "purchasedIds" : [ ], "excludedIds" : [ ], "environmentId" : 575 }}, { "Catalog Inclusions" : { "catalogrules" : { "filters" : [ { "attribute" : "offerPropertyType", "operation" : "contains", "values" : [ "Single Property Offer" ] } ] } }}, { "Criteria Inclusions" : { "inclusionrules" : { "filters" : [ { "operation" : "minInventory", "values" : [ 1 ] } ] } }}, { "Global Exclusions" : { "exclusionrules" : { "filters" : [ { "type" : "EXCLUSION", "attribute" : "name", "operation" : "doesNotContain", "values" : [ "a", "e", "i", "o", "u", "y", "A", "E", "I", "O", "U" ] }, { "type" : "EXCLUSION", "attribute" : "id", "operation" : "contains", "values" : [ "BCNRZ" ] }, { "type" : "EXCLUSION", "attribute" : "id", "operation" : "contains", "values" : [ "BCNRZ", "bcnrz", "LISRZ", "lisrz", "DOHSQ", "dohsq", "NASAK", "NASCT", "NASCV", "NASRT", "NASBT" ] } ] } }}, { "Recommendations Environment" : { "environmentId" : 575 }}, { "criterion" : { "settings" : { "name" : "Criteria based on adobeQA", "displayTitle" : "NA", "datasource" : "mbox", "dayCount" : 1, "type" : "customAlgorithm", "client" : "marriottinternationa", "keyAggregationType" : "noAggregate", "groups" : [ ], "backupDisabled" : false, "backupInclusionFilteringEnabled" : true, "partialTemplateAllowed" : true, "excludePurchases" : true }, "inclusionrules" : { "filters" : [ { "operation" : "minInventory", "values" : [ 1 ] } ] }, "rankingRules" : { "filters" : [ ] } }}, { "design" : { "designId" : "41689", "name" : "JSON 3 Entity Names Only", "design entity count" : "3", "script" : "{{\\"property1\\":\\"$entity1.name\\"},{\\"property2\\":\\"$entity2.name\\"},{\\"property3\\":\\"$entity3.name\\"}}" }}, { "recommendation" : { "key[key=tnt, algorithm - criterion Criteria based on adobeQA]erCandidates" : "[]", "key[key=tnt, algorithm - criterion Criteria based on adobeQA]excluded" : [ ], "key[key=tnt, algorithm - criterion Criteria based on adobeQA]recommended" : [ ], "key[key=tnt, algorithm - criterion Criteria based on adobeQA]missing" : [ ], "key[backup]erCandidates" : "[]", "key[backup]excluded" : [ ], "key[backup]recommended" : [ ], "key[backup]missing" : [ ], "recommendations" : [ ] }}, { "response" : { "node" : "r3edge-1", "status" : { "code" : "NO_CONTENT", "details" : "" } }} ]</textarea>
 
does it mean system doesnt have any entities to recommend thats why it showed this ?
 
Baically I need json response for the recommendation delivery API and entity mbox are still not implemented on the category and entities pages. 
Can I still expect my recommendation activity to return the items ?
 

Avatar

Correct answer by
Level 3

Hi @LordOfTheRings 

It looks like your delivery api mbox response is coming through without issue (and you are able to see the mbox trace).

The response code NO_CONTENT indicates the issue most likely lies with your Recommendations Criteria.

 

I would review your criteria and maybe use a basic one like "most popular" (and enable backup recommendations) as a starting point and remove any inclusion/exclusion rules.

You might also want to review the Global Exclusions, I can see there are a bunch defined in your Mbox Trace that could be stopping you getting any Recommendations back.

 

There are some common causes documented here:

https://experienceleague.adobe.com/docs/target/using/recommendations/recommendations-faq/recommendat...