Hey I am wondering if anyone has had this error with the Linkedin API? I am making a call to search for creatives:
GET https://api.linkedin.com/rest/creatives?q=criteria&accounts=List(urn%3Ali%3AsponsoredAccount%3A00000000)
*The zeros replaced with the Account ID. I am following all the documentation from their website
Here is the error:
{
"errorDetailType": "com.linkedin.common.error.BadRequest",
"code": "CREATIVE_POST_REFERENCE_MISSING",
"message": "Cannot fetch this creative because the referenced post does not exist.",
"errorDetails": {
"inputErrors": [
{
"description": "Cannot fetch this creative because the referenced post does not exist.",
"input": {
"value": {
"stringValue": "22481881"
},
"inputPath": {
"fieldPath": "id"
}
},
"code": "CREATIVE_POST_REFERENCE_MISSING"
}
]
},
"status": 400
}
It looks like something is wrong with one or more of the creatives where the referenced post does not exist so it isn't returning the data. If I filter down the call to only active it does work.