Liasettings: getaccessiblegmbaccounts

Requires authorization

Retrieves the list of accessible Google My Business accounts. Try it now.

Request

HTTP request

GET https://www.googleapis.com/content/v2/merchantId/liasettings/accountId/accessiblegmbaccounts

Parameters

Parameter name Value Description
Path parameters
accountId unsigned long The ID of the account for which to retrieve accessible Google My Business accounts.
merchantId unsigned long The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account.

Authorization

This request requires authorization with the following scope (read more about authentication and authorization).

Scope
https://www.googleapis.com/auth/content

Request body

Do not supply a request body with this method.

Response

If successful, this method returns a response body with the following structure:

{
  "kind": "content#liasettingsGetAccessibleGmbAccountsResponse",
  "accountId": unsigned long,
  "gmbAccounts": [
    {
      "type": string,
      "email": string,
      "name": string,
      "listingCount": unsigned long
    }
  ]
}
Property name Value Description Notes
kind string Identifies what kind of resource this is. Value: the fixed string "content#liasettingsGetAccessibleGmbAccountsResponse".
accountId unsigned long The ID of the account.
gmbAccounts[] list A list of GMB accounts which are available to the merchant.
gmbAccounts[].type string The type of the GMB account (User or Business).
gmbAccounts[].email string The email which identifies the GMB account.
gmbAccounts[].name string The name of the GMB account.
gmbAccounts[].listingCount unsigned long Number of listings under this account.

Try it!

Use the APIs Explorer below to call this method on live data and see the response.

Enviar comentarios sobre…

Content API for Shopping