Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Requête
SetMarketingPreferenceRequest
Valeur renvoyée
SetMarketingPreferenceResponse
// Request to set the partner marketing preference for a user.messageSetMarketingPreferenceRequest{// Personal information of the user setting a marketing preference (required)UserInformationuser_information=1;// Whether the specified user has consented to receive marketing (required)booluser_to_receive_marketing=2;}// Response with the user's set marketing preferencemessageSetMarketingPreferenceResponse{// Personal information of the user setting a marketing preference (required)UserInformationuser_information=1;// Whether the specified user has consented to receive marketing (required)booluser_to_receive_marketing=2;}
// Personal information about the person taking action (e.g. making a// booking, an order, or creates a parking session).messageUserInformation{// Unique ID of the user to the partner, chosen by Reserve with Google.// (required)stringuser_id=1;// Given name of the user (maximum 40 characters) (required)stringgiven_name=2;// Family name of the user (maximum 40 characters) (required)stringfamily_name=3;// Address of the user (optional)PostalAddressaddress=4;// Phone number of the user (required)// Consistent with the international definition in ITU-T E.123 recommendation.// However, local conventions are also followed, such as using '-' instead of// a space as separator. For example, a phone number in the US can be// written as '+1 415-736-0000'stringtelephone=5;// Email address of the user (required except for waitlists)stringemail=6;// User's language code, in IETF BCP 47 format. It is sent only if a partner// is allowed to use this feature. Please contact Reserve with Google team// to be added to the allowlist and receive this code. (optional)stringlanguage_code=7;reserved8;}
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 2024/11/26 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2024/11/26 (UTC)."],[[["The `SetMarketingPreferenceRequest` allows partners to set a user's marketing preference, indicating whether they consent to receive marketing materials."],["This functionality requires specific integration types and partners should contact their Actions Center contact for enablement."],["The request and response messages include the user's personal information and their marketing preference status (`user_to_receive_marketing`)."],["`UserInformation` contains details like user ID, name, address, phone number, email, and potentially language code if allowed by Reserve with Google."]]],[]]