POST /{pixel-id}/shared_accounts API (including previous versions) will not support sharing of pixels with an ad account, if a business account does not have access to both pixel and ad account. Refer to the pixel sharing API solution to use POST /{pixel-id}/agencies or use POST {ad_account}/agencies to share into a business account, then use POST /{pixel-id}/shared_accounts to link pixel and ad accountGET /v25.0/{business-id}/owned_ad_accounts HTTP/1.1
Host: graph.facebook.com
| Parameter | Description |
|---|---|
search_querystring |
search_query
|
{
"data": [],
"paging": {},
"summary": {}
}
| Field | Description |
|---|---|
total_countint32 |
Total number of accounts for this business.
default |
| Error Code | Description |
|---|---|
100 | Invalid parameter |
80004 | There have been too many calls to this ad-account. Wait a bit and try again. For more info, please refer to /docs/graph-api/overview/rate-limiting#ads-management. |
190 | Invalid OAuth 2.0 Access Token |
368 | The action attempted has been deemed abusive or is otherwise disallowed |
200 | Permissions error |
104 | Incorrect signature |
2635 | You are calling a deprecated version of the Ads API. Please update to the latest version. |
2500 | Error parsing graph query |
| Parameter | Description |
|---|---|
adaccount_idstring |
Ad account ID.
required |
Struct {
access_status: string,
}
| Error Code | Description |
|---|---|
3979 | You have exceeded the number of allowed ad accounts for your Business Manager at this time. |
3994 | Personal accounts that do not have any history of activity are not eligible for migration to a business manager. Instead create an ad account inside your business manager. |
100 | Invalid parameter |
3980 | One or more of the ad accounts in your Business Manager are currently in bad standing or in review. All of your accounts must be in good standing in order to create new ad accounts. |
415 | Two factor authentication required. User have to enter a code from SMS or TOTP code generator to pass 2fac. This could happen when accessing a 2fac-protected asset like a page that is owned by a 2fac-protected business manager. |
3936 | You’ve already tried to claim this ad account. You’ll see a notification if your request is accepted. |
368 | The action attempted has been deemed abusive or is otherwise disallowed |
3944 | Your Business Manager already has access to this object. |