Ajouter une préférence marketing pour l'utilisateur
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Ce tutoriel explique comment obtenir l'acceptation des e-mails marketing par les utilisateurs.
L'utilisation de cette fonctionnalité est soumise à la Politique du Centre d'actions concernant le marketing et les e-mails, à vos propres conditions d'utilisation et règles de confidentialité, ainsi qu'à toute réglementation applicable dans les régions dans lesquelles vous exercez votre activité. Si cette fonctionnalité n'est pas activée pour votre intégration, la case à cocher "Réserver avec le marketing Google" peut toujours s'afficher pour l'utilisateur.
Parcours utilisateur
En production, les utilisateurs voient la case à cocher pour le marketing (qui est décochée par défaut) dans chaque parcours de paiement, jusqu'à ce qu'ils l'activent. L'utilisateur restera abonné jusqu'à ce qu'il se désinscrive via le lien de désabonnement envoyé dans vos e-mails marketing, conformément à notre Règlement sur l'acceptation du marketing pour les partenaires.
La case à cocher ne s'affiche pas pour les utilisateurs lors du paiement sans connexion ni lorsqu'ils utilisent d'autres informations de compte.
Fonctionnement
L'utilisateur finalise le processus de paiement et peut cocher ou non la case d'acceptation des communications marketing.
Le centre d'actions appelle votre serveur de réservation pour finaliser le règlement (CreateBooking).
Le centre d'actions (selon la sélection de l'utilisateur) appelle la méthode SetMarketingPreference à POST /v3/SetMarketingPreference avec la sélection de l'utilisateur. Veuillez consulter le tableau ci-dessous.
Sélection de la case à cocher de l'utilisateur
SetMarketingPreferenceRequest
État des abonnements de l'utilisateur
Activer
user_to_receive_marketing défini sur true
L'utilisateur est désormais abonné (sauf si la double confirmation est requise).
Désactiver
user_to_receive_marketing défini sur false
L'utilisateur n'est pas abonné. Cette option n'est actuellement pas disponible dans l'interface utilisateur du Centre d'actions. Les utilisateurs doivent se désabonner via le lien de désabonnement figurant dans les e-mails marketing (le partenaire doit implémenter et inclure ce lien dans chaque e-mail marketing, comme indiqué dans le Règlement sur l'acceptation du marketing par les partenaires). La désactivation est gérée en dehors du Centre d'actions. Il n'est pas nécessaire d'en informer le Centre d'actions.
Aucune sélection
Aucune demande envoyée
L'état de l'abonnement le plus récent de l'utilisateur reste en vigueur. Si l'utilisateur n'a pas encore sélectionné l'état de l'abonnement (activé ou désactivé), l'état par défaut doit être "désactivé".
Exigences concernant la double activation
La double confirmation peut être requise en fonction de la zone géographique et du type d'e-mails envoyés par les partenaires. Dans ce cas, le partenaire doit envoyer à l'utilisateur un e-mail contenant un lien pour qu'il active l'option. Les utilisateurs ne doivent pas être considérés comme abonnés tant qu'ils n'ont pas terminé le processus de double confirmation.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/26 (UTC).
[null,null,["Dernière mise à jour le 2025/07/26 (UTC)."],[[["\u003cp\u003eThis tutorial explains how to integrate a marketing email opt-in feature into your Reservations End-to-End integration with Google.\u003c/p\u003e\n"],["\u003cp\u003eUsers can opt in or out of marketing emails via a checkbox during checkout, with the system defaulting to opted-out if no selection is made.\u003c/p\u003e\n"],["\u003cp\u003eThe Actions Center communicates the user's preference to your booking server through the \u003ccode\u003eSetMarketingPreference\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003ePartners may need to implement a double opt-in process where users confirm their subscription via email, depending on regional regulations and email types.\u003c/p\u003e\n"],["\u003cp\u003eFor existing integrations, enabling marketing emails requires contacting Google support through the provided form.\u003c/p\u003e\n"]]],["Users can opt in to marketing emails via a checkbox during checkout. The Actions Center then calls the `SetMarketingPreference` method, sending `true` or `false` based on the user's selection. No selection results in no request, maintaining the user's previous status. Opt-outs are handled via an unsubscribe link in partner marketing emails. Double opt-in may be needed, requiring users to confirm their subscription via email. Enabling marketing emails requires contacting the support team via the provided form.\n"],null,["# Add user marketing preference\n\n| **Note:** Please reach out to our support team via [this](https://actionscenter.google.com/support/cases/open) form if you are interested in enabling marketing emails for your existing Reservations End-to-End integration.\n\nThis tutorial walks through how to get user-opt in for marketing emails.\nUse of this feature is subject to\n[The Actions Center's marketing and email policy](/actions-center/verticals/reservations/e2e/policies/platform-policies#marketing-and-email-policy), your own terms of\nservice and privacy policy, and any applicable regulation of the areas which\nyou operate. If this feature is not enabled for your integration a Reserve\nwith Google marketing checkbox may still be shown to the user.\n\nUser flow\n---------\n\nIn production, users see the marketing checkbox (which will default to\nunchecked) in every checkout flow. until the user opts in. The user will remain opted in until\nthey opt out via the unsubscribe link sent in your marketing emails per our\n[Partner Marketing Opt-ins](/actions-center/verticals/reservations/e2e/policies/platform-policies#partner-marketing-opt-ins) policy.\nThe checkbox will not be shown for users during guest checkout or when they are using alternate\naccount information.\n| **Note:** In sandbox and production, the checkbox shows for every checkout flow for ease of development and testing.\n\nHow it works\n------------\n\n1. The user completes their checkout flow and may or may not check the marketing opt-in box\n2. The Actions Center will call your booking server to complete the checkout (`CreateBooking`)\n3. The Actions Center (depending on the selection of the user), calls the [SetMarketingPreference method](/actions-center/verticals/reservations/e2e/reference/booking-server-api-rest/e2e-methods/setmarketingpreference-method) to `POST /v3/SetMarketingPreference` with the user's selection. Please refer to the below table.\n\n| User checkbox selection | SetMarketingPreferenceRequest | User's subscriptions status |\n|-------------------------|--------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Opt in | `user_to_receive_marketing` set to `true` | User is now subscribed (unless [double opt-in](/actions-center/verticals/reservations/e2e/add-ons/add-marketing-preference#double-opt-in) is required). |\n| Opt out | `user_to_receive_marketing` set to `false` | User is unsubscribed. This option is currently not available on the Actions Center UI. Users should unsubscribe through the unsubscribe link in the marketing emails (the partner must implement and include this link in each marketing email as specified in [Partner Marketing Opt-ins policy](/actions-center/verticals/reservations/e2e/policies/platform-policies#partner-marketing-opt-ins)). Opt-out is handled outside of Actions Center and there is no need to inform the Actions Center of this change. |\n| No selection | No request sent | User's most recent subscription status remains in effect. If the user has not previously made a subscription status selection (opted in or out) then the default status should be \"opted out.\" |\n\n### Double opt-in requirements\n\nDouble opt-in may be required depending on the area and type of emails\npartners send. In this case, the partner must send the user an email with a\nlink to complete their opt-in. Users should not be considered subscribed\nuntil they complete the double opt-in process."]]