When set, it states that the accepted TermsOfService is only valid until the end of this date (in UTC). A new one must be accepted before then. The information of the required TermsOfService is found in the Required message.
The account where the acceptance was recorded. This can be the account
itself or, in the case of subaccounts, the MCA account.
Returns
Type
Description
string
setAcceptedBy
The account where the acceptance was recorded. This can be the account
itself or, in the case of subaccounts, the MCA account.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getValidUntil
When set, it states that the accepted
TermsOfService
is only valid until the end of this date (in UTC). A new one must be
accepted before then. The information of the required
TermsOfService
is found in the Required message.
When set, it states that the accepted
TermsOfService
is only valid until the end of this date (in UTC). A new one must be
accepted before then. The information of the required
TermsOfService
is found in the Required message.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Shopping Merchant Accounts V1beta Client - Class Accepted (1.0.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0 (latest)](/php/docs/reference/shopping-merchant-accounts/latest/V1beta.Accepted)\n- [0.10.0](/php/docs/reference/shopping-merchant-accounts/0.10.0/V1beta.Accepted)\n- [0.9.1](/php/docs/reference/shopping-merchant-accounts/0.9.1/V1beta.Accepted)\n- [0.8.0](/php/docs/reference/shopping-merchant-accounts/0.8.0/V1beta.Accepted)\n- [0.7.0](/php/docs/reference/shopping-merchant-accounts/0.7.0/V1beta.Accepted)\n- [0.6.0](/php/docs/reference/shopping-merchant-accounts/0.6.0/V1beta.Accepted)\n- [0.5.0](/php/docs/reference/shopping-merchant-accounts/0.5.0/V1beta.Accepted)\n- [0.4.0](/php/docs/reference/shopping-merchant-accounts/0.4.0/V1beta.Accepted)\n- [0.3.3](/php/docs/reference/shopping-merchant-accounts/0.3.3/V1beta.Accepted)\n- [0.2.0](/php/docs/reference/shopping-merchant-accounts/0.2.0/V1beta.Accepted)\n- [0.1.0](/php/docs/reference/shopping-merchant-accounts/0.1.0/V1beta.Accepted) \n| **Beta**\n|\n|\n| This library is covered by the [Pre-GA Offerings Terms](/terms/service-terms#1)\n| of the Terms of Service. Pre-GA libraries might have limited support,\n| and changes to pre-GA libraries might not be compatible with other pre-GA versions.\n| For more information, see the\n[launch stage descriptions](/products#product-launch-stages). \nReference documentation and code samples for the Google Shopping Merchant Accounts V1beta Client class Accepted.\n\nDescribes the accepted terms of service.\n\nGenerated from protobuf message `google.shopping.merchant.accounts.v1beta.Accepted`\n\nNamespace\n---------\n\nGoogle \\\\ Shopping \\\\ Merchant \\\\ Accounts \\\\ V1beta\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getTermsOfService\n\nThe accepted\n[termsOfService](/php/docs/reference/shopping-merchant-accounts/latest/google.shopping.merchant.accounts.v1main.TermsOfService).\n\n### setTermsOfService\n\nThe accepted\n[termsOfService](/php/docs/reference/shopping-merchant-accounts/latest/google.shopping.merchant.accounts.v1main.TermsOfService).\n\n### getAcceptedBy\n\nThe account where the acceptance was recorded. This can be the account\nitself or, in the case of subaccounts, the MCA account.\n\n### setAcceptedBy\n\nThe account where the acceptance was recorded. This can be the account\nitself or, in the case of subaccounts, the MCA account.\n\n### getValidUntil\n\nWhen set, it states that the accepted\n[TermsOfService](/php/docs/reference/shopping-merchant-accounts/latest/google.shopping.merchant.accounts.v1main.TermsOfService)\nis only valid until the end of this date (in UTC). A new one must be\naccepted before then. The information of the required\n[TermsOfService](/php/docs/reference/shopping-merchant-accounts/latest/google.shopping.merchant.accounts.v1main.TermsOfService)\nis found in the [Required](/php/docs/reference/shopping-merchant-accounts/latest/Required) message.\n\n### hasValidUntil\n\n### clearValidUntil\n\n### setValidUntil\n\nWhen set, it states that the accepted\n[TermsOfService](/php/docs/reference/shopping-merchant-accounts/latest/google.shopping.merchant.accounts.v1main.TermsOfService)\nis only valid until the end of this date (in UTC). A new one must be\naccepted before then. The information of the required\n[TermsOfService](/php/docs/reference/shopping-merchant-accounts/latest/google.shopping.merchant.accounts.v1main.TermsOfService)\nis found in the [Required](/php/docs/reference/shopping-merchant-accounts/latest/Required) message."]]