Business Pending Owned Ad Accounts - Facebook For Developers

API Marketing
  • Tổng quan
  • Bắt đầu
  • Nội dung quảng cáo
  • Bidding
  • Công cụ quy tắc quảng cáo
  • Đối tượng
  • API Thông tin chi tiết
  • Sự phù hợp và an toàn của thương hiệu
  • Cách làm tốt nhất
  • Khắc phục sự cố
  • Tài liệu tham khảo về API
  • Nhật ký thay đổi
Phiên bản API Đồ thịv24.0Business Pending Owned Ad Accounts

Đọc

This business requested ownership of these ad accounts. And the requests are still pending approval.

Ví dụ

HTTPPHP SDKJavaScript SDKAndroid SDKiOS SDKGraph API ExplorerGET /v24.0/{business-id}/pending_owned_ad_accounts 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}/pending_owned_ad_accounts', '{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}/pending_owned_ad_accounts", function (response) { if (response && !response.error) { /* handle the result */ } } );/* make the API call */ new GraphRequest( AccessToken.getCurrentAccessToken(), "/{business-id}/pending_owned_ad_accounts", 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}/pending_owned_ad_accounts" parameters:params HTTPMethod:@"GET"]; [request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) { // Handle the result }];Nếu bạn muốn tìm hiểu cách sử dụng API Đồ thị, hãy đọc Hướng dẫn sử dụng API Đồ thị của chúng tôi.

Thông số

Điểm cuối này không có bất kỳ thông số nào.

Trường

Đọc từ cạnh này sẽ trả về một kết quả JSON đã định dạng:

{ "data": [], "summary": {} }

data

Danh sách nút BusinessAdAccountRequest.

summary

Thông tin tổng hợp về cạnh, chẳng hạn số lượng. Hãy chỉ định các trường để tìm nạp trong thông số tóm tắt (như summary=total_count).

TrườngMô tả
total_countint32

Total number of accounts.

Mặc định

Mã lỗi

LỗiMô tả
368The action attempted has been deemed abusive or is otherwise disallowed
100Invalid parameter

Tạo

Bạn không thể thực hiện thao tác này trên điểm cuối này.

Cập nhật

Bạn không thể thực hiện thao tác này trên điểm cuối này.

Xóa

Bạn không thể thực hiện thao tác này trên điểm cuối này.

Từ khóa » Cách đọc Owned