Você pode usar a ação segura do Google Drive baseada em OAuth do Looker para enviar Looks, Análises detalhadas e painéis do Looker para o Google Drive de forma única ou recorrente. A
ação do Google Drive é integrada ao Looker pelo hub de ações do Looker.
Depois que o administrador do Looker ativar a ação do Google Drive no Hub de ações,
os usuários poderão selecionar o Google Drive como um possível destino ao enviar ou programar
Looks, análises e painéis.
Como a ação do Google Drive usa o Google OAuth, os usuários só podem
enviar conteúdo para as pastas do Drive que as credenciais do Google permitem
que eles acessem. A ação do Google Drive permite que os usuários conectem o Google
Drive ao Looker usando o Google OAuth 2.0 para armazenar arquivos nas pastas do Google
Drive.
Esta página orienta os administradores sobre como ativar a ação do Google Drive. Também descreve
como qualquer usuário com as permissões
adequadas pode enviar ou programar envios de dados para uma pasta do Google Drive.
Como ativar a ação do Google Drive no Looker
Os administradores do Looker podem ativar a ação do Google Drive no Looker seguindo estas etapas:
Acesse o painel Administrador e, em Plataforma, acesse a página Ações.
Na lista de ações do Action Hub, role até o Google Drive e clique no botão
Ativar.
Na página de ação do Google Drive, clique no botão Ativar para ativar a opção
e clique em Salvar.
Quando você retornar à lista de ações do Action Hub, sua ação do Google Drive
vai estar ativada.
Agora você e seus usuários, se tiverem permissões send_to_integration, podem enviar ou programar Looks, Análises detalhadas e painéis para uma pasta do Google Drive.
Como enviar dados para uma pasta do Google Drive
Qualquer usuário do Looker com permissões send_to_integration pode enviar ou
programar Looks, Análises detalhadas ou painéis para uma pasta do Google Drive.
As opções de formato para enviar e programar painéis incluem:
PDF
Visualização
CSV (arquivo ZIP): se você enviar um arquivo ZIP, cada bloco do seu painel será enviado como um arquivo CSV separado. Você pode extrair o arquivo na nuvem
usando uma extensão do Chrome ou do Drive.
As opções de formato para enviar e programar Looks ou Explorações incluem:
CSV
XLSX
JSON — Simples
JSON: rótulo
JSON — Simples, Inline
JSON — Detalhado, Inline
Texto
HTML
Para enviar ou programar seu conteúdo, siga estas etapas:
No Programador, ao lado de Para onde esses dados devem ser enviados?, selecione Google Drive como destino de entrega.
Se você estiver enviando para o Google Drive pela primeira vez, será necessário fazer a autenticação com suas credenciais do Google. Clique em Fazer login com o Google, especifique sua Conta do Google e clique em Permitir para conectar a conta do Looker às suas credenciais do Google OAuth. Você só pode conectar um conjunto de credenciais do OAuth 2.0 do Google a essa integração.
No Programador, clique em Verificar credenciais para carregar o Google Drive.
No menu suspenso Selecionar Drive para salvar o arquivo, escolha o Google Drive em que o arquivo será salvo.
Em seguida, insira o URL de uma pasta no Drive ou extraia todas as pastas.
No campo URL de destino do Google Drive, insira o URL completo do Google Drive da pasta em que você quer salvar os dados. Por exemplo, https://drive.google.com/corp/drive/folders/abcxyz. Se esse URL não estiver acessível, seus dados serão salvos na pasta raiz do Google Drive.
No menu suspenso Selecionar Buscar para buscar uma lista de pastas neste drive, selecione Buscar. Depois que a caixa de diálogo do Agendador for atualizada, selecione a pasta do Google Drive em que o arquivo será salvo no menu suspenso Selecionar pasta para salvar o arquivo.
Especifique o nome do arquivo no campo Enter a filename. Não é necessário incluir a extensão do arquivo. A ação vai anexar automaticamente durante a entrega.
As opções avançadas para personalizar a entrega de conteúdo dependem do formato
de dados. Clique em Enviar ou Programar.
Atualize a pasta do Google Drive para conferir o envio do arquivo.
Seus arquivos não serão substituídos nem renomeados durante os envios subsequentes de
arquivos com o mesmo nome. Portanto, se você tiver programado o envio repetido de conteúdo,
a pasta do Drive vai conter vários arquivos com o mesmo nome.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-08-25 UTC."],[],[],null,["# Looker actions - Google Drive\n\n\u003cbr /\u003e\n\n\u003e Customer-hosted instances may be unable to enable actions from the Looker Action Hub, especially actions that [support streamed results](/looker/docs/action-hub#uses_streaming) or that use [OAuth](/looker/docs/action-hub#configuring_an_action_for_oauth), if the customer-hosted Looker instance does not fulfill the [Looker Action Hub requirements](/looker/docs/action-hub#looker_action_hub_requirements).\n\u003e\n\u003e See the [Sharing data through an action hub](/looker/docs/action-hub#considerations_for_customer-hosted_instances) documentation page for suggested solutions to this potential issue.\n\n\nYou can use Looker's secure OAuth-based Google Drive action to send Looks, Explores,\nand dashboards from Looker to Google Drive on a one-off or recurring basis. The\nGoogle Drive action is integrated with Looker through the Looker Action Hub.\nOnce the Looker admin has enabled the Google Drive action in the Action Hub,\nusers can select Google Drive as a possible destination when sending or scheduling\nLooks, Explores, and dashboards.\n\n\nSince the Google Drive action leverages Google OAuth, users will be able\nto deliver content only to the Drive folders that their Google credentials enable\nthem to access. The Google Drive action enables users to connect their Google\nDrive to Looker using Google OAuth 2.0 so that they can store files in their Google\nDrive folders.\n\n\nThis page walks admins through enabling the Google Drive action. It also describes\nhow any user who has the appropriate\n[permissions](/looker/docs/admin-panel-users-roles#permissions_list)\ncan send or schedule data deliveries to a Google Drive folder.\n| **Note:** If you have a permission that provides access to only select pages in the Admin panel, such as [`manage_schedules`](/looker/docs/admin-panel-users-roles#manage_schedules), [`manage_themes`](/looker/docs/admin-panel-users-roles#manage_themes), or [`see_admin`](/looker/docs/admin-panel-users-roles#see_admin), but you don't have the [Admin role](/looker/docs/admin-panel-users-roles#default_roles), the page or pages that are described here may not be visible to you in the Admin panel.\n\nEnabling the Google Drive action in Looker\n------------------------------------------\n\n\nLooker admins can enable the Google Drive action in Looker with the following\nsteps:\n\n1. Go the **Admin** panel and, under **Platform** , go to the **Actions** page.\n2. On the list of Action Hub actions, scroll to Google Drive and click the **Enable** button.\n3. On the Google Drive action page, click the **Enabled** toggle to the on position, and click **Save**.\n4. When you return to the list of Action Hub actions, your Google Drive action should be enabled.\n\n\nYou and your users --- if they have `send_to_integration` permissions --- can now send or schedule Looks, Explores, and dashboards to a Google Drive\nfolder.\n\nDelivering data to a Google Drive folder\n----------------------------------------\n\n\nAny Looker user who has `send_to_integration` permissions can send or\nschedule Looks, Explores, or dashboards to a Google Drive folder.\n\n\nYour format options to send and schedule dashboards include the following:\n\n- PDF\n- Visualization\n- CSV (ZIP file) --- if delivering a ZIP file, each tile on your dashboard will be delivered as a separate CSV file. You can extract the file in the Cloud with a Chrome extension, or you can extract it from your Drive.\n\n\nYour format options to send and schedule Looks or Explores include the following:\n\n- CSV\n- XLSX\n- JSON --- Simple\n- JSON --- Label\n- JSON --- Simple, Inline\n- JSON --- Detailed, Inline\n- Text\n- HTML\n\nTo send or schedule your content, follow these steps:\n\n1. From the [Scheduler](/looker/docs/delivering-looks-explores), next to **Where should this data go?** , select **Google Drive** as your delivery destination.\n2. If you're delivering to Google Drive for the first time, you'll need to authenticate with your Google credentials. Click **Sign in with Google** , specify your Google Account, and then click **Allow** to connect your Looker account to your Google OAuth credentials. You can connect only one set of Google OAuth 2.0 credentials to this integration.\n3. In the Scheduler, click **Verify credentials** to load your Google Drive.\n4. From the **Select Drive to save file** drop-down, choose the Google Drive where your file will be saved.\n\n Next, you can either enter the URL for a folder in this Drive or fetch all folders in your Drive.\n - In the **Google Drive Destination URL** field, enter the full Google Drive URL of the folder where you want to save your data. For example: `https://drive.google.com/corp/drive/folders/abcxyz`. If this URL isn't accessible, your data will be saved to the root folder of your Google Drive.\n - From the **Select Fetch to fetch a list of folders in this drive** drop-down, select **Fetch** . After the Scheduler dialog refreshes, from the **Select folder to save file** drop-down, select the Google Drive folder where your file will be saved.\n5. Specify the name of your file in the **Enter a filename** field. You don't need to include the file extension --- the action will automatically append it during delivery.\n6. Advanced options for customizing your content delivery depend on the data format. Click **Send** or **Schedule**.\n7. Refresh your Google Drive folder to see your file delivery.\n\n\u003e Your files won't be overwritten or renamed during subsequent deliveries of files with the same filename, so if you have scheduled content for repeated delivery, your Drive folder will contain multiple files of the same name.\n\nSwitching Google Accounts\n-------------------------\n\nTo associate a different Google Account with this action, you must delete the account's connection to the Looker instance. To learn more, see [Manage connections between your Google Account and third-parties](https://support.google.com/accounts/answer/13533235)."]]