Rabbott
Rabbott

Reputation: 4332

Facebook Ads API AdSet Creation Normalization Error

I'm getting an odd error from the Facebook ADs API. Sending the following payload:

{
  "campaign_group_id": "54321",
  "bid_type": "ABSOLUTE_OCPM",
  "name": "Hello AdCampaign",
  "bid_info": {
    "ACTIONS": 1
  },
  "targeting": {
    "behaviors": [
      {
        "name": "BEHAVIOR NAME",
        "id": 12345
      }
    ],
    "geo_locations": {
      "countries": [
        "US"
      ]
    },
    "page_types": "feed"
  },
  "campaign_status": "ACTIVE",
  "daily_budget": 100
}

Providing this payload to the ads api is returning the following error message:

You are requesting a transaction which requires the adgroups to be normalized, but normalize failed because Normalization expects a collection

Which has an associated error code of 1487079 which.. I cannot find documentation for.. ANYWHERE.

This will work, if I remove the behaviors attribute of targeting.. but of course that isn't desirable. So it's something to do with the behaviors.

Upvotes: 4

Views: 2145

Answers (1)

Craig Labenz
Craig Labenz

Reputation: 2555

As per the docs, I believe page_types should be a list. Try this:

{
    ...
    "page_types": ["feed"],
    ...
}

Upvotes: 3

Related Questions