获取广告集时间表详细信息

Get Ad Set schedule details

我目前正在使用:

$output = $adset->read(array("campaign_schedule"));

类似于:

curl -G \
-d "fields=campaign_schedule" \
-d "access_token=___" \
-d "method=get" \
'https://graph.facebook.com/{adset_id}'

这个 returns 响应对象深处的 campaign_schedule 数组。

如何才能只获得活动时间表作为 array/object?

此处的文档: https://developers.facebook.com/docs/marketing-api/adset/pacing/v2.3

活动时间表将是返回对象的成员变量。

print_r($adset->campaign_schedule);