问题描述
I'm trying to get the content of a facebook ad.
我正在尝试获取facebook广告的内容。 Or to be more exact: A link which is part of the ad.
或者更确切地说:作为广告一部分的链接。 I can extract the link from the content, but can't seem to get the content in the first place.
我可以从内容中提取链接,但似乎无法获得内容。
After initializing the connection I get the current ad account:
初始化连接后,我会获得当前的广告帐户:
$me = new AdUser('me');
/** @var AdAccount $account */
$account = $me->getAdAccounts()->current();
I tried with campaigns, ads and creatives, but none of them seam to contain the actual html content of the add.
我尝试过广告系列,广告和广告素材,但没有一个能够包含添加内容的实际html内容。
$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 matching fields in campaigns and ads.
据我所知,广告系列和广告中没有匹配的字段。 I looked through all fields returned by $object->getData() .
我查看了$object->getData()返回的所有字段。
发表评论:
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。