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

SOLVED

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

Avatar

Level 2

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?

 

 

 

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

@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. 

View solution in original post

1 Reply

Avatar

Correct answer by
Employee Advisor

@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.