Stay organized with collections
Save and categorize content based on your preferences.
Display an Offerwall with Custom Choice
This example demonstrates how to display an Offerwall on your website and
present a custom choice to users. Learn more about Offerwall in the
Google Ad Manager help center.
Adding a custom choice lets you implement your own monetization solution
as an additional user selectable option within your Offerwall. For example, you
might let visitors purchase a subscription to access more content. For more
information about custom choice, see
Set up a "custom choice" user choice.
Usage notes
You must write and deploy your own implementation of the
Offerwall Custom Choice API to use the custom
choice feature. Enabling custom choice without a correct implementation will
result in Offerwall not displaying to end users.
The location and text of your custom choice is previewable in the
message builder in Privacy & messaging.
However, you can't preview the custom UI that displays after users select
your custom choice from Google Ad Manager. Your custom code defines the look
and behavior of the UI.
You can only add one custom choice to an Offerwall.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],[],[],[],null,["Display an Offerwall with Custom Choice\n\nThis example demonstrates how to display an Offerwall on your website and\npresent a custom choice to users. Learn more about Offerwall in the\n[Google Ad Manager help center](//support.google.com/admanager/answer/13860694).\n\nAdding a custom choice lets you implement your own monetization solution\nas an additional user selectable option within your Offerwall. For example, you\nmight let visitors purchase a subscription to access more content. For more\ninformation about custom choice, see\n[Set up a \"custom choice\" user choice](//support.google.com/admanager/answer/13566866).\n\nUsage notes\n\n- You must write and deploy your own implementation of the [Offerwall Custom Choice API](//developers.google.com/funding-choices/offerwall-custom-choice-docs) to use the custom choice feature. Enabling custom choice without a correct implementation will result in Offerwall not displaying to end users.\n- The location and text of your custom choice is previewable in the [message builder in Privacy \\& messaging](//support.google.com/admanager/answer/11897778). However, you can't preview the custom UI that displays after users select your custom choice from Google Ad Manager. Your custom code defines the look and behavior of the UI.\n- You can only add one custom choice to an Offerwall.\n\nSample implementation [View demo](https://googleads.github.io/google-publisher-tag-samples/offerwall-custom-choice/js/demo.html) This sample makes use of library features that are not fully supported when running in an iframe. To view a demo of this sample in a new window, click the **View demo** button above. \n\nJavaScript \n\nLoading... \n[Improve this sample](https://github.com/googleads/google-publisher-tag-samples/tree/main/dist/offerwall-custom-choice/js) [Report an issue](https://github.com/googleads/google-publisher-tag-samples/issues/new?labels=documentation&template=sample-feedback.md&title=Sample+feedback%3A+offerwall-custom-choice/js)\n\nTypeScript \n\nLoading... \n[Improve this sample](https://github.com/googleads/google-publisher-tag-samples/tree/main/dist/offerwall-custom-choice/ts) [Report an issue](https://github.com/googleads/google-publisher-tag-samples/issues/new?labels=documentation&template=sample-feedback.md&title=Sample+feedback%3A+offerwall-custom-choice/ts)"]]