Reputation: 143
I'm encountering a strange issue when it comes to retrieving data from the php facebook ads api. In our account, we are running several types of ad programs, one being a page like boost campaign. I am able to get several page likes stats, however after about 17 calls to the api, I receive the following error. Any ideas as to what's going on here. It's a strange error message, because I'm able to retrieve actions in every call prior (17 calls).
Uncaught exception 'InvalidArgumentException' with message 'actions is not a field of FacebookAds\Object\Insights' in C:\wamp\www\api_integration\facebook_ads\vendor\vendor\facebook\php-ads-sdk\src\FacebookAds\Object\AbstractObject.php on line 56
Upvotes: 1
Views: 392
Reputation: 7244
To me, this is an issue with the sdk.
Retrieving data of the same type do not have to success sometimes and throw some other based on the presence of an attribute.
I've opened an issue and offered a pull request.
Upvotes: 0