0
마케팅 API 버전 2.6을 사용하고 있습니다. 2.5 버전에서는 필드 타겟팅을 사용하여 광고 세트에서 광고를 검색 할 수 있습니다. 그러나 2.6에서는 필드 타겟팅이 지원되지 않습니다. age_min, age_max, geo_locations 및 page_types를 검색하고 싶습니다. 광고 세트에서 타겟팅 필드를 검색하는 방법은 무엇입니까? 이것은 내가페이스 북 마케팅 API에서 타겟팅 광고 설정 필드
if(is_null(ACCESS_TOKEN) || is_null(APP_ID) || is_null(APP_SECRET)) {
throw new \Exception(
'You must set your access token, app id and app secret before executing'
);
}
if (is_null(ACCOUNT_ID)) {
throw new \Exception(
'You must set your account id before executing');
}
Api::init(APP_ID, APP_SECRET, ACCESS_TOKEN);
$adSet = new AdSet($adSetId);
$fields = array('name', 'targeting', 'creative', 'conversion_specs', 'redownload', 'genders', 'tracking_specs');
$result = $adSet->getAds($fields, $limit);