Embedding a Linking API

Hello,

I’m looking to use the linking api to embed a template report with Google Analytics. I needed to have a specific Google Analytics accountId and propertyId (The normal embed doesn’t allow for this hence I’m using Linking API). I was able to successfully use the Linking API to embed a report with a specific Google Analytics accountId and propertyId:

https://lookerstudio.google.com/embed/reporting/create?c.reportId=xxxxxxxxc&ds.ds0.connector=googleAnalytics&ds.ds0.accountId=xxxxxxx&ds.ds0.propertyId=xxxxxxx

However, when embedding it into my website, the user has to sign into the iframe that is used. This will not be feasible since we are using this in our platform where a user is created dynamically and only has a specific Google Analytics accountId and propertyId.

Since embedding is a standard feature in the Linking API:

how would I be able to include this in an iframe without having the user sign in? This doesn’t make since for the user to have to sign into an iframe to see this data. Would I be able to use OAuth sign in to provide an auth key for this: Looker Studio API  |  Integrate and share  |  Google for Developers How would I go about doing this?

Thanks!

You cannot use the Linking API (/reporting/create) to embed a report without a user sign-in.

The Linking API is designed specifically to create a new copy of a report in the viewer’s personal Looker Studio account. Because a report must have an owner to exist, the user is forced to sign in to establish that ownership. There is no “service account” or “headless” mode for the Linking API because it is an account-management tool, not just a viewing tool.

OAuth sign in?

The short answer is No, you can’t use OAuth sign in to provide an auth key for this. Looker Studio doesn’t provide “session tokens” or “signed URLs” for embedding.

(For what it’s worth, Looker (Enterprise) does have this feature, it’s called Signed Embedding.)