Git Product home page Git Product logo

dbm-trix-addon's Introduction

Disclaimer: This is not an official Google product.

DBM Trix Addon

Overview

DBM Trix Addon allows users to download reports from DoubleClick Bidmanager Manager on a scheduled basis into a Google Sheets Spreadsheet. Features of this addon are:

  • One time fetch of reports to spreadsheet.
  • Scheduled fetch of reports in background (Hourly, Daily, Weekly).

Initial Setup

  1. Go to drive.google.com and create a new spreadsheet by going to New > Google Sheets.
  2. Copy the doc id from the URL. This is the value between the d and edit as shown in bold below:
    https://docs.google.com/spreadsheets/d/1p3IHbvgz0vpibMcW47HfzYijl4sLnECKVYist3ByZXU/edit#gid=0
  3. Give the spreadsheet a name (Ex: "DBM Reporting")

Upload the script files

Upload files manually

  1. Download all the files in the repo using the download as zip option.
  2. Extract the zip and open all the files in a text editor (Sublime text, notepad++ etc).
  3. Open script editor by going to the spreadsheet and going to Tools > Script Editor.
  4. Give the script a name (Ex: dbm-trix-addon).
  5. Create each individual file in the script editor with the same names as the files downloaded and copy paste the contents. Do this for all the files except appsscript.json which is done in the next step.
  6. Go to View > Show manifest file in the script editor. Copy the contents of appsscript.json and replace the contents of this file.

Once completed, move to the next section to continue the setup.

Setting up authentication

  1. Go to File > project properties and copy the script id. You will need this later.
  2. In the same script editor go to Resources > Cloud platform project and click on the project link.
  3. Click on the button at the top left corner of the page (three horizontal lines) to open the project menu.
  4. Go to APIs & Services > Dashboard
  5. Click on Enable APIS and Services at the top of the page.
  6. Search for "Bid Manager" and click on DoubleClick Bid Manager API.
  7. Click on Enable.
  8. Go to APIs & Services > Credentials
  9. Create new credentials by going to Create credentials -> Oauth client id -> Web application
  10. Give it a name (Ex: dbm-trix-addon).
  11. Under Authorized redirect URIs which is the second field in Restrictions, paste https://script.google.com/macros/d/{SCRIPT ID}/usercallback with {SCRIPT ID} replaced with the value obtained earlier.
  12. Hit 'create' - copy the client id and client secret values and paste them in Constants.gs file for CLIENT_ID and CLIENT_SECRET respectively.
  13. Go back to the spreadsheet and refresh the document. Verify that the addon is visible in Add-ons > dbm-trix-addon. The name may be different if you had given a different name earlier.

First time run configuration

  1. Go to Add-ons > dbm-trix-addon > Select DBM Report. You should get a popup for authorization.
  2. In the popup click on Continue.
  3. Select the account you want to use this addon with.
  4. In the next screen, click on Advanced, scroll to the bottom and click on Go to dbm-trix-addon (unsafe)
  5. Review the permissions and scroll to the bottom and click on Allow.
  6. Close the popup that's open in the spreadsheet and go to Add-ons > dbm-trix-addon > Select DBM Report again.
  7. Click on Authorize and follow the steps again. If all goes well, you should see a page that says Success! You can close this tab and open the Dialog box again. Sometimes you will see a blank page. If that's the case, try switching to another tab and switching back again and see if shows the message now. If it still doesn't show, proceed to the next step to try and see if authentication was successful.
  8. This authentication needs to be done only the first time for each sheet.
  9. Back in the spreadsheet, close the popup and go to Add-ons > dbm-trix-addon > Select DBM Report again. You should see a popup that says DBM Report Selection. If that's the case, the configuration has been successful and you can now use the addon.

If you encounter any issues, review the setup and check whether you have followed all the steps.

Limitations

  • This addon can only download files that are less than 10MB in size. This is a limitation of Apps Script.

dbm-trix-addon's People

Contributors

restive-shrimp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dbm-trix-addon's Issues

Scheduled reports not populating

Hi,

I have an issue where scheduled reports are not repopulating. I have them set to run daily, and I can see that the reports in DBM are still updating each day, but they are not being pulled down into the G-sheet.
Any idea what is causing this? Is there any type of expiration on the scheduler in G-sheets?

Thanks,
Charles

DMB API Credentials Expired

One of the best repositories that my team has been relying on as part of our daily work, but has recently stopped working. The error message received is - "DBM API Credentials Expired. Please click to re-authorize (link)" but copying and pasting the link in the browser only leads to another error page. Please assist!

Thank you very much!

image
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.