Ads Manager and campaigns reports and stats: AdCampaignStat

17 views
Skip to first unread message

michael...@wwwmedia.co.nz

unread,
Jul 11, 2014, 12:42:38 AM7/11/14
to fb_g...@googlegroups.com, sod....@gmx.de
Hi,

how to get the ads Manager campaigns reports per Rails console?

FbGraph::AdCampaignStat.new(APP_ID, :secret => APP_SECRET)

do I need the account Id or another token?

Thanks, Michael





michael...@wwwmedia.co.nz

unread,
Jul 11, 2014, 1:00:05 AM7/11/14
to fb_g...@googlegroups.com, sod....@gmx.de, michael...@wwwmedia.co.nz

app = FbGraph::Application.new(APP_ID, :secret => APP_SECRET)
access_token = app.insights[0].access_token

ad_campaign_stats = FbGraph::AdAccount.new('act_12345', :access_token => "#{access_token}").ad_campaign_stats

ad_campaign_stats.each { |ad_campaign_stat| ad_campaign_stat.inspect }

I get FbGraph::InvalidRequest: GraphMethodException :: Unsupported get request.



Reply all
Reply to author
Forward
0 new messages