vendor_id.GET Requestcurl -X GET \
-F "child_business_external_id=<VENDOR_ID>" \
"https://graph.facebook.com/v<API_VERSION>/<Business_id>/owned_businesses?access_token=<ACCESS_TOKEN>"
{
"child_business_id": 3213232
}
GET Requestcurl -X GET \
"https://graph.facebook.com/v<API_VERSION>/<Business_id>/?fields=collaborative_ads_managed_partner_business_info&access_token=<ACCESS_TOKEN>"
{
"collaborative_ads_managed_partner_business_info": {
"seller_business_status": "ready",
"seller_business_info": {
"seller_external_website_url": "https://www.website.com",
"partner_facebook_page": {
"id":"9999999"
}
},
"ad_account": {
"id": "act_11111111",
"currency": "USD"
},
"page": {
"id": "3333333"
},
"catalog_segment": {
"id": "2222222"
},
"extended_credit": {
"receiving_credit_allocation_config": {
"partition_type": "FIXED",
"id":"66666666"
},
"max_balance": {
"amount":"5,000.00",
"amount_in_hundredths":"500000",
"currency":"USD",
"offsetted_amount":"500000"
},
"id":"888888888"
},
"active_seller_campaign": {
"status": "ACTIVE",
"id": "1111111"
},
"template": [
{
"budget_percentage": 0.5,
"campaign_template_id": "4444444",
"adgroup_template_ids": [
"5555555"
],
"targeting_type": "retargeting"
},
{
"budget_percentage": 0.5,
"campaign_template_id": "6666666",
"adgroup_template_ids": [
"7777777"
],
"targeting_type": "prospecting"
}
]
},
"id": "<child_business_manager_id>"
}
POST Requestcurl \
-F 'id=<CHILD_BUSINESS_MANAGER>' \
-F 'app_id=<App_ID>' \
-F 'scope=ads_management,business_management' \
-F 'access_token=<Parent BM Admin System User Access Token>' \
-F 'appsecret_proof=<APP_SECRET>' \
"https://graph.facebook.com/<API_VERSION>/<CHILD_BUSINESS_MANAGER_ID>/access_token"
{
"access_token": "<CHILD_BM_ACCESS_TOKEN>"
}
| Field | Description |
|---|---|
seller_external_website_url type: string | Optional. Seller’s external website URL. |
seller_email_address type: string | Optional. A unique email address value. |
active_page_idtype: string | Optional. Seller’s Page ID to run campaign. |
active_ad_account_idtype: string | Optional. Seller’s active ad account. |
templatetype: JSON | Optional. Seller’s Custom Template. Sample |
POST Requestcurl \
-F "seller_external_website_url='http://shop.com'" \
-F "ad_account=<SELLER_ACTIVE_AD_ACCOUNT_ID>" \
"https://graph.facebook.com/v<API_VERSION>/<Child_Business_id>/managed_partner_business_setup?access_token=<ACCESS_TOKEN>"
{
"id": 3213232, // id of child business
"meta_data": {
"seller_business_info": {
"seller_email_address": "goodseller@fb.com"
"seller_external_website_url": "www.website.com"
},
"ad_account": {
"id": "434343",
"spend_limit": "500",
},
"page": {
"id": "123412341",
},
"template": [
{
"budget_percentage": 0.5,
"campaign_template_id": "4444444",
"adgroup_template_ids": [
"5555555"
],
"targeting_type": "retargeting"
},
{
"budget_percentage": 0.5,
"campaign_template_id": "6666666",
"adgroup_template_ids": [
"7777777"
],
"targeting_type": "prospecting"
}
]
}
}
| Error Code | Error Subcode | Description |
|---|---|---|
1800002 | 2310138 | The business name {invalid_business_name} is not a valid name. Consider using {business_name} instead. Business names must meet Facebook’s business name requirements. |
1800004 | 2310127 | Remove or update the following invalid country codes listed for the partner’s registration countries: [{invalid_registration_country_codes}]. |
1800010 | 2310167 | You’re attempting to use a managed partner ads (MPA) API to update ads for a business that has not onboarded to MPA. Check the business being used, or use a different API. |
1800301 | 2310129 | You entered an invalid Facebook page URL {page_url} for this partner. Check the link or enter a new one. |
1800302 | 2310130 | The Facebook Page you entered {page_url} belongs to your business. Enter a Facebook Page that belongs to the partner. |
1800303 | 2310132 | You entered a Page {page_url} that is linked to another partner. Check the link or enter a new URL for the partner’s Facebook Page. |
1800304 | 2310131 | You’ll need to select another Page for this partner because the one you selected cannot be used with managed partner ads. |
1800403 | 2310072 | The template config belonging to this seller is invalid. |
| Basis for Comparison | Default Template | Custom Template |
|---|---|---|
Creation | The default template is created during the onboarding process that must be completed for Managed Partner Ads. | The custom template is created by the marketplace in the Template Creation flow from existing campaigns they previously created in Ads Manager. |
Configurable properties | Facebook automatically configures the ad sets and ads for the default template. The budget split can be specified for retargeting and prospecting ad goals. The marketplace can specify the primary text and UTM parameters. | Stores configurations from campaigns previously created in Ads Manager. Along with this, budget split for retargeting and prospecting ad goals can be specified for each seller. |
Scope | Every marketplace has a default template, which is a global asset, ready for use with any and all seller campaigns, at any time. | Only one custom campaign template at a time is permitted per seller. The marketplace can change the custom template to contain different ad set and/or ad component anytime. |
Advantage | Allows marketplaces to set common settings to be applied to all seller campaigns. | Allows the marketplace to configure a broad set of campaign parameters and details that could support special promotions, seasonal campaigns, sales events, and other occasions that require special settings. Additionally, storing campaign configurations helps marketplaces manage and scale their seller campaigns with minimal effort. |
Campaign creation | Use the main campaign creation instructions. To create and run seller’s ads using the default template, set the use_marketplace_template field to true. | Use the main campaign creation instructions. To create and run seller’s ads using the custom template, set the use_seller_template field to true. |
template."template":[
{
"budget_percentage":0.5,
"campaign_template_id":"160235235998069",
"adgroup_template_ids":[
"447963739637509"
],
"targeting_type":"retargeting"
},
{
"budget_percentage":0.5,
"campaign_template_id":"278452090413983",
"adgroup_template_ids":[
"458654975391261"
],
"targeting_type":"prospecting"
}
]
use_seller_template to true.