API Access for Reporting purposes

251 views
Skip to first unread message

Naomy Cana

unread,
May 10, 2023, 8:39:17 AM5/10/23
to Google's Campaign Manager 360 API Forum
A CM360 user is looking to access our API to get reporting metrics - he currently has full access to the account but is unable to get an API key/link.

What are the steps required in order to do the above?

Thanks,
Naomy

Ian Pletcher

unread,
May 10, 2023, 10:22:59 AM5/10/23
to Google's Campaign Manager 360 API Forum
More information on the issue:

When I call the API the response is:

{
  "error": {
    "code": 403,
    "message": "The caller does not have permission",
    "errors": [
      {
        "message": "The caller does not have permission",
        "domain": "global",
        "reason": "forbidden"
      }
    ],
    "status": "PERMISSION_DENIED"
  }
}

I see the same problem both when using the API explorer or a python library.

I am being prompted to grant access to my CM360 account when making the API call by an oauth2 flow (as expected) and I am allowing the access.

From my python code I can see the access token generated, but I am unclear whether there is a problem with the access token or whether my CM360 user does not have the necessary permissions to complete the API call.

The API call I am testing with is campaigns list.


DCM API (DoubleClick Campaign Mgr)

unread,
May 10, 2023, 2:50:59 PM5/10/23
to naomy...@johnlewis.co.uk, google-doubleclick-...@googlegroups.com
Hello Naomy,

Welcome to DCM API Support team. Thank you for reaching out to us.

Can you confirm what you meant by API key/link? Asking this so we can guide you accordingly. If you are pertaining to authorization protocols, you may follow this guide about authorize requests. You may also check our Get Started guide for more information.

On the other hand, if you are referring to reporting endpoints, you may check it on this documentation. The general reporting guide may also help in starting with API reporting https://developers.google.com/doubleclick-advertisers/guides/create_reports.

Links to the highlighted words above:
Regards,
Google Logo DCM API Team


ref:_00D1U1174p._5004Q2lCJpv:ref

DCM API (DoubleClick Campaign Mgr)

unread,
May 10, 2023, 4:42:35 PM5/10/23
to ian.pl...@johnlewis.co.uk, google-doubleclick-...@googlegroups.com

Hello Ian,



Thank you for reaching out to us.

I can see that you are encountering PERMISSION_DENIED on your end. This usually means a lack of permission for the user profile used in the request call. However, for us to further investigate, can you provide to us the below information?

  • DCM Account ID
  • Profile ID used in request call
  • Request body & URL with path param values
  • Complete API Response of the above request


You may provide the requested details privately via "Reply To Author" option.

As a side note, it seems that you have chimed in on this forum thread. If your concern is not related to the original posted issue, we suggest that you create a new thread for better tracking of issues.

Regards,

Google Logo DCM API Team


ref:_00D1U1174p._5004Q2lCMPF:ref
Reply all
Reply to author
Forward
0 new messages