• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers

google web apps embed pdf credentials fail

New Here ,
Nov 25, 2020 Nov 25, 2020

Copy link to clipboard


I have a google web apps script that delivers a web page and am trying to embed the pdf viewer to display pdf's from google drive, but am failing even with the example code. I have created a credential for the gsuite user running the apps script, and the script works without the embedded viewer.  When i run it with the embedded viewer I get an error message, how can i make this work / get the right credentials?  error message is - File preview not available; This application domain (https://n-w7drqfmvzgqptnxawu3wfueo6gcdcos4n6gmjxy-0lu-script.googleusercontent.com) is not authorized to use the provided PDF Embed API Client ID.










Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation