-
Notifications
You must be signed in to change notification settings - Fork 56
Only 50 results after fbad_read_creative? #80
Comments
I don't know of and never faced such limitation. Can you share your |
Thank you for your quick reply (and for building this tool in the first place)! I tried data.table::rbindlist, but I run into the error where I have different lengths per item in the list. Here is my session info output: Session info --------------------------------------------------------------------------------------------------------------------------------- Packages ------------------------------------------------------------------------------------------------------------------------------------- |
Thanks! So looking into this, it seems that this function that I wrote quite a while ago tries to achieve multiple things: reading fields of a list of provided creatives and listing creatives under an Ad Account. For all other similar functions (eg reading/listing Ad Sets or Ad Groups), I've fixed that quite a long time ago by having a read and a list function, see eg In short, the problem is that this function is not doing proper paging -- like eg Adding this to my TODO list, but I won't have time to actively work on it in the near future. Suggested workaround until then: I'm not sure what you want to achive, but maybe you could list all the creatives by listing all the Ad Groups with the |
Alright, thanks for the suggestion! |
Hey Wondering if there was an update on this issue since then? Thank you for your time |
@ErezLo sorry, no related updates in the package due to lack of resources -- but I would highly appreciate a PR as per my above comment if anyone has some time. |
Thanks @daroczig Thanks |
I tried looking here and understand to logic behind "fbad_request_next_page" and Hope someone else will in the future. |
I tried something, @daroczig if that makes sense and you want to update the function that would be great `#' Read ad creative fbacc <- fbad_check_fbacc() by <- match.arg(by) default to current account idif (by == 'account' && missing(id)) { get fieldsfields <- match.arg(fields, several.ok = TRUE) we need an idif (by != 'account' && missing(id)) get resultsres <- fbad_request(fbacc, returnfromJSONish(res) or do batched queryres <- lapply(
} |
Hi,
I have access to an ad account with a lot going on (we've got hundreds of fb ads and thus hundreds of ad creatives). After running fbad_read_creative(), I'm getting only 50 results? I initialized our main ad account which definitely has a lot of ads associated with it. Is there a kind of default where it only pulls the last month's newest creatives or something? I went through the Marketing API documentation, but I didn't see any limits mentioned on the Read section of the creatives portion.
I might be unpacking it wrong. I'm fairly new at this entire thing, and I'm using unlist and matrix to turn the results into a data frame.
Thanks.
The text was updated successfully, but these errors were encountered: