|
1 | 1 | # DV360 API Samples in Apps Script
|
2 | 2 |
|
3 | 3 | This repository contains usage samples for the Display & Video 360 (DV360)
|
4 |
| -API, written in Google Apps Script. |
| 4 | +API, written in Google Apps Script. You can use these samples to create, manage, |
| 5 | +update and delete DV360 entities (Advertisers, Insertion Orders, Line Items and |
| 6 | +Campaigns) at scale and in bulk. |
5 | 7 |
|
6 | 8 | **DISCLAIMER**: The code samples shared here are _not_ formally supported
|
7 | 9 | by Google and are provided only as a reference. See [LICENSE](LICENSE.md)
|
8 | 10 | for more information.
|
9 | 11 |
|
10 | 12 | Contributions are highly encouraged; see [CONTRIBUTING.md](CONTRIBUTING.md).
|
11 | 13 |
|
12 |
| -## Table of Contents |
13 |
| - |
14 |
| -[Bulk Resource Management](#bulk-resource-management) |
15 |
| - |
16 |
| -## Bulk Resource Management |
17 |
| - |
18 |
| -This folder contains samples for bulk DV360 resource management using Google |
19 |
| -Sheets. If you are interested in using this solution at scale, please get in |
20 |
| -contact with your DV360 representative to get a copy of a template Spreadsheet |
21 |
| -that is preconfigured for bulk management. |
22 |
| - |
23 |
| -### Configuration and Setup |
| 14 | +## Configuration and Setup |
24 | 15 |
|
| 16 | +1. Make a copy of this |
| 17 | + [template](https://docs.google.com/spreadsheets/d/1F9O8rwtbkeMnZ_mUd7WAcDFka7wryuy4X15e8gCwDFU) |
| 18 | + Google Sheets Spreadsheet. |
25 | 19 | 1. Create a new Google Cloud Platform (GCP) Project that will be linked to your
|
26 | 20 | script.
|
27 |
| -2. [Open the GCP console](https://console.cloud.google.com/) and navigate to |
| 21 | +1. [Open the GCP console](https://console.cloud.google.com/) and navigate to |
28 | 22 | _APIs & Services > Library_ and enable the _Display & Video 360 API_.
|
29 |
| -3. Create an Apps Script project that is linked to a Google Spreadsheet by |
30 |
| - navigating to _Tools > Script Editor_ within the desired Spreadsheet. |
| 23 | +1. Create an Apps Script project that is linked to the Google Sheets |
| 24 | + Spreadsheet by navigating to _Tools > Script Editor_ within the Spreadsheet. |
31 | 25 | Alternatively open the script directly from the
|
32 | 26 | [Apps Script Project Dashboard](https://script.google.com/home/all).
|
33 |
| -4. Within the Script Editor, navigate to _Resources > Advanced Google Services_ |
34 |
| - and toggle the switch for _Google Sheets API_. |
35 |
| -5. Within the Script Editor, navigate to _Resources > Cloud platform project_ |
| 27 | +1. Within the Script Editor, navigate to _Resources > Cloud platform project_ |
36 | 28 | and link the GCP project created in step #1 using its _project number_. You
|
37 | 29 | can retrieve the project number ny navigating to the GCP console's _Home_
|
38 | 30 | and copying the number out of the _Project info_ card.
|
| 31 | +1. Copy the code samples provided in [src/](src) to the script project created |
| 32 | + above. Consider using |
| 33 | + [clasp](https://github.com/google/clasp) for easier code management. |
0 commit comments