How to get realtime AAM segments in Targets for Mobile apps or Target API

how to make sure you get real-time audience segments for target (SDK or API implementation)?

If you are using frequency capping for any target campaigns how to make sure you always get real-time segment not the cached segment.

By passing a random number to

requestLocation > impressionId

will make sure real-time segment is delivered with frequency updated

"requestLocation": {
          "impressionId": "1553229996434",

When you the frequency capping rules in AAM You want to make sure campaigns are remove after fixed no of impression server caches the segment you will not get correct count from AAM. This make sure frequency is always UpToDate.

This project is maintained by shafiiub