Skip to main content

Android: Regions


Regions let you use different product attributes such as list price, sale price, catalog names, and availability for groups of users. Typically, these users are from one geographic area or region-for example, an international retailer could set up one region for each country where they do business. Regions can also be used more abstractly so long as the basic requirements are met.

For more details about regions, you can read to the Regions reference.


You can add .setRegionId()in your builder request. Here is an example for a Home request:

Placement placement = new Placement(Placement.PlacementType.HOME, "<placement name>");

  .setCallback(new Callback<PlacementResponseInfo>() {
      public void onResult(PlacementResponseInfo result) {          
          int index = 0;
          for(PlacementResponse placement : result.getPlacements()) {
              for(final RecommendedProduct recommendedProduct : placement.getRecommendedProducts()) {
                  // Add your view init logic. The actual implementation will depend on your code.
                  // In this example we will assume items are rendered as TableRows in a TableView.
                  TableRow row = new TableRow(context);
      public void onError(Error error) {
          // Use this code block to handle errors
          Log.e(getClass().getSimpleName(), "Error: " + error.getMessage());
  • Was this article helpful?