# Module: scenarioplanner.linkingapi.url_generator

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/google/meridian/blob/v2.2.2/scenarioplanner/linkingapi/url_generator.py) |

Utility library for generating a Looker Studio report and outputting the URL.

Contains the core logic for constructing the Looker Studio report URL, including
setting the correct parameters.

This library requires authentication.

- If you're developing locally, set up Application Default Credentials (ADC)
  in
  your local environment:

  <https://cloud.google.com/docs/authentication/application-default-credentials>
- If you're working in Colab, run the following command in a cell to
  authenticate:

  ```python
  from google.colab import auth
  auth.authenticate_user()
  ```

  This command opens a window where you can complete the authentication.

## Functions

[`create_report_url(...)`](https://developers.google.com/meridian/reference/api/scenarioplanner/linkingapi/url_generator/create_report_url.md.txt): Creates a Looker Studio report URL based on the given spreadsheet.