Facebook AdSet API"您的预算太低"错误

时间:2016-10-06 20:00:03

标签: json facebook api facebook-graph-api facebook-php-sdk

问题

我向Facebook的广告集API发出请求,尝试使用以下JSON blob创建广告集,我收到的错误是“#34;您的预算太低”。此广告集的最低预算为32.04美元。"

广告集设置为使用auto_bid和有效lifetime_target。该广告设置为31天,每日预算最低为1美元,设置64美元的终身预算应该已经足够。

尝试解决方案

  1. 我试图设置更高的生命周期预算:从64到1000到5000.在这种情况下1000不起作用,但是5000起了。
  2. 使用JSON Blob

        Array
        (
            [account_id] =>
            [adset_schedule] =>
            [bid_amount] =>
            [billing_event] => IMPRESSIONS
            [budget_remaining] =>
            [campaign_id] => 6054825216096
            [created_time] =>
            [creative_sequence] =>
            [daily_budget] =>
            [end_time] => 2016-11-08T07:59:59+0000
            [id] =>
            [is_autobid] => 1
            [lifetime_budget] => 64
            [lifetime_imps] =>
            [name] => Some-Test-Campaign
            [optimization_goal] => LINK_CLICKS
            [pacing_type] =>
            [recommendations] =>
            [rf_prediction_id] =>
            [start_time] => 2016-10-07T07:00:00+0000
            [updated_time] =>
            [targeting] => FacebookAds\Object\TargetingSpecs Object
                (
                    [data:protected] => Array
                        (
                            [genders] =>
                            [age_min] =>
                            [age_max] =>
                            [geo_locations] => Array
                                (
                                    [zips] => Array
                                        (
                                            [0] => Array
                                                (
                                                    [key] => US:98004
                                                )
    
                                            [1] => Array
                                                (
                                                    [key] => US:98005
                                                )
    
                                            [2] => Array
                                                (
                                                    [key] => US:98006
                                                )
    
                                            [3] => Array
                                                (
                                                    [key] => US:98007
                                                )
    
                                            [4] => Array
                                                (
                                                    [key] => US:98008
                                                )
    
                                            [5] => Array
                                                (
                                                    [key] => US:98009
                                                )
    
                                            [6] => Array
                                                (
                                                    [key] => US:98011
                                                )
    
                                            [7] => Array
                                                (
                                                    [key] => US:98014
                                                )
    
                                            [8] => Array
                                                (
                                                    [key] => US:98015
                                                )
    
                                            [9] => Array
                                                (
                                                    [key] => US:98019
                                                )
    
                                            [10] => Array
                                                (
                                                    [key] => US:98021
                                                )
                                        )
    
                                )
    
                            [geo_markets] =>
                            [excluded_geo_locations] => Array
                                (
                                    [countries] => Array
                                        (
                                        )
    
                                )
    
                            [exclusions] =>
                            [user_adclusters] =>
                            [interests] =>
                            [user_os] =>
                            [user_device] =>
                            [wireless_carrier] =>
                            [page_types] => Array
                                (
                                    [0] => desktopfeed
                                    [1] => mobilefeed
                                    [2] => mobileexternal
                                    [3] => rightcolumn
                                )
    
                            [connections] =>
                            [excluded_connections] =>
                            [family_statuses] =>
                            [friends_of_connections] =>
                            [flexible_spec] => Array
                                (
                                    [0] => Array
                                        (
                                            [interests] => Array
                                                (
                                                    [0] => Array
                                                        (
                                                            [id] => 6003277229371
                                                        )
    
                                                )
    
                                            [behaviors] => Array
                                                (
                                                    [0] => Array
                                                        (
                                                            [id] => 6017447625983
                                                        )
    
                                                )
    
                                        )
    
                                )
    
                            [behaviors] =>
                            [relationship_statuses] =>
                            [interested_in] =>
                            [life_events] =>
                            [location_types] =>
                            [politics] =>
                            [markets] =>
                            [industries] =>
                            [income] =>
                            [net_worth] =>
                            [home_type] =>
                            [home_ownership] =>
                            [home_value] =>
                            [ethnic_affinity] =>
                            [generation] =>
                            [household_composition] =>
                            [moms] =>
                            [office_type] =>
                            [education_schools] =>
                            [education_statuses] =>
                            [college_years] =>
                            [education_majors] =>
                            [work_employers] =>
                            [work_positions] =>
                            [locales] =>
                            [zips] =>
                            [custom_audiences] =>
                            [custom_locations] =>
                            [excluded_custom_audiences] =>
                            [dynamic_audience_ids] =>
                            [product_audience_specs] =>
                            [excluded_product_audience_specs] =>
                        )
    
                )
    
            [promoted_object] =>
            [adlabels] =>
            [product_ad_behavior] =>
            [execution_options] =>
            [configured_status] =>
            [effective_status] =>
        )
    

    为简单起见,我缩短了定位条件,但目标是超过100个邮政编码。

2 个答案:

答案 0 :(得分:3)

此处的解决方案是lifetime_budget以美分表示,因此64美元应为6400.

答案 1 :(得分:2)

您可以检查您设置的预算是否不是必需的。

在端点执行此检查:

https://graph.facebook.com/v2.12/act_{ads_account_id}/minimum_budgets

带标题:

Authorization: Bearer {your token with 'ads_management' rights to this account}

返回:

{
"data": [
    {
        "currency": "AED",
        "min_daily_budget_imp": 300,
        "min_daily_budget_video_views": 300,
        "min_daily_budget_high_freq": 750,
        "min_daily_budget_low_freq": 6000
    },
    {
        "currency": "ARS",
        "min_daily_budget_imp": 400,
        "min_daily_budget_video_views": 400,
        "min_daily_budget_high_freq": 1000,
        "min_daily_budget_low_freq": 8000
    }
]
}

PS。我知道,我的回答迟了2年,但有人可能觉得它很有用。