Invalid User Profile Id

815 views
Skip to first unread message

datacon...@adobe.com

unread,
Jul 27, 2015, 12:10:21 AM7/27/15
to Google's DoubleClick for Advertisers API Forum
Hi,

On calling userProfiles.get API for a user profile linked to our google account, this is the response we are getting :

{

    "error": {

        "code": 400,

        "errors": [

            {

                "domain": "global",

                "message": "Invalid profileId.",

                "reason": "invalid"

            }

        ],

        "message": "Invalid profileId."

    }

}


User Profile Id - 1680633 


Although, we are able to access this user profile from DCM UI.

What could be the issue here?


Thanks,

Akshay


Jonathon Imperiosi (DCM API Team)

unread,
Jul 27, 2015, 12:21:29 AM7/27/15
to Google's DoubleClick for Advertisers API Forum, datacon...@adobe.com, datacon...@adobe.com
Hi Akshay,

This error normally means that the credentials being used to authenticate the request were generated for a Google account that is not associated with the profile you're specifying. You can check whether or not this is the case by making a request to the userProfiles.list method; it will return a list of all the profiles that can be reached with your current credentials.

Regards,
- Jonathon Imperiosi, DCM API Team

datacon...@adobe.com

unread,
Jul 27, 2015, 2:03:30 AM7/27/15
to Google's DoubleClick for Advertisers API Forum, dfaapiad...@google.com
Hi,

I have confirmed that this user profile is linked to the google account for which the credentials(i.e. OAuth 2.0 access token) were generated. We also got an email when this user profile was linked to our google account, just like when all other user profiles were linked. Also, I am able to view it in DCM UI (where it shows a list of linked user profiles, and gives an option to Choose default User profile).
But on calling the userProfiles.list method, it returns the details of all user profiles, except this one.
What error would it show(i.e. calling userProfiles.get) if the DCM account associated with this user profile wasn't enabled for API access? Could that be the problem here?(If so, how can we check that?)

Thanks,
Akshay

Jonathon Imperiosi (DCM API Team)

unread,
Jul 27, 2015, 2:14:40 AM7/27/15
to Google's DoubleClick for Advertisers API Forum, datacon...@adobe.com, datacon...@adobe.com
Hi Akshay,

If API access wasn't enabled at the account or user profile level, that would also result in a similar error. If you have admin permissions on this account, you could check the user profile permissions yourself from the UI. Otherwise, you'd need to check with an account admin or the DCM support team to confirm whether this is the case.

Another possibility is that the user profile is enabled for API access, but is lacking the permission(s) to retrieve user profile data. Have you tried querying any other resources (ads, creatives, etc.) to see if those requests succeed?

Regards,
- Jonathon Imperiosi, DCM API Team

datacon...@adobe.com

unread,
Jul 27, 2015, 4:45:13 AM7/27/15
to Google's DoubleClick for Advertisers API Forum, dfaapiad...@google.com
Hi Jonathon,

I created a Test user profile associated with a Test DCM account and selected a user role having no permissions at all, and linked it to our google account. I was able to call userProfiles.get and userProfiles.list for that user profile. So I don't think this could be a user role permission issue.
As for this particular user profile, it returns the same error (i.e. Invalid profileId) on calling other reporting API methods too, despite having correct user role permissions.
How can we check whether API access is enabled at both user profile and account level?  I don't understand the 2nd point here. Also, it seems the error is different (error code =403) when API access is not enabled for the DCM account.

Thanks,
Akshay

Jonathon Imperiosi (DCM API Team)

unread,
Jul 28, 2015, 12:54:48 AM7/28/15
to Google's DoubleClick for Advertisers API Forum, datacon...@adobe.com, datacon...@adobe.com
Hi Akshay,

You mentioned that you're seeing errors for other reporting methods...are these the only methods causing problems? Have you tried to log into the DDM Reporting UI using this profile to ensure it has reporting access? I could very well be that DCM UI and general trafficking access is working, but reporting access is not (note: these are controlled by separate permissions).

Regarding account level permissions, there's some general info about this in our help center. If you have adequate permissions, you can navigate to Admin > Account > Permissions to check whether the account-level API permission is enabled.

Regards,
- Jonathon Imperiosi, DCM API Team

datacon...@adobe.com

unread,
Jul 29, 2015, 9:41:06 PM7/29/15
to Google's DoubleClick for Advertisers API Forum, dfaapiad...@google.com
Hi Jonathon,

Thanks for your help, it looks like what you have highlighted is the problem here.
I tried logging into DDM Reporting UI and I couldn't see this user profile listed there, although I could see it in DCM UI.
Also, I tried calling the methods for which only trafficking scope is required (ads.list, campaigns.list), and they are working fine. But all the methods for which Reporting scope is required returns 'invalid profileId' error.
I have confirmed that the user role associated with this user profile has "DFA Reporting access" permission. What other permission are required for Reporting access? And is that on account level or user profile level?

Thanks,
Akshay

Jonathon Imperiosi (DCM API Team)

unread,
Jul 29, 2015, 9:48:09 PM7/29/15
to Google's DoubleClick for Advertisers API Forum, datacon...@adobe.com, datacon...@adobe.com
Hi Akshay,

I'm actually not super knowledgable about permissions that aren't directly related to the API. I would suggest getting in touch with our general DCM support team. They should be able to assist with getting this sorted out.

Regards,
- Jonathon Imperiosi, DCM API Team

Reply all
Reply to author
Forward
0 new messages