Hi All,
We have been trying to integrate with the DCM API for the purposes of uploading offline conversions, however have been unsuccessful. We're currently encountering a "404 Not Found" when sending the conversion to a client's DCM account. We're using the %m Match Macro method to attribute the conversion and the official PHP client library for generating and performing the requests.
Here's what we're sending. Please note that I've omitted any sensitive information:
Headers:
Content-Type: application/json
Authorization: Bearer [token]
"conversions": [
{
"encryptedUserId": "[ID]",
"floodlightActivityId": "[ID]",
"floodlightConfigurationId": "[ID]",
"ordinal": 0,
"timestampMicros": 1.5717261E15
}
],
"encryptionInfo": {
"encryptionEntityId": "[ID]",
"encryptionEntityType": "DCM_ADVERTISER",
"encryptionSource": "AD_SERVING"
}
}
Response:
404 Not Found
{
"
error": {
"
errors":
[ {
"domain": "global",
"reason": "notFound",
"message": "Not Found"
}
],"code": 404,
"message": "Not Found"
}
}
Strangely, if we omit the Content-Type header entirely, we get a 200 OK response with the following body:
{
"kind": "dfareporting#conversionsBatchInsertResponse",
"hasFailures": false,
"status": [],
}However we confirmed the conversion count for the floodlight doesn't update in DCM.
Would greatly appreciate any advice on this, as we're pulling our hair out trying to figure this out.
Thanks,
Harry