Comments (9)
It seems you are using a very old version of the package (probably from CRAN) -- can you please check the dev version installed from GitHub?
devtools::install_github('daroczig/fbRads')
Please reopen if you still cannot auth.
from fbrads.
Still having trouble. Your hint helped me but when listing ad:
fbad_list_ad("1355059354571137", id, statuses, fields = "id")
I get:
Error in fbad_check_fbacc() :
Invalid R object passed as fbacc argument. See ?fbad_init for more details. Checked the account and it's right.
from fbrads.
Try
fbad_list_ad(id = "1355059354571137", fields = "id")
The first arg of fbad_list_ad
(and all fbad
functions) is the fbacc
object, that is automatically populated if not specified, but you have to use named args. I might get rid of that arg after all, but not not in the next few weeks
from fbrads.
Error in fbad_request(fbacc, path = file.path(id, endpoint), params = params, :
Unsupported get request. Object with ID '1355059354571137' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api
from fbrads.
Done :) Had to input act_ before the id
from fbrads.
Now I'm having some trouble in setting the fields on FB API.
fbad_read_ad(id= "23842609228480736", fields = c("name", "created_time", "status"))
This code is ok, but when I add some fields of FB documentation I get
Error in fbad_request(fbacc, path = id, params = list(fields = fields), : (#100) Tried accessing nonexisting field (creative) on node type (AdCampaign)
And also, I see no way to get impressions, reach, views and other metrics on the API. Can somebody help me with this?
from fbrads.
That FB error message seems to provide a pretty good explanation on what your are doing wrong: trying to query the creative of an ad campaign, but that field is associated with the ad level. Read the FB docs, at this point, I think that will be the most helpful.
from fbrads.
One more thing: When I enter
fb_insights(date_preset="today", level = "ad", toJSON(c(fields="impressions")))
I get ```
Error in fbad_check_fbacc() :
Invalid R object passed as fbacc argument. See ?fbad_init for more details.
from fbrads.
You again forgot about named arguments
from fbrads.
Related Issues (20)
- Can't get all the data with fb_insights HOT 2
- fb_insights issue whenever I use breakdowns parameters HOT 4
- 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.