Stay organized with collections
Save and categorize content based on your preferences.
Request
SetMarketingPreferenceRequest
Return value
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;}
[[["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"]],["Last updated 2025-01-30 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."]]],["The `SetMarketingPreferenceRequest` allows setting a user's marketing preference, requiring `UserInformation` and a boolean indicating consent to receive marketing. The `SetMarketingPreferenceResponse` mirrors this data. `UserInformation` details include `user_id`, `given_name`, `family_name`, `telephone`, and `email`; an `address` and `language_code` are optional. The feature is only available for certain integration types, which the user has to request.\n"]]