Create Ad Accounts
To use this API, you must have a valid business and page setup. If you have any incomplete ad accounts or pages unpublished by Facebook, your calls fail.
To create a new ad account for a business, specify name
, currency
, timezone_id
, end_advertiser
, media_agency
, and partner
. Please see the following conditions:
media_agency
andpartner
must be a Facebook Page Alias, Facebook Page ID or a Facebook app ID.end_advertiser
must be a Business ID.
For example, to identify your company as an advertiser for itself, specify my company or 20531316728
.
If your ad account doesn't have an advertiser, Media Agency, or Partner, specify NONE
. If your ad account has an advertiser, Media Agency, or Partner, but they are not on Facebook as a Page or an app, specify UNFOUND
.
POST
https://us-central1-appgregator.cloudfunctions.net/facebook/adaccounts/
Query Parameters
name*
String
ft-4
connection_name*
String
fbads-01
business_id*
String
404745734937629
Headers
x-api-key
String
U2Fsd...
{
"error": {
"message": "Unsupported post request. Object with ID '404745734937629' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",
"type": "GraphMethodException",
"code": 100,
"error_subcode": 33,
"fbtrace_id": "AcmjOyGv6OE5hK47MP98WPN"
}
}
Last updated