This repository contains usage samples for the Display & Video 360 (DV360) API, written in Google Apps Script. You can use these samples to create, manage, update and delete DV360 entities (Advertisers, Insertion Orders, Line Items and Campaigns) at scale and in bulk.
DISCLAIMER: The code samples shared here are not formally supported by Google and are provided only as a reference. See LICENSE for more information.
Contributions are highly encouraged; see CONTRIBUTING.md.
- Make a copy of this template Google Sheets Spreadsheet.
- Create a new Google Cloud Platform (GCP) Project that will be linked to your script.
- Open the GCP console and navigate to APIs & Services > Library and enable the Display & Video 360 API.
- Create an Apps Script project that is linked to the Google Sheets Spreadsheet by navigating to Tools > Script Editor within the Spreadsheet. Alternatively open the script directly from the Apps Script Project Dashboard.
- Within the Script Editor, navigate to Resources > Cloud platform project and link the GCP project created in step #1 using its project number. You can retrieve the project number ny navigating to the GCP console's Home and copying the number out of the Project info card.
- Copy the code samples provided in src/ to the script project created above. Consider using clasp for easier code management.