I am trying to get content on facebook ad. Or rather: a link that is part of the ad. I can extract the link from the content, but it seems I cannot get the content in the first place.
After initializing the connection, I get the current account:
$me = new AdUser('me'); $account = $me->getAdAccounts()->current();
I tried with campaigns, ads, and ads, but none of them could contain the actual html content to add.
$campaigns = $account->getCampaigns([ CampaignFields::ID, CampaignFields::NAME ]); $ads = $account->getAds([ AdFields::ID, AdFields::NAME ]); $creatives = $account->getAdCreatives([ AdCreativeFields::NAME, AdCreativeFields::BODY ]);
As far as I know, there are no corresponding fields in campaigns and ads. I looked through all the fields returned by $object->getData() .
source share