컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
이벤트 기반 광고 요청
Google 게시자 태그 라이브러리를 사용하여 이벤트를 기반으로 광고를 요청할 수 있습니다. 아래 예에서는 사용자가 버튼을 클릭할 때까지 새 광고가 요청되거나 렌더링되지 않습니다.
샘플 구현
데모 보기
[null,null,[],[],[],null,["# Event-based ad requests\n=======================\n\nYou can request ads based on events using the Google Publisher Tag library. In\nthe example below, a new ad is not requested or rendered until the user clicks a\nbutton.\n\nSample implementation\n---------------------\n\n[View demo](https://googleads.github.io/google-publisher-tag-samples/event-based-requests/js/demo.html) \n\n### JavaScript\n\nLoading...\n----------\n\nLoading...\n----------\n\n[Improve this sample](https://github.com/googleads/google-publisher-tag-samples/tree/main/dist/event-based-requests/js) [Report an issue](https://github.com/googleads/google-publisher-tag-samples/issues/new?labels=documentation&template=sample-feedback.md&title=Sample+feedback%3A+event-based-requests/js)\n\n### TypeScript\n\nLoading...\n----------\n\nLoading...\n----------\n\n[Improve this sample](https://github.com/googleads/google-publisher-tag-samples/tree/main/dist/event-based-requests/ts) [Report an issue](https://github.com/googleads/google-publisher-tag-samples/issues/new?labels=documentation&template=sample-feedback.md&title=Sample+feedback%3A+event-based-requests/ts)"]]