![]() |
DCM API Team |
[2025-06-06 03:46:09Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01reSXd:ref" (ADR-00310456)
Hi Team
Thanks a lot for clarifying that. We are trying to do the automated set up where we created and scheduled a report on CM360 and now trying to download this using CM360 API (Python code).
Main issue we are facing is we have a profileid 10180849 for which I can login with my userid+password and create a report, but I am unable to download that report programmatically in my python code using service account.
Please let us know if we need to make changes to our authentication approach or how to create+schedule a report with service account logging into browser.
Thanks
Ashish Singla
From:
"'DCM API (DoubleClick Campaign Mgr)' via Google's Campaign Manager 360 API Forum" <google-doubleclick-...@googlegroups.com>
Reply-To: "DCM API (DoubleClick Campaign Mgr)" <dcm...@forumsupport.google>
Date: Thursday, June 5, 2025 at 11:47 PM
To: "google-doubleclick-...@googlegroups.com" <google-doubleclick-...@googlegroups.com>
Subject: RE: [EXTERNAL] unable to access a report with service account
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you can confirm the sender and know the content is safe. |
Hi Ashish,
Thank you for reaching out to the DCM API support team.
Please be informed that I have removed your response from the forums as it contains the PII information.
Based on the information provided, I understand that you have created a report ID (1451165246) under profile ID 10180849, and later added a service account to your CM360 account, which resulted in a new profile ID (10271929) for the service account. You are
now trying to access the report using the service account, but encountering an 'Invalid profile ID' error.
Please note that this behavior is expected a report created under one profile ID cannot be accessed using a different profile ID, even if the report is shared. The CM360 API requires that the profile ID used in the request must belong to the user or service
account making the request. Therefore, to access a report using the service account, you must create the report under the service account’s profile ID (10271929) and then use that same report ID when calling the API.
Thanks,
|
DCM API Team |
Feedback
How was our support today?
[2025-06-06 03:46:09Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01reSXd:ref" (ADR-00310456)
--
You received this message because you are subscribed to the Google Groups "Google's Campaign Manager 360 API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
google-doubleclick-for-ad...@googlegroups.com.
To view this discussion visit
https://groups.google.com/d/msgid/google-doubleclick-for-advertisers-api/_XkHk000000000000000000000000000000000000000000000SXF14X00KrDdEQ_zQYan7hjXsDqkBQ%40sfdc.net.
Just adding some info to previous thread:
I found out that we could not login to CM360 using service account . Could you please let us know the setup process to create a report in CM360 UI and download using service account programmatically.
What permissions of access should be given to CM360 report and with which user it need to be created so that service account have access to report.
Thanks
Ashish Singla
Hi,
Here are the answers for your queries:
1. How can we download the report using CM360 API created with my ID ( profileid 10180849)
To download the report via the CM360 API , you can use the files.get method where you need to pass the Report Id and File Id if successful the output contains the "browserUrl " where you can download the report directly from the browserUrl link.
2. As you mentioned we should create a report in profileid 10271929 ( Service account). How can we login to CM360 in browser using a service account as it has email+username but no password.
To create a report using the service account, I would suggest you to refer to this link to create and update the reports. You can refer to the Service Accounts for configuring service accounts and Authorize requests for additional information. The service account does not require human authorization but instead uses a key file that only your application can access.
To create and access the report, I would suggest you to refer to this link for all the permissions required. You can go through this link on how to manage user access. Creating a report in the UI and login to CM360 are UI related concerns which are out of scope for us. Please note that we can only resolve technical issues / concerns related to the DCM API.
Can you please share us with the Network Id in order to proceed further?
You can send them via Reply privately to the author or Direct reply to this email option.
Thanks,
![]() |
DCM API Team |