Facebook Graph API - Is it possible to get the offer & ldquo; Suggest & rdquo; For an ad set?

advertisements

Is it possible to get the suggested bid of an ad_set from the graph or through the facebook ads php sdk api? I would like to create an app that queries the api daily to get the "suggested bid" from all of my ad sets. This would help to track if competition rises or decreases for the targeting of my ad sets.

I have searched the facebook developer docs but have not been able to find this information. Any help would be greatly appreciated.


Yes, there's an API for that purpose, the reach estimate also includes info about the suggested bid range for that set of targeting options

You can query for both an existing ad, and for a set of targeting options not currently applied to an ad

https://developers.facebook.com/docs/marketing-api/reachestimate/v2.5

Sample call:

curl -G \
  -d 'currency=USD' \
  -d 'optimize_for=OFFSITE_CONVERSIONS' \
  --data-urlencode 'targeting_spec={
    "geo_locations": {"countries":["US"]},
    "age_min": 20,
    "age_max": 40
  }' \
  -d 'access_token=<ACCESS_TOKEN>' \
  https://graph.facebook.com/v2.5/act_<AD_ACCOUNT_ID>/reachestimate

Sample response:

{
  "data": {
    "users": 186000000,
    "bid_estimations": [
      {
        "unsupported": false,
        "location": 3,
        "bid_amount_min": 39,
        "bid_amount_median": 80,
        "bid_amount_max": 121
      }
    ],
    "estimate_ready": true
  }
}