CM360 Offline Conversions API

135 views
Skip to first unread message

Ahmet Buğra Buğa

unread,
Aug 23, 2023, 8:45:12 AM8/23/23
to Google's Campaign Manager 360 API Forum
Hello,

I'm trying to upload offline conversions to CM360 using the Cm360 Python client. I want to upload gclid but I cannot see this method example anywhere. The example only contains the encryptedUserId method, can you help me find how to upload gclid using Python?

Kind Regards,
Bugra

DCM API (DoubleClick Campaign Mgr)

unread,
Aug 23, 2023, 9:57:52 AM8/23/23
to bugra...@mathrics.com, google-doubleclick-...@googlegroups.com
Hi Bugra,

Thank you for reaching out to the CM360 API support team.

By reviewing your concern, I understand that you are trying to upload offline conversions using GCLIDs through the Python client library of the CM360 API. The available code sample Python client library of the CM360 API, consists of the encryptionInfo and conversions[] objects. The sample code does not contain the gclids, I would suggest to kindly modify your code based on your requirements to take gclid value as input under the conversions object. Please note that gclid is a string type that needs to be declared under the command-line flags.

Hope this helps. For any other assistance you may get back to us.
 
This message is in relation to case "ref:_00D1U1174p._5004Q2o7c95:ref"

Thanks,
 
Google Logo DCM API Team


Ahmet Buğra Buğa

unread,
Aug 23, 2023, 10:14:51 AM8/23/23
to DCM API (DoubleClick Campaign Mgr), google-doubleclick-...@googlegroups.com
Hello team,

Thank you for answering my questions.

I seem to understand what you mean. I have another question, when I want to send gclids more than once, will it be enough to add it as a list against the value? So I mean:

    conversion = {
        'floodlightActivityId': floodlight_activity_id,
        'floodlightConfigurationId': floodlight_config_id,
        'gclid': [gclid_list],
        'ordinal': current_time_in_micros,
        'timestampMicros': current_time_in_micros
    }

Kind regards,
Bugra

DCM API (DoubleClick Campaign Mgr)

unread,
Aug 23, 2023, 2:58:50 PM8/23/23
to bugra...@mathrics.com, google-doubleclick-...@googlegroups.com
Hi Team,

Thank you for getting back to us.

The string represents a single valid value and it is an invalid [gclid_list]. If you need to store multiple values, it's advisable to create distinct sections of code, and utilize the single value as input because the string format does not support multiple values. Hope this helps.

Ahmet Buğra Buğa

unread,
Aug 24, 2023, 5:23:54 AM8/24/23
to DCM API (DoubleClick Campaign Mgr), google-doubleclick-...@googlegroups.com
Hello,

Thank you for your response

So for each gclid I need to change the gclid value in Conversion and should I run the batchinsert for each gclid value? For example:

   conversion = {
        'floodlightActivityId': floodlight_activity_id,
        'floodlightConfigurationId': floodlight_config_id,
        'gclid': gclid_1,
        'ordinal': current_time_in_micros,
        'timestampMicros': current_time_in_micros
    }

   conversion = {
        'floodlightActivityId': floodlight_activity_id,
        'floodlightConfigurationId': floodlight_config_id,
        'gclid': gclid_2,
        'ordinal': current_time_in_micros,
        'timestampMicros': current_time_in_micros
    }
....
every time run request below:
Screenshot 2023-08-24 at 12.22.38.png

DCM API (DoubleClick Campaign Mgr)

unread,
Aug 24, 2023, 7:24:10 AM8/24/23
to bugra...@mathrics.com, google-doubleclick-...@googlegroups.com
Hi Bugra,


Thank you for getting back to us.

Yes, you need to pass gclid value in the conversions and should run batchinsert for each gclid value. From API documentation, it is informed that individual batchinsert and batchupdate requests are limited to 1,000 conversions.


Hope this helps. For any other assistance you may get back to us.
 
Reply all
Reply to author
Forward
0 new messages