Adobe Target Delivery API for Mobile Personalization what parameters we should pass while calling API endpoint | Community
Skip to main content
Level 3
December 22, 2021
Solved

Adobe Target Delivery API for Mobile Personalization what parameters we should pass while calling API endpoint

  • December 22, 2021
  • 1 reply
  • 1096 views

Dear Team

 

Iin process to use Adobe Target Delivery APIs for Mobile Personalization. Below end point i am using it

 

https://<clientCode>.tt.omtrdc.net/rest/v1/delivery?client=<clientCode>&sessionId=d359234570e04f14e1faeeba02d6ab9914e'

 

 Body Part of request 

{"id": {
"tntId": "XX"
}, "property" : {
"token": "XX"
}, "context": {
"channel": "mobile"
}, "prefetch": {
"mboxes" : [ 

{ "name" : "OfferSlot1", "index" : 1 },

{ "name" : "OfferSlot2", "index" : 2 },
{ "name" : "OfferSlot3", "index" : 3 },
{ "name" : "OfferSlot4", "index" : 4 }
] } } }'

 

Note: XX  i have used masked values. Dont consider this as actual value i used in API call.

 

I am getting below error

{
"status": 400,
"message": "Errors: field - [context] - MobilePlatform should be provided only for mobile channel;"
}

 

I am not sure what should be done in this case?

 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Gaurav_Singh_02

@ajaym75199991  Please try passing the mobile platform details in the API request (Under "Conext") , something like : 

 "mobilePlatform": {
      "platformType": "ios",
      "deviceType": "phone",
      "deviceName": "iPhone12,5"
    }

This should help you with the API request. 

1 reply

Gaurav_Singh_02Adobe EmployeeAccepted solution
Adobe Employee
December 23, 2021

@ajaym75199991  Please try passing the mobile platform details in the API request (Under "Conext") , something like : 

 "mobilePlatform": {
      "platformType": "ios",
      "deviceType": "phone",
      "deviceName": "iPhone12,5"
    }

This should help you with the API request.