Reporting API - Conversions Upload 404

136 views
Skip to first unread message

Harry Brant

unread,
Feb 18, 2020, 7:43:33 PM2/18/20
to Google's DoubleClick Campaign Manager API Forum
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

DCM API (DoubleClick Campaign Mgr)

unread,
Feb 19, 2020, 2:00:20 AM2/19/20
to ha...@avanser.com.au, google-doubleclick-...@googlegroups.com
Hi Harry,

Thank you for reaching out to us. Let me do the best I can to assist you in this.

Could you please provide the following details via Reply privately to author option in order for us to assist you further?
  • DCM Account ID
  • Profile ID
  • Floodlight Activity ID
In addition, could you please try to upload conversion to our API explorer, and let me know how it goes?

Regards,
Teejay Pimentel
DCM API Team

ref:_00D1U1174p._5001UV1TnJ:ref

DCM API (DoubleClick Campaign Mgr)

unread,
Feb 20, 2020, 2:01:58 PM2/20/20
to ha...@avanser.com.au, google-doubleclick-...@googlegroups.com
Hi Harry,

This is Lakshmi. I work along with Jeff. I couldn't find any calls for the floodlight activity 8837655 in the backend, Could please send the actual API request that was sent to us. This request should include the actual values for all the attributes. You can send the one that was sent via API explorer.

Thanks,
Lakshmi, DCM API Team


ref:_00D1U1174p._5001UV1TnJ:ref

Harry Brant

unread,
Apr 7, 2020, 8:59:46 PM4/7/20
to Google's DoubleClick Campaign Manager API Forum
Issue was due to pushing the "Account ID" value instead of the "Advertiser ID" value for the "Encryption Entity ID". Once updated to the "Advertiser ID", conversions were received successfully.

If anyone else has this issue, check you're pushing the correct value for the Encryption Entity ID, as the DCM API does not state in the error code what value is incorrect.
Reply all
Reply to author
Forward
0 new messages