Comments (4)
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.
Hm, I think the
fields
param should be a JSON array, egtoJSON(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 thefbRads
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.
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.
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)
- Can't get all the data with fb_insights HOT 2
- special_ad_categories required to create campaign in new API HOT 3
- Difference in accountid # in fbad_request HOT 2
- fbad_init issue HOT 9
- Possibility to create copies of entities? HOT 2
- fbad_add_audience error with schema using multiple columns
- fb_insights Breakdown Platform Position Error HOT 1
- fb_insights "platform_position" Breakdown Error HOT 1
- fb_insights only fetches last breakdown value HOT 1
- Issue with fbad_get_my_ad_accounts() HOT 1
- Request - Ad Rules Management HOT 3
- new fbad_init issue HOT 5
- threw a bug... HOT 2
- Cannot extract converted_product_value HOT 2
- Unsupported get request. Object with ID 'vhttps:' does not exist HOT 10
- Unable to pull ad account data
- audience_count has been changed from a value to a range (two fields" "approximate_count_lower_bound" and "approximate_count_upper_bound") HOT 2
- Requests stopped working yesterday with v15 HOT 6
- Error when requesting "actions" field HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fbrads.