TanqoryDocs

tanqoryExtMarketingAdChannelConnectComplete

  • Mutation
  • Orders and payments

Finishes the channel's sign-in with the code and state it returned: checks the state (this store, this person, not expired), exchanges the code once and lists the person's ad accounts. One account connects at once; several answer CHOOSE_ACCOUNT.

Arguments

ArgumentTypeRequiredDefault
channelTanqoryExtMarketingAdChannel!Required
codeString!Required
stateString!Required

Returns

TanqoryExtMarketingAdChannelPayload

FieldTypeDescription
adChannelTanqoryExtMarketingAutopilotAdChannel
userErrors[UserError!]!

Example request

A starting point: required arguments as variables and a few fields of the result. Replace the placeholders.

Set STORE_ID and TANQORY_ACCESS_TOKEN in your environment first (Make your first API call).

curl
curl -X POST "https://api.tanqory.com/admin/2026-10/stores/$STORE_ID/graphql" \
  -H "Authorization: Bearer $TANQORY_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{"query":"mutation TanqoryExtMarketingAdChannelConnectComplete($channel: TanqoryExtMarketingAdChannel!, $code: String!, $state: String!) {\n  tanqoryExtMarketingAdChannelConnectComplete(channel: $channel, code: $code, state: $state) {\n    userErrors {\n      field\n      message\n    }\n  }\n}","variables":{"channel":"GOOGLE_ADS","code":"","state":""}}'

Built from commit 0cac88ece6de · API version 2026-10