Git Product home page Git Product logo

dv360-api's Introduction

DV360 API Code Examples

This repository contains code examples for the DV360 API. Especially:

  • The main difference is that for using the Spreadsheet Weather Based Marketing you need much less JavaScript knowledge (after the installation everything you need is spreadsheet working skills). On the other hand if you need more simple code example and you have JavaScript knowledge you can look at the Apps Script Weather Based Marketing solution.
  • Also Weather Based Marketing Spreadsheet supports almost any API (Apps Script Weather Based Marketing works only with OpenWeatherMap API).
  • Weather Based Marketing Spreadsheet supports DV360, Google Ads, SA360 (Apps Script Weather Based Marketing works only with DV360).

dv360-api's People

Contributors

akushnarov avatar paranerd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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

dv360-api's Issues

Increased YouTube support

At the moment, the only option for adding and removing placements and other targeting options for YouTube items is by generating and manually uploading SDFs through the console. Please extend the DV360 API's current capabilities and options to include YouTube as well.

Flight date settings

Hi there,

We are currently running a small two-day test in DV360 to see if our setup is working correctly. However, the script is now failing and I'm getting the below error in the logs.

Error: {
  "error": {
    "code": 400,
    "message": "When a flight/budget segment date is updated, the new value cannot be in the past.",
    "status": "INVALID_ARGUMENT"
  }
}

When I looked at the code I don't think we're updating the flight dates, only the Active/Paused status.

So is the error occurring because the flight end date is today (29/07/2021) and that is considered as "in the past" already?

Error when the workbook has multiple sheets

A colleague came to me because this script was giving errors. He deployed the solution, but he ended up with multiple sheets - I have no idea how he managed that. Funny enough, menu function "Only check weather" works as advertised. But running "Check weather and sync DV360" gives this error in the log:

TypeError: Cannot read property '0' of undefined
    at forceFormulasEval(Code:505:59)
    at main(Code:1712:41)
    at monitorWeatherAndSyncWithDV360(Code:1762:12)

The problem: function forceFormulasEval assumes the default sheet to be the Triggers sheet. Applying the following change will fix the problem:

  forceFormulasEval(row, col) {
    //return this.get(`R${row}C${col}`, 'UNFORMATTED_VALUE')[0][0];
    return this.get(`${configSpreadsheetName}!R${row}C${col}`, 'UNFORMATTED_VALUE')[0][0];
  }

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.