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;}
[null,null,["Last updated 2025-05-20 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eSetMarketingPreferenceRequest\u003c/code\u003e allows partners to set a user's marketing preference, indicating whether they consent to receive marketing materials.\u003c/p\u003e\n"],["\u003cp\u003eThis functionality requires specific integration types and partners should contact their Actions Center contact for enablement.\u003c/p\u003e\n"],["\u003cp\u003eThe request and response messages include the user's personal information and their marketing preference status (\u003ccode\u003euser_to_receive_marketing\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eUserInformation\u003c/code\u003e contains details like user ID, name, address, phone number, email, and potentially language code if allowed by Reserve with Google.\u003c/p\u003e\n"]]],["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"],null,["# SetMarketingPreference method\n\n| **Note:** This feature is only available for certain integration types. If you wish to enable this, please reach out to your Actions Center contact.\n\n**Request**\n\nSetMarketingPreferenceRequest\n\n**Return value**\n\nSetMarketingPreferenceResponse \n\n```scilab\n// Request to set the partner marketing preference for a user.\nmessage SetMarketingPreferenceRequest {\n // Personal information of the user setting a marketing preference (required)\n UserInformation user_information = 1;\n\n // Whether the specified user has consented to receive marketing (required)\n bool user_to_receive_marketing = 2;\n}\n\n// Response with the user's set marketing preference\nmessage SetMarketingPreferenceResponse {\n // Personal information of the user setting a marketing preference (required)\n UserInformation user_information = 1;\n\n // Whether the specified user has consented to receive marketing (required)\n bool user_to_receive_marketing = 2;\n}\n``` \n\n```carbon\n// Personal information about the person taking action (e.g. making a\n// booking, an order, or creates a parking session).\nmessage UserInformation {\n\n // Unique ID of the user to the partner, chosen by Reserve with Google.\n // (required)\n string user_id = 1;\n\n // Given name of the user (maximum 40 characters) (required)\n string given_name = 2;\n\n // Family name of the user (maximum 40 characters) (required)\n string family_name = 3;\n\n // Address of the user (optional)\n PostalAddress address = 4;\n\n // Phone number of the user (required)\n // Consistent with the international definition in ITU-T E.123 recommendation.\n // However, local conventions are also followed, such as using '-' instead of\n // a space as separator. For example, a phone number in the US can be\n // written as '+1 415-736-0000'\n string telephone = 5;\n\n // Email address of the user (required except for waitlists)\n string email = 6;\n\n // User's language code, in IETF BCP 47 format. It is sent only if a partner\n // is allowed to use this feature. Please contact Reserve with Google team\n // to be added to the allowlist and receive this code. (optional)\n string language_code = 7;\n\n reserved 8;\n}\n```"]]