content.accounts.update
PUT {{baseUrl}}/content/v2/:merchantId/accounts/:accountId?dryRun=<boolean>&$.xgafv=<string>&access_token=<string>&alt=<string>&callback=<string>&fields=<string>&key=<string>&oauth_token=<string>&prettyPrint=<boolean>"aUser=<string>&upload_protocol=<string>&uploadType=<string>
Updates a Merchant Center account. Any fields that are not provided are deleted from the resource.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
dryRun | string | Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any). | |
$.xgafv | string | V1 error format. | |
access_token | string | OAuth access token. | |
alt | string | Data format for response. | |
callback | string | JSONP | |
fields | string | Selector specifying which fields to include in a partial response. | |
key | string | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. | |
oauth_token | string | OAuth 2.0 token for the current user. | |
prettyPrint | string | Returns response with indentations and line breaks. | |
quotaUser | string | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. | |
upload_protocol | string | Upload protocol for media (e.g. "raw", "multipart"). | |
uploadType | string | Legacy upload protocol for media (e.g. "media", "multipart"). |
Request Body
{"adultContent"=>"<boolean>", "adwordsLinks"=>[{"adwordsId"=>"<uint64>", "status"=>"<string>"}, {"adwordsId"=>"<uint64>", "status"=>"<string>"}], "businessInformation"=>{"address"=>{"country"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "locality"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "postalCode"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "region"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "streetAddress"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, "customerService"=>{"email"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "phoneNumber"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "url"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, "phoneNumber"=>"<string>"}, "googleMyBusinessLink"=>{"gmbEmail"=>"<string>", "status"=>"<string>"}, "id"=>"<uint64>", "kind"=>"<string>", "name"=>"<string>", "reviewsUrl"=>"<string>", "sellerId"=>"<string>", "users"=>[{"admin"=>"<boolean>", "emailAddress"=>"<string>", "orderManager"=>"<boolean>", "paymentsAnalyst"=>"<boolean>", "paymentsManager"=>"<boolean>"}, {"admin"=>"<boolean>", "emailAddress"=>"<string>", "orderManager"=>"<boolean>", "paymentsAnalyst"=>"<boolean>", "paymentsManager"=>"<boolean>"}], "websiteUrl"=>"<string>", "youtubeChannelLinks"=>[{"channelId"=>"<string>", "status"=>"<string>"}, {"channelId"=>"<string>", "status"=>"<string>"}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"adultContent":"\u003cboolean\u003e","adwordsLinks":[{"adwordsId":"\u003cuint64\u003e","status":"\u003cstring\u003e"},{"adwordsId":"\u003cuint64\u003e","status":"\u003cstring\u003e"}],"businessInformation":{"address":{"country":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"locality":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"postalCode":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"region":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"streetAddress":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"customerService":{"email":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"phoneNumber":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"url":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"phoneNumber":"\u003cstring\u003e"},"googleMyBusinessLink":{"gmbEmail":"\u003cstring\u003e","status":"\u003cstring\u003e"},"id":"\u003cuint64\u003e","kind":"\u003cstring\u003e","name":"\u003cstring\u003e","reviewsUrl":"\u003cstring\u003e","sellerId":"\u003cstring\u003e","users":[{"admin":"\u003cboolean\u003e","emailAddress":"\u003cstring\u003e","orderManager":"\u003cboolean\u003e","paymentsAnalyst":"\u003cboolean\u003e","paymentsManager":"\u003cboolean\u003e"},{"admin":"\u003cboolean\u003e","emailAddress":"\u003cstring\u003e","orderManager":"\u003cboolean\u003e","paymentsAnalyst":"\u003cboolean\u003e","paymentsManager":"\u003cboolean\u003e"}],"websiteUrl":"\u003cstring\u003e","youtubeChannelLinks":[{"channelId":"\u003cstring\u003e","status":"\u003cstring\u003e"},{"channelId":"\u003cstring\u003e","status":"\u003cstring\u003e"}]}