您的位置 首页 海外营销

使用Facebook PHP SDK获取Facebook广告内容

问题描述我正在尝试获取facebook广告的内容。或者更确切地说:作为广告一部分的链接。place.我可以从内容中提取链接,但似乎无法获得内容。account:…

问题描述

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:

使用Facebook PHP SDK获取Facebook广告内容

初始化连接后,我会获得当前的广告帐户:

$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()返回的所有字段。

声明:立推宝倡导尊重与保护知识产权,转载此文是出于传递更多信息之目的。如发现本网站文章、图片等存在版权问题,我们将及时更正、删除,谢谢。 邮箱地址:kefu@lituibao.com,我们会在第一时间删除或处理相关内容。

为您推荐

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

联系我们

联系我们

189-1057-3020

Q Q: 755436989

邮箱: kefu@lituibao.com

关注微信
微信扫一扫关注我们

微信扫一扫关注我们

关注微博
返回顶部