Hi,

When using the new Ads API to upload the audience with twitter_handle
API throws an error the twitter handle is not a valid attribute type but as per API docs twitter_handle is a valid type.

Response from TW Ads API :

{
    "request": [
        {
            "params": {
                "account_id": "XXXXXX",
                "tailored_audience_id": "XXXXXX"
            },
            "operation_type": "Update"
        }
    ],
    "operation_errors": [
        [
            {
                "code": "INVALID_PARAMETER",
                "message": "twitter_handle is not a valid tailored audience attribute type.",
                "parameter": ""
            }
        ]
    ]
}

Request body :

[
  {
    "operation_type": "Update",
    "params": {
      "users": [
        {
          "twitter_handle": [
            "XXXXXXXXXX"
          ]
        }
      ]
    }
  }
  ]

Good catch. It looks like the documentation is incorrect. This endpoint is expecting handle.

I’ll see that we get our documentation updated to reflect this.

1 Like

@osowskit1
Thanks for quick response.will use the handle.