I'm using Facebook Ads API SDK for PHP (Marketing API Version 2.3) In order to retrieve all the information I can get From Ads Which I created.
I already made a connection and managed to get the info about Insights,Statistics and reach estimate of ads but the problem is when I'm trying to read the info from the adCreative all the returning info is NULL!
this is the code:
$adgroup = new AdGroup($ad_set_id);
$target=$adgroup->getAdCreatives();
$arr_obj=$target->getObjects();
$toPrint1=$arr_obj[0];
var_dump($toPrint1->getData());
- I only need the Body and the Title
- I checked this with tens of different adSet ID
- All the adSet ID are Active and there fields are full with information
- I tried to add img but I couldn't because I'm new user