Coder Social home page Coder Social logo

Comments (4)

fredericharnois avatar fredericharnois commented on May 26, 2024

Hi @maychenn!

This is meant to be run in the Google Apps Script environment and calls on APIs/methods that are exclusive to that environment.

Don't hesitate if you have any issues getting it setup there.

Thanks!

from facebook-ads-reporting-google-apps-script.

maychenn avatar maychenn commented on May 26, 2024

Thanks so much for responding! I was finally able to get it set up. Do you know how I can get 1d_click, 1d_view, 7d_click, etc. to show up? This is what I have for filtering currently (based on another comment). I got an error when I included it in fields.
image

from facebook-ads-reporting-google-apps-script.

fredericharnois avatar fredericharnois commented on May 26, 2024

You'd actually want to add an additional parameter to do that.

First, add this constant:

const ATTRIBUTION_WINDOWS = '['1d_view','7d_view','28d_view','1d_click','7d_click','28d_click']'

Then add &action_attribution_windows=${ATTRIBUTION_WINDOWS} to the facebookUrl constant in the url parameters.

Let me know if it works!

from facebook-ads-reporting-google-apps-script.

maychenn avatar maychenn commented on May 26, 2024

That's actually what I tried, and I'm now getting an error that says this even when I take the attribution window portions out:

Exception: Request failed for https://graph.facebook.com returned code 400. Truncated server response: {"error":{"message":"Invalid OAuth access token.","type":"OAuthException","code":190,"fbtrace_id":"Ab0OHVHQYS1rXAuAZm11xtW"}} (use muteHttpExceptions option to examine full response) (line 50, file "Code")

Could it have to do with Graph v8.0 that just came out? I've checked that the tokens I'm using are still valid & I switched v7.0 to v8.0

from facebook-ads-reporting-google-apps-script.

Related Issues (20)

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.