Get client information Through the DMC API is not possible

84 views
Skip to first unread message

Guido Hinestroza

unread,
Mar 15, 2023, 5:58:12 PM3/15/23
to Google's Campaign Manager 360 API Forum
we are trying to get the client information  using the DMC API Through a service account, we create a service account in our side and the cliente grant us permission to consume their data, but when we try list the profile ID that we supose have access, always get the same error:

googleapiclient.errors.HttpError: <HttpError 400 when requesting https://dfareporting.googleapis.com/dfareporting/v4/userprofiles?alt=json returned "No valid profile was found.". Details: "[{'message': 'No valid profile was found.', 'domain': 'global', 'reason': 'required'}]">

What is the best way to ensure that the proper permissions are given?

What is the step by step that the client should follow to be sure that they are giving us all the permissions we need?

Is it possible to consume our client's information using a service account or should we use another method?


DCM API (DoubleClick Campaign Mgr)

unread,
Mar 16, 2023, 6:59:40 AM3/16/23
to ghine...@videoamp.com, google-doubleclick-...@googlegroups.com
Hi Guido,

Thank you for reaching out to our support alias. 

For your use case, you should be able to retrieve the list of account user profiles using the accountUserProfiles.list. As per checking on the provided logs, I could see that you're getting an "No valid profile was found" error response. This usually occurs if you're trying to submit an API request with non-existing or invalid profile ID. With that, we would recommend checking the profile ID being use is valid.

Regards,
Google Logo DCM API Team
 

ref:_00D1U1174p._5004Q2jzPrT:ref

Guido Hinestroza

unread,
Mar 16, 2023, 10:35:56 AM3/16/23
to Google's Campaign Manager 360 API Forum
Hello, 

I actually I'm trying this service.userProfiles().list().execute()
In theory this should be return the list with the profileID available,  but instead a I got the error that I sent you, I suspect that I have no access to any Profile ID, but the client insist the permissions was granted.

DCM API (DoubleClick Campaign Mgr)

unread,
Mar 16, 2023, 3:22:58 PM3/16/23
to ghine...@videoamp.com, google-doubleclick-...@googlegroups.com

Hello Guido,

I can see that you are utilizing the userProfiles.list method. Would you be able to try also the previously suggested of accountUserProfiles.list method? Moreover, can you share with us the below information so we could investigate further?


You may send the requested information privately via "Reply To Author" option.

Regards,

Reply all
Reply to author
Forward
0 new messages