content.accounts.custombatch
POST {{baseUrl}}/content/v2/accounts/batch?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>
Retrieves, inserts, updates, and deletes multiple Merchant Center (sub-)accounts in a single request.
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
{"entries"=>[{"account"=>{"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>"}]}, "accountId"=>"<uint64>", "batchId"=>"<uint32>", "force"=>"<boolean>", "labelIds"=>["<uint64>", "<uint64>"], "linkRequest"=>{"action"=>"<string>", "linkType"=>"<string>", "linkedAccountId"=>"<string>"}, "merchantId"=>"<uint64>", "method"=>"<string>", "overwrite"=>"<boolean>"}, {"account"=>{"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>"}]}, "accountId"=>"<uint64>", "batchId"=>"<uint32>", "force"=>"<boolean>", "labelIds"=>["<uint64>", "<uint64>"], "linkRequest"=>{"action"=>"<string>", "linkType"=>"<string>", "linkedAccountId"=>"<string>"}, "merchantId"=>"<uint64>", "method"=>"<string>", "overwrite"=>"<boolean>"}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"entries":[{"account":{"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"}]},"batchId":-46678881,"errors":{"code":-7233649,"errors":[{"domain":"ex Ut","message":"voluptate in","reason":"velit"},{"domain":"incididunt fugiat consectetur dolor","message":"est nulla incididunt","reason":"cillum ut sed est"}],"message":"laboris"},"kind":"aute ullamco","linkStatus":"ut amet aute"},{"account":{"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"}]},"batchId":38028280,"errors":{"code":49264714,"errors":[{"domain":"incididunt eu cillum dolor","message":"ut dolore","reason":"non a"},{"domain":"in cupidatat","message":"conseq","reason":"dolore quis amet"}],"message":"occaecat ut non"},"kind":"ipsum incididunt in consectetur irure","linkStatus":"do cillum commodo"}],"kind":"in"}