Google 게시자 태그 (GPT) 라이브러리의 단일 요청 아키텍처 (SRA) 모드는 여러 광고 슬롯을 단일 광고 요청으로 일괄 처리합니다. 이렇게 하면 실적 이점이 있지만 경쟁 제외 및 로드블로킹이 적용되도록 하기 위해서도 필요합니다.
기본적으로 display() 또는 refresh()를 호출하기 전에 정의된 모든 광고 슬롯은 SRA 모드가 활성화되면 일괄 처리되고 함께 요청됩니다. 하지만 이 일괄 처리 동작을 더 세부적으로 제어해야 하는 경우가 있습니다.
예를 들어 특정 슬롯의 로드 우선순위를 지정하거나 단일 SRA 요청의 최대 슬롯 수를 초과하지 않도록 할 수 있습니다.
[null,null,[],[],[],null,["# Control SRA batching\n====================\n\nThe Google Publisher Tag (GPT) library's Single Request Architecture (SRA) mode\nbatches multiple ad slots into a single ad request. This provides performance\nbenefits, but is also necessary to guarantee that\n[competitive exclusions and roadblocks](https://support.google.com/admanager/answer/177277) are honored.\n\nBy default, all ad slots defined prior to calling `display()` or `refresh()`\nwill be batched and requested together when SRA mode is active. There are some\nsituations where you may want more control over this batching behavior, however.\nFor example, to [prioritize the loading of specific slots](https://developers.google.com/publisher-tag/guides/ad-best-practices#prioritize_important_ad_slots) or\nto avoid exceeding the\n[maximum number of slots in a single SRA request](https://developers.google.com/publisher-tag/guides/publisher-console-messages#TOO_MANY_SLOTS_IN_SRA_REQUEST).\n| **Warning:** Roadblocks are not guaranteed across multiple SRA batches.\n\nThis example demonstrates how to apply techniques for\n[controlling ad loading and refresh](https://developers.google.com/publisher-tag/guides/control-ad-loading) to SRA requests.\n\nSample implementation\n---------------------\n\n[View demo](https://googleads.github.io/google-publisher-tag-samples/control-sra-batching/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/control-sra-batching/js) [Report an issue](https://github.com/googleads/google-publisher-tag-samples/issues/new?labels=documentation&template=sample-feedback.md&title=Sample+feedback%3A+control-sra-batching/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/control-sra-batching/ts) [Report an issue](https://github.com/googleads/google-publisher-tag-samples/issues/new?labels=documentation&template=sample-feedback.md&title=Sample+feedback%3A+control-sra-batching/ts)"]]