Advertisements(Ads) in Group Landing Page and Homepage
Description / Background
We are implementing a new feature on the group landing page setting. Currently, the advertisement menu on the admin dashboard is only for the static homepage section. Therefore, if there are restaurant ads on the homepage, it is not possible to create an advertisement form from the menu.
To address this, we are creating a new checklist for ads on the group landing page setting. This will allow the admin to add restaurant ads on the group landing page and create a homepage section for that group landing page.
This feature enhances the admin's ability to promote restaurant ads more flexibly. Previously, the limitation to static homepage ads reduced the visibility of ads on group landing pages.
Glossary
Private (https://app.clickup.com/9003122396/docs/8ca1fpw-35796/8ca1fpw-41516)
Objectives
- User can see the ad label on the homepage section
- User can see the ad label on the group landing page section
- Admin can set the ad restaurant for group landing page
Scope
Add ads settings on the Group Landing Page(Admin Dashboard)
How to Set Up Ads Restaurant on the Homepage
- Open Admin Dashboard
- Go to Group Landing Page and create a new group landing page
- Select 'Rank Manually' as the outlet ranking option.
- Choose the specific outlet and assign its rank.
- Check the Ads option, then set the ad start and end dates.
_in_Group_Landing_Page_and_Homepage_20250827155109_image_836ed182_2131.png)
- Open Homepage Setting
- Add new Homepage setting
- Pick GroupLandingPage on the Group Type ➝ Pick the Group Landing Page that you want to show on the homepage.
_in_Group_Landing_Page_and_Homepage_20250827155109_image_283ba176_8676.png)
Sequence Diagram / Flow
-
ERD
-
Backend Implementation
- Add new ads checkbox, ads start date and ads end date date picker on edit group landing page
- Add group landing page on group type on homepage section
- Add is_ads, ads_start_date, ads_end_date to hh search service
[
github.com
https://github.com/hungryhub-team/hh-search/pull/69
](https://github.com/hungryhub-team/hh-search/pull/69)
[
github.com
https://github.com/hungryhub-team/hh-server/pull/6163
](https://github.com/hungryhub-team/hh-server/pull/6163)
Frontend Implementation
[
github.com
https://github.com/hungryhub-team/hh-pegasus/pull/1225
](https://github.com/hungryhub-team/hh-pegasus/pull/1225)
PRD & Task
No PRD
Private (https://app.clickup.com/t/86cwm14f8)
Design
API Blueprint
| Method | Path | URL | Description | Payload |
|---|---|---|---|---|
New Query
-
DB Schema / Database Migration
Add column :is_ads, :ads_start_date, ads_end_date in to glp_restaurant_ranks
{
"is_ads": true,
"ads_start_date": "2024-01-01",
"ads_end_date": "2024-01-31"
}
Improvement:
| Feature Name | Date | What Changed | Description |
|---|---|---|---|