- To display banners on the app, the app uses a JSON file stores on S3.
- File location is: "https://app.arcadespro.com/Static/Campaigns/Banners/"
- The File name is based on this logic:
1. The app checks the player current country code based on the response from IP Stack
2. The app checks for the current used app language based on the supported languages we have
3. The app looks for a file name with the combination of = "banner_"+ 2 letter country code + "_" + 4 letters lang code + ".json"
For example: “banner_GB_en-US.json”
4. If the file is found on S3, the app will display the banners, if not the app will search for a combination of = "banner_"+ 2 letter country code + "_default.json"
For example: “banner_RS_default.json”
5. If the file is found on S3, the app will display the banners, if not the app will search for a file named "banner_default.json"
6. If the file is found on S3, the app will display the banners, if not the app will not display any banners
Creating the banners JSON
- The banner json file structure is:
- Banner id - the unique id of the banner
- Banner URL - the location of the image of the banner, for example: https://dev.arcadespro.com/Static/Campaigns/Banners/sr1.png
- Banner link - the link the app will open after clicking the banner, can be an link to a page inside the app or to an external website. for example: https://babylonpark.com
- LinkType - Type of the link. Can be DynamicLink / DeepLink / WebUrl
- Display time - the time in second to display the banner before moving to the next banner
- Example structure:
{ "Banners": [{ "BannerId": "[ID]", "BannerUrl": "[URL of the image of the banner, png, jpg or gif]", "BannerLink": "[Redirect URL for clicking on the banner]", "LinkType": "[Type of the link. Can be DynamicLink / DeepLink / WebUrl]", "DisplayTime": "[Time to display the banner in sec]" }] }
{ "Banners": [ { "BannerId": "2", "BannerUrl": "https://app.arcadespro.com/Static/Campaigns/Banners/50off_en.png", "BannerLink": "https://www.instagram.com/reel/Ck_irxLo2j6/?igshid=MDJmNzVkMjY=", "LinkType": "WebUrl", "DisplayTime": "14" },{ "BannerId": "3", "BannerUrl": "https://app.arcadespro.com/Static/Campaigns/Banners/events_en.png", "BannerLink": "https://babylonparkarcade.page.link/?apn=com.playlabels&ibi=org.playlabels.babylonarcade&isi=1438993034&link=https://arcadespro.com/OnlineGame/", "LinkType": "DynamicLink", "DisplayTime": "14" },{ "BannerId": "4", "BannerUrl": "https://app.arcadespro.com/Static/Campaigns/Banners/opening-hours_en.gif", "BannerLink": "babylonarcade://App/PhysicalStore", "LinkType": "DeepLink", "DisplayTime": "14" } ] }