Code Monkey home page Code Monkey logo

Comments (4)

daroczig avatar daroczig commented on August 16, 2024

Hm, I think the fields param should be a JSON array, eg toJSON(c('foo', 'bar'))

But regarding your question -- can you please try the raw API requests at https://developers.facebook.com/tools/explorer and figure out what the breakdown actually do etc and then once you have all the proper parameters there, please share here if you cannot replicate that with the fbRads package and I'll be happy to help.

from fbrads.

maxtaind avatar maxtaind commented on August 16, 2024

Hm, I think the fields param should be a JSON array, eg toJSON(c('foo', 'bar'))

But regarding your question -- can you please try the raw API requests at https://developers.facebook.com/tools/explorer and figure out what the breakdown actually do etc and then once you have all the proper parameters there, please share here if you cannot replicate that with the fbRads package and I'll be happy to help.

Hi, thanks for your help. The breakdown parameter actually breaks the result of the Google Insights response, bringing additional values like website_url for each ad within a specific ad_set (for example, if an ad_set contains 3 ads, the API response should be a list containing 3 website_url). The raw API request is:

https://graph.facebook.com/v6.0/act_account_id/insights?level=ad&fields=fields_parameters&breakdowns=link_url_asset

There is something mysterious about using this parameter: when I add the breakdowns parameter with fbRads, the package returns only one response for ad set and when I try to replicate the same request using Python/requests, I receive an empty response data.

from fbrads.

daroczig avatar daroczig commented on August 16, 2024

Please reopen when you managed to replicate the issue via the API explorer or a curl client (such as Python/requests) and provide more info, meanwhile, I'm closing this as I don't think I can be much help.

from fbrads.

dsolito avatar dsolito commented on August 16, 2024

Had a problem with breakdowns= c("age", "gender"). API returned only one of.
As @daroczig said, this code work for me.

breakdowns = rjson::toJSON(c("age", "gender"))

from fbrads.

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.