UserAdStudies
GET /v19.0/{user-id}/ad_studies HTTP/1.1
Host: graph.facebook.com
/* PHP SDK v5.0.0 */
/* make the API call */
try {
// Returns a `Facebook\FacebookResponse` object
$response = $fb->get(
'/{user-id}/ad_studies',
'{access-token}'
);
} catch(Facebook\Exceptions\FacebookResponseException $e) {
echo 'Graph returned an error: ' . $e->getMessage();
exit;
} catch(Facebook\Exceptions\FacebookSDKException $e) {
echo 'Facebook SDK returned an error: ' . $e->getMessage();
exit;
}
$graphNode = $response->getGraphNode();
/* handle the result */
/* make the API call */
FB.api(
"/{user-id}/ad_studies",
function (response) {
if (response && !response.error) {
/* handle the result */
}
}
);
/* make the API call */
new GraphRequest(
AccessToken.getCurrentAccessToken(),
"/{user-id}/ad_studies",
null,
HttpMethod.GET,
new GraphRequest.Callback() {
public void onCompleted(GraphResponse response) {
/* handle the result */
}
}
).executeAsync();
/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
initWithGraphPath:@"/{user-id}/ad_studies"
parameters:params
HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
id result,
NSError *error) {
// Handle the result
}];
이 에지로부터 읽는 경우 JSON 형식의 결과를 반환합니다:
{ "
data
": [], "paging
": {}, "summary
": {} }
data
paging
summary
수치 등 에지에 관해 집계된 정보입니다. 요약 매개변수에 가져오려면 해당 필드를 지정하세요(예: summary=total_count
).
필드 | 설명 |
---|---|
total_count unsigned int32 | Total number of lift studies for this person |
오류 | 설명 |
---|---|
270 | This Ads API request is not allowed for apps with development access level (Development access is by default for all apps, please request for upgrade). Make sure that the access token belongs to a user that is both admin of the app and admin of the ad account |
ad_studies
에지에 POST 요청을 만들 수 있습니다: 매개변수 | 설명 |
---|---|
cells list<Object> | A shape to describe the cells of the study |
client_business numeric string or integer | Business associated with study |
confidence_level float | Confidence level used in power calculation and final report |
cooldown_start_time integer | The beginning of the pre measurement cooldown period. This period ends when the study period starts. |
description string | A brief description about the purpose of the study. |
end_time integer | The time when the study period ends. |
name string | The name of the study. |
objectives list<Object> | A vector of objects describing the objectives assigned to this study |
observation_end_time integer | The end of the observation period for this study, this period starts when the study period ends. |
start_time integer | The time when the study period starts. |
type enum {LIFT, SPLIT_TEST, CONTINUOUS_LIFT_CONFIG, GEO_LIFT} | The type of ad study, either SPLIT_TEST or LIFT. |
viewers list<int> | The list of people who this study has been shared with. |
id
로 표시되는 노드를 읽습니다.id
: numeric string, cell_ids
: List [objective_ids
: List [오류 | 설명 |
---|---|
100 | Invalid parameter |
200 | Permissions error |