Get Ad Set schedule details

122 views Asked by At

I am currently using:

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

Which is similar to:

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

This returns the campaign_schedule array deep within the response object.

How can I get just the campaign schedule as an array/object?

Documentation here: https://developers.facebook.com/docs/marketing-api/adset/pacing/v2.3

1

There are 1 answers

3
Paul Bain On BEST ANSWER

The campaign schedule will be a member variable of the object returned.

print_r($adset->campaign_schedule);