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 2024-10-31 UTC."],[[["This feature allows partners to set or update a user's marketing preference, indicating whether the user consents to receive marketing materials."],["`SetMarketingPreferenceRequest` message is used to send the user's information and marketing preference to the system."],["`SetMarketingPreferenceResponse` message confirms the action by returning the user's information and set marketing preference."],["This functionality is restricted and requires contacting your Actions Center contact for enablement."],["User information such as ID, name, contact details, and potentially language code are crucial components of the request and response."]]],["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"]]