daroczig / fbRads

Analyze and manage Facebook ads from R using this client library to access their Marketing APIs
GNU Affero General Public License v3.0
153 stars 57 forks source link

fbad_add_audience error #106

Closed bcastane closed 6 years ago

bcastane commented 6 years ago

Hi, I am trying to create an audience using fbad_add_audience error, but appears an error mesage saying: Error in fbad_request(fbacc, path = paste0("act_", fbacc$account_id, "/customaudiences"), : (#100) Missing parameter(s): customer_file_source

The line that i am using is: aud_id <- fbad_create_audience(fbacc,name = "TEST 1234 R",description = "TEST R R",subtype = "CUSTOM")

I tried to give it through the "opt_out_link" parameter... but with no success.

Thanks

bcastane commented 6 years ago

I still have the same issue. Did someone solve it? or created a work around? Regards,

daroczig commented 6 years ago

@bcastane I've just pushed an update where you can pass arbitrary params to the FB API -- that will hopefully resolve your issue. Please let me know if it works.

bcastane commented 6 years ago

Thanks! is working!

AndreGrow commented 5 years ago

I have the same problem. Could you share the code of the solution? Thanks in advance!

Hamza012 commented 4 years ago

I write this code fs.createReadStream('Book1.csv') .pipe(csv()) .on('data', (data) => { // results.push(data) fields = [ ]; params = { 'name': adSetName, 'start_time': start_time, 'end_time': end_time, // 'campaign_id': campaign, 'customer_file_source': data, }; }) await account.createCustomAudience( fields, params ); but not working