Coder Social home page Coder Social logo

Comments (2)

flescobarp avatar flescobarp commented on May 26, 2024

Hello Frederic, thank you for putting this together. I am at the cross roads between parsing the JSON and using the export-report provided by Facebook. I need a few of the actions/conversions and also using all the attribution windows options so its a bit fickle to set up the object parsing and the all encompassing report from Facebook is attractive. However since I am currently in Spain the CSV output comes in Spanish. I have been searching for a way to force it to output in English as I don't want the report to change depending on where in the world I am at.. any idea of how to do that?

Otherwise I will go ahead and parse the JSON (I do it Ad by Ad and with a daily reporting).

regards,
Lars

Hi!, to force the output in English, in the getFacebookReport() function, add &locale=en_US at the end of the url constant, something like this:

const url = `https://www.facebook.com/ads/ads_insights/export_report?report_run_id=${reportId}&format=csv&access_token=${TOKEN}&locale=en_US`;

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

lsp1138 avatar lsp1138 commented on May 26, 2024

Thank you so much for the quick response Frederic, this worked perfectly. Lars

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.