透過集合功能整理內容
你可以依據偏好儲存及分類內容。
顯示非頁面內廣告
這個範例會使用 Google 發布商廣告代碼媒體庫顯示非頁內廣告。如要進一步瞭解網頁外廣告,請前往 Google Ad Manager 說明中心。
實作範例
觀看示範影片
[null,null,[],[],[],null,["# Display an out-of-page ad\n=========================\n\nThis example displays an out-of-page ad using the Google Publisher Tag library.\nLearn more about out-of-page ads in the\n[Google Ad Manager help center](https://support.google.com/admanager/answer/6088046).\n\nSample implementation\n---------------------\n\n[View demo](https://googleads.github.io/google-publisher-tag-samples/display-out-of-page-ad/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/display-out-of-page-ad/js) [Report an issue](https://github.com/googleads/google-publisher-tag-samples/issues/new?labels=documentation&template=sample-feedback.md&title=Sample+feedback%3A+display-out-of-page-ad/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/display-out-of-page-ad/ts) [Report an issue](https://github.com/googleads/google-publisher-tag-samples/issues/new?labels=documentation&template=sample-feedback.md&title=Sample+feedback%3A+display-out-of-page-ad/ts)"]]