2016-06-11 2 views
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); 

답변

0

어쩌면 $은 = $ adSet- 결과 필드> 읽기 ($ 필드)를 얻기 위해 사용했던 코드입니다; 작동해야합니까?

"getAds"는 광고 아래 광고를 가져옵니다. 광고 세트의 입력란에 관심이있는 것으로 보입니다. 광고가 아닌 광고에 관심이있는 것 같습니다.

관련 문제