This business owns these ads-related studies. Includes lift studies, split tests and so on.
GET /v21.0/{business-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(
'/{business-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(
"/{business-id}/ad_studies",
function (response) {
if (response && !response.error) {
/* handle the result */
}
}
);
/* make the API call */
new GraphRequest(
AccessToken.getCurrentAccessToken(),
"/{business-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:@"/{business-id}/ad_studies"
parameters:params
HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
id result,
NSError *error) {
// Handle the result
}];
错误 | 描述 |
---|---|
200 | Permissions error |
100 | Invalid parameter |
190 | Invalid OAuth 2.0 Access Token |
80004 | There have been too many calls to this ad-account. Wait a bit and try again. For more info, please refer to https://developers.facebook.com/docs/graph-api/overview/rate-limiting#ads-management. |
2500 | Error parsing graph query |
104 | Incorrect signature |
ad_studies
连线发出 POST 请求:参数 | 描述 |
---|---|
cells list<Object> | Describes the cells in the study. 必填 |
client_business numeric string or integer | Business associated with the study. |
confidence_level float | Confidence level used in power calculations and final study report. |
cooldown_start_time integer | Start of the pre-measurement cool-down period. This period ends when the study period starts. |
description string | The purpose of the study. |
end_time integer | Time when the study period ends. 必填 |
name string | 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, BACKEND_AB_TESTING} | The type of ad study, such as |
viewers list<int> | This study is shared with these people. |
id
代表的节点。id
: numeric string, 错误 | 描述 |
---|---|
100 | Invalid parameter |