fix: GAM 광고 슬롯 배치 초기화로 빈 광고 해결#336
Merged
Merged
Conversation
added 2 commits
March 7, 2026 20:24
SPA 환경에서 각 슬롯이 개별적으로 enableServices()를 호출하던 방식을 배치 매니저 패턴으로 변경하여 광고가 빈 자리로 나오는 문제 해결. - 전역 BatchManager 싱글톤으로 슬롯 등록 수집 - 50ms 디바운스로 같은 렌더 사이클 슬롯 배치 처리 - enableServices() 1회만 호출 (PHP enableSingleRequest와 동일) - PHP GAM 설정과 광고 사이즈/반응형 매핑 동기화
- board-content → banner-responsive (PHP와 동일, article→sub 단위 변경) - board-content-bottom → banner-large (PHP와 동일) - board-list-head → banner-medium (PHP와 동일) - board-before-comments position 매핑 추가 - banner-medium, banner-large-728, banner-horizontal-728 타입 추가
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
enableServices()를 호출하던 방식을 전역 배치 매니저 패턴으로 변경enableSingleRequest()동작과 동일하게 한 번에 모든 슬롯 처리Changes
BatchManager싱글톤으로 슬롯 등록 수집 (50ms 디바운스)enableServices()1회만 호출하도록 변경display()+refresh()를 배치 단위로 실행Test plan