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>&quotaUser=<string>&upload_protocol=<string>&uploadType=<string>

Retrieves, inserts, updates, and deletes multiple Merchant Center (sub-)accounts in a single request.

Request Params

KeyDatatypeRequiredDescription
dryRunstringFlag 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).
$.xgafvstringV1 error format.
access_tokenstringOAuth access token.
altstringData format for response.
callbackstringJSONP
fieldsstringSelector specifying which fields to include in a partial response.
keystringAPI 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_tokenstringOAuth 2.0 token for the current user.
prettyPrintstringReturns response with indentations and line breaks.
quotaUserstringAvailable 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_protocolstringUpload protocol for media (e.g. "raw", "multipart").
uploadTypestringLegacy 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

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{&quot;entries&quot;:[{&quot;account&quot;:{&quot;adultContent&quot;:&quot;\u003cboolean\u003e&quot;,&quot;adwordsLinks&quot;:[{&quot;adwordsId&quot;:&quot;\u003cuint64\u003e&quot;,&quot;status&quot;:&quot;\u003cstring\u003e&quot;},{&quot;adwordsId&quot;:&quot;\u003cuint64\u003e&quot;,&quot;status&quot;:&quot;\u003cstring\u003e&quot;}],&quot;businessInformation&quot;:{&quot;address&quot;:{&quot;country&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;locality&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;postalCode&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;region&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;streetAddress&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;customerService&quot;:{&quot;email&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;phoneNumber&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;url&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;phoneNumber&quot;:&quot;\u003cstring\u003e&quot;},&quot;googleMyBusinessLink&quot;:{&quot;gmbEmail&quot;:&quot;\u003cstring\u003e&quot;,&quot;status&quot;:&quot;\u003cstring\u003e&quot;},&quot;id&quot;:&quot;\u003cuint64\u003e&quot;,&quot;kind&quot;:&quot;\u003cstring\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;reviewsUrl&quot;:&quot;\u003cstring\u003e&quot;,&quot;sellerId&quot;:&quot;\u003cstring\u003e&quot;,&quot;users&quot;:[{&quot;admin&quot;:&quot;\u003cboolean\u003e&quot;,&quot;emailAddress&quot;:&quot;\u003cstring\u003e&quot;,&quot;orderManager&quot;:&quot;\u003cboolean\u003e&quot;,&quot;paymentsAnalyst&quot;:&quot;\u003cboolean\u003e&quot;,&quot;paymentsManager&quot;:&quot;\u003cboolean\u003e&quot;},{&quot;admin&quot;:&quot;\u003cboolean\u003e&quot;,&quot;emailAddress&quot;:&quot;\u003cstring\u003e&quot;,&quot;orderManager&quot;:&quot;\u003cboolean\u003e&quot;,&quot;paymentsAnalyst&quot;:&quot;\u003cboolean\u003e&quot;,&quot;paymentsManager&quot;:&quot;\u003cboolean\u003e&quot;}],&quot;websiteUrl&quot;:&quot;\u003cstring\u003e&quot;,&quot;youtubeChannelLinks&quot;:[{&quot;channelId&quot;:&quot;\u003cstring\u003e&quot;,&quot;status&quot;:&quot;\u003cstring\u003e&quot;},{&quot;channelId&quot;:&quot;\u003cstring\u003e&quot;,&quot;status&quot;:&quot;\u003cstring\u003e&quot;}]},&quot;batchId&quot;:-46678881,&quot;errors&quot;:{&quot;code&quot;:-7233649,&quot;errors&quot;:[{&quot;domain&quot;:&quot;ex Ut&quot;,&quot;message&quot;:&quot;voluptate in&quot;,&quot;reason&quot;:&quot;velit&quot;},{&quot;domain&quot;:&quot;incididunt fugiat consectetur dolor&quot;,&quot;message&quot;:&quot;est nulla incididunt&quot;,&quot;reason&quot;:&quot;cillum ut sed est&quot;}],&quot;message&quot;:&quot;laboris&quot;},&quot;kind&quot;:&quot;aute ullamco&quot;,&quot;linkStatus&quot;:&quot;ut amet aute&quot;},{&quot;account&quot;:{&quot;adultContent&quot;:&quot;\u003cboolean\u003e&quot;,&quot;adwordsLinks&quot;:[{&quot;adwordsId&quot;:&quot;\u003cuint64\u003e&quot;,&quot;status&quot;:&quot;\u003cstring\u003e&quot;},{&quot;adwordsId&quot;:&quot;\u003cuint64\u003e&quot;,&quot;status&quot;:&quot;\u003cstring\u003e&quot;}],&quot;businessInformation&quot;:{&quot;address&quot;:{&quot;country&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;locality&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;postalCode&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;region&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;streetAddress&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;customerService&quot;:{&quot;email&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;phoneNumber&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;url&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;phoneNumber&quot;:&quot;\u003cstring\u003e&quot;},&quot;googleMyBusinessLink&quot;:{&quot;gmbEmail&quot;:&quot;\u003cstring\u003e&quot;,&quot;status&quot;:&quot;\u003cstring\u003e&quot;},&quot;id&quot;:&quot;\u003cuint64\u003e&quot;,&quot;kind&quot;:&quot;\u003cstring\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;reviewsUrl&quot;:&quot;\u003cstring\u003e&quot;,&quot;sellerId&quot;:&quot;\u003cstring\u003e&quot;,&quot;users&quot;:[{&quot;admin&quot;:&quot;\u003cboolean\u003e&quot;,&quot;emailAddress&quot;:&quot;\u003cstring\u003e&quot;,&quot;orderManager&quot;:&quot;\u003cboolean\u003e&quot;,&quot;paymentsAnalyst&quot;:&quot;\u003cboolean\u003e&quot;,&quot;paymentsManager&quot;:&quot;\u003cboolean\u003e&quot;},{&quot;admin&quot;:&quot;\u003cboolean\u003e&quot;,&quot;emailAddress&quot;:&quot;\u003cstring\u003e&quot;,&quot;orderManager&quot;:&quot;\u003cboolean\u003e&quot;,&quot;paymentsAnalyst&quot;:&quot;\u003cboolean\u003e&quot;,&quot;paymentsManager&quot;:&quot;\u003cboolean\u003e&quot;}],&quot;websiteUrl&quot;:&quot;\u003cstring\u003e&quot;,&quot;youtubeChannelLinks&quot;:[{&quot;channelId&quot;:&quot;\u003cstring\u003e&quot;,&quot;status&quot;:&quot;\u003cstring\u003e&quot;},{&quot;channelId&quot;:&quot;\u003cstring\u003e&quot;,&quot;status&quot;:&quot;\u003cstring\u003e&quot;}]},&quot;batchId&quot;:38028280,&quot;errors&quot;:{&quot;code&quot;:49264714,&quot;errors&quot;:[{&quot;domain&quot;:&quot;incididunt eu cillum dolor&quot;,&quot;message&quot;:&quot;ut dolore&quot;,&quot;reason&quot;:&quot;non a&quot;},{&quot;domain&quot;:&quot;in cupidatat&quot;,&quot;message&quot;:&quot;conseq&quot;,&quot;reason&quot;:&quot;dolore quis amet&quot;}],&quot;message&quot;:&quot;occaecat ut non&quot;},&quot;kind&quot;:&quot;ipsum incididunt in consectetur irure&quot;,&quot;linkStatus&quot;:&quot;do cillum commodo&quot;}],&quot;kind&quot;:&quot;in&quot;}