Closed mtam2 closed 4 years ago
https://github.com/facebook/facebook-ruby-business-sdk/commit/4382861c5d2c205d4af9fb2d31f0d4105f118bde#diff-c81ec6a2f566828f60cc0ebba678537bL473
Y'all changed it to ad_sets
from adsets
. Please update the all examples accordingly.
Just waisted 3 hours on this!
Not only it's ad_sets.create, if you need to fetch Ad Sets, you need to change it back to adsets
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. Thank you for your contributions.
Examples still use old deprecated syntax for retrieving an ad_account's adsets. https://github.com/facebook/facebook-ruby-business-sdk/blob/master/examples/AdAccountAdSetsPostCreateAdSet.rb#L32
Update: the class is now back to ad_account.adsets
without the underscore. It only took 3 months but this is back to normal and anyone who is using this gem after 2020-04-01 with version v0.6.0.2 should use adset
and NOT ad_set
.
Which SDK version are you using?
Ruby 2.6.0 facebookbusiness gem from versions
0.3.3.3
to0.4.0.1
What's the issue?
In versions >0.3.3.2,
FacebookAds::AdAccount.get("XXX").adsets
has lost the create method. This example to create an AdSet does not work as a result: https://github.com/facebook/facebook-ruby-business-sdk/blob/master/examples/AdAccountAdSetsPostCreateAdSet.rbSteps/Sample code to reproduce the issue
Observed Results:
Current traceback
Expected Results:
Intended traceback