facebook / facebook-ruby-business-sdk

Ruby SDK for Meta Marketing API
https://developers.facebook.com/docs/business-sdk
Other
208 stars 161 forks source link

RuntimeError (load! is not supported for this object) #78

Closed youssef-sobhy closed 5 years ago

youssef-sobhy commented 5 years ago

Which SDK version are you using?

0.3.0.6

What's the issue?

I am trying to access reach and impressions from FacebookAds::AdsInsights but I keep getting this error RuntimeError (load! is not supported for this object)

Steps/Sample code to reproduce the issue

ad_acc = FacebookAds::AdAccount.get('ad_account_id_here')
ad_acc.campaigns.all.first.insights.all.first.reach

Observed Results:

RuntimeError (load! is not supported for this object)

Expected Results:

youssef-sobhy commented 5 years ago

I figured that I can get the other fields by providing the fields argument, I will close the issue.