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

Who Me Too'd this topic

Avatar

Level 1

I am trying to integrate the recommendations in my mobile app for both Android and iOS. So far things that I have done are :-

1. created a recommendation in target, whose main purpose would be to give results based on the country.

bhavna18_0-1594788074960.png

This is what my criteria looks like : 

bhavna18_1-1594788133551.png 

and this is how I choose the key

bhavna18_2-1594788228766.png

And then in design, I am returning the json which looks something like this

bhavna18_3-1594788319722.png

Also I have uploaded a .csv file, which is used to feed the data.

bhavna18_4-1594788400925.png

 

And I am calling my recommendation as:

customParameters.put("enitity.id","mexico"); //hashmap has been created

TargetLocationRequest loadActivity = Target.createRequest("mobile_featured_destinations",null,customParameters);
Target.loadRequest(loadActivity, new Target.TargetCallback<String>() {

@Override
public void call(String callback) {
System.out.println("callback received from target: "+mboxName+ "is: "+callback);
}

Now the results that I am getting are same irrespective of whatever value I pass, as I am expecting that on passing "india", the recommendation order will change as mentioned in the feed, but it's not happening. Is there anything I am missing, or understanding and implementing it incorrectly. 

 

 

Who Me Too'd this topic