Optional. When set, it states that the acceptedTermsOfServiceis only valid until the end of this date (in UTC). A new one must be accepted before then. The information of the requiredTermsOfServiceis found in theRequiredmessage.
Required. The account where the acceptance was recorded. This can be the
account itself or, in the case of subaccounts, the advanced account.
Returns
Type
Description
string
setAcceptedBy
Required. The account where the acceptance was recorded. This can be the
account itself or, in the case of subaccounts, the advanced account.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getValidUntil
Optional. When set, it states that the acceptedTermsOfServiceis only
valid until the end of this date (in UTC). A new one must be accepted
before then. The information of the requiredTermsOfServiceis found in
theRequiredmessage.
Optional. When set, it states that the acceptedTermsOfServiceis only
valid until the end of this date (in UTC). A new one must be accepted
before then. The information of the requiredTermsOfServiceis found in
theRequiredmessage.
[[["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 V1 Client - Class Accepted (1.0.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0 (latest)](/php/docs/reference/shopping-merchant-accounts/latest/V1.Accepted)\n- [0.10.0](/php/docs/reference/shopping-merchant-accounts/0.10.0/V1.Accepted)\n- [0.9.1](/php/docs/reference/shopping-merchant-accounts/0.9.1/V1.Accepted)\n- [0.8.0](/php/docs/reference/shopping-merchant-accounts/0.8.0/V1.Accepted)\n- [0.7.0](/php/docs/reference/shopping-merchant-accounts/0.7.0/V1.Accepted)\n- [0.6.0](/php/docs/reference/shopping-merchant-accounts/0.6.0/V1.Accepted)\n- [0.5.0](/php/docs/reference/shopping-merchant-accounts/0.5.0/V1.Accepted)\n- [0.4.0](/php/docs/reference/shopping-merchant-accounts/0.4.0/V1.Accepted)\n- [0.3.3](/php/docs/reference/shopping-merchant-accounts/0.3.3/V1.Accepted)\n- [0.2.0](/php/docs/reference/shopping-merchant-accounts/0.2.0/V1.Accepted)\n- [0.1.0](/php/docs/reference/shopping-merchant-accounts/0.1.0/V1.Accepted) \nReference documentation and code samples for the Google Shopping Merchant Accounts V1 Client class Accepted.\n\nDescribes the [accepted terms of\nservice](https://developers.google.com/merchant/api/guides/accounts/create-and-configure#accept_the_merchant_center_terms_of_service).\n\nGenerated from protobuf message `google.shopping.merchant.accounts.v1.Accepted`\n\nNamespace\n---------\n\nGoogle \\\\ Shopping \\\\ Merchant \\\\ Accounts \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getTermsOfService\n\nRequired. The accepted\n[termsOfService](/php/docs/reference/shopping-merchant-accounts/latest/V1.TermsOfService).\n\n### setTermsOfService\n\nRequired. The accepted\n[termsOfService](/php/docs/reference/shopping-merchant-accounts/latest/V1.TermsOfService).\n\n### getAcceptedBy\n\nRequired. The account where the acceptance was recorded. This can be the\naccount itself or, in the case of subaccounts, the advanced account.\n\n### setAcceptedBy\n\nRequired. The account where the acceptance was recorded. This can be the\naccount itself or, in the case of subaccounts, the advanced account.\n\n### getValidUntil\n\nOptional. When set, it states that the accepted `TermsOfService` is only\nvalid until the end of this date (in UTC). A new one must be accepted\nbefore then. The information of the required `TermsOfService` is found in\nthe `Required` message.\n\n### hasValidUntil\n\n### clearValidUntil\n\n### setValidUntil\n\nOptional. When set, it states that the accepted `TermsOfService` is only\nvalid until the end of this date (in UTC). A new one must be accepted\nbefore then. The information of the required `TermsOfService` is found in\nthe `Required` message."]]