Git Product home page Git Product logo

dv360-api-appsscript-samples's Introduction

DV360 API Samples in Apps Script

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.

Configuration and Setup

  1. Make a copy of this template Google Sheets Spreadsheet.
  2. Create a new Google Cloud Platform (GCP) Project that will be linked to your script.
  3. Open the GCP console and navigate to APIs & Services > Library and enable the Display & Video 360 API.
  4. 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.
  5. 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.
  6. Copy the code samples provided in src/ to the script project created above. Consider using clasp for easier code management.

dv360-api-appsscript-samples's People

Contributors

kubarozek-google avatar mohabfekry avatar paranerd avatar qbit-42 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dv360-api-appsscript-samples's Issues

Invalid JSON payload received

first of all, thanks for this it's very useful.
unfortunately when trying to update something i've an error message :

"error": {
"code": 400,
"message": "Invalid JSON payload received. Unknown name "fieldList_" at 'insertion_order': Cannot find field.",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "type.googleapis.com/google.rpc.BadRequest",
"fieldViolations": [
{
"field": "insertion_order",
"description": "Invalid JSON payload received. Unknown name "fieldList_" at 'insertion_order': Cannot find field."

and when looking at the google cloud project the google.ads.displayvideo.v1.InsertionOrderService.UpdateInsertionOrder generate an error with invalid argument.

"code": 400,
"message": "The value "campaignId=" is not valid for field "filter".",
"status": "INVALID_ARGUMENT"

any id why ? did anyone else experience this too ?

thanks.

Issue with "Create" Function

Thanks for this document it's brilliant for making changes to current campaigns.

I'm having issues using the "create" function however. I get this error message in the logs column:

{ "error": { "code": 400, "message": "Invalid JSON payload received. Unknown name \"fieldList_\" at 'campaign': Cannot find field.", "status": "INVALID_ARGUMENT", "details": [ { "@type": "type.googleapis.com/google.rpc.BadRequest", "fieldViolations": [ { "field": "campaign", "description": "Invalid JSON payload received. Unknown name \"fieldList_\" at 'campaign': Cannot find field." } ] } ] } }

Is this related to what is inputted in columns C and E? I'm not sure what to put. At the moment we've been putting "{campaign.advertiserID}" in C. Is that correct?

Thanks!

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.