|
||||||
Hello Canvas,
I'm Michael and I work along with Teejay, allow me to assist you from here.
The report ID will be generated upon the creation of the report through reports.insert method. Additionally, these are the lists of metrics, dimensions and filters you may add on your report.
Let us know should you have any other concern.
Regards,
|
||||||
Hello Canvas,
Thank you for providing additional details.
I believe the entity you are trying to retrieve is only available at CM360 UI side. In API, these are the only entities available to be retrieved on a campaign level: https://developers.google.com/doubleclick-advertisers/rest/v3.5/campaigns#Campaign
On the other hand, you may try the previously suggested by my colleague to create the report via API and extract the data by filtering it by impressions within 30 days.
These are the list of API REST Resources you may use:
Let us know should you have any other concern.
Regards,
|
||||||
Hello Canvas,
Thank you for your response.
We do have a documentation for downloading the generated report files through browserUrl or apiUrl provided in the resource file, you may check it here.
Let us know should you have further concerns.
Regards,
Hello Canvas,
Thank you for responding back to us.
It looks like the url endpoint you are using to pull the report file details is missing its profile ID, hence you are getting a BadRequest Error. Please be informed that you must add the profile ID to the url endpoint and it should look like this: https://dfareporting.googleapis.com/dfareporting/v3.5/userprofiles/{profileId}/reports/{reportId}/files/{fileId} as indicated in the reports.files.get method.
Let us know should you have any other concern.
Regards,
Hello Canvas,
Thank you for your response.
It appears that you are having error due to authentication scopes. We do have a document where it indicates what kind of scope you would need depends on what you are trying to access, you may check it here: https://developers.google.com/doubleclick-advertisers/authorizing?hl=en
More specifically on your issue, you should have https://www.googleapis.com/auth/dfareporting as this is the required scope for reporting.
To check the scope of your token, you will need to use your refresh token to get a new access token, and then append the access token to the end of URL: https://www.googleapis.com/oauth2/v1/tokeninfo?access_token=
This will take you to a page with info about the access token, including its associated scopes. You will get the structure as below:
{
"issued_to": "#####",
"audience": "#####",
"scope": "#####",
"expires_in": #####,
"access_type": "offline"
}
If you are using the correct scope to make a reports.insert call, then scope in the above structure should include 'https://www.googleapis.com/auth/dfareporting'.
On a side note, it seems this is more on POSTMAN rather than anything specific to DCM API response issue, we would recommend to reach out directly to their support channel and ask for assistance with regards to building your request on their platform. You may use this link when reaching out to them, but if it does not work for you, feel free to look for an alternative contact as we do not have support knowledge for that platform.
Regards,