Urgent: Unable to Fetch Click and Impression Data in CM360 & DV360 API

52 views
Skip to first unread message

Api

unread,
Feb 3, 2025, 3:52:30 AM2/3/25
to Google's Campaign Manager 360 API Forum

Dear Campaign Manager 360 Support Team,

I hope this email finds you well. My name is Abbas Alipanah Kordlar, and I am a Data Reporting Optimization Specialist at Digital Exchange, a digital marketing agency managing multiple clients through our CM360 and DV360 accounts.

We are currently facing an issue retrieving Clicks and Impressions via the Campaign Manager 360 (CM360) API and experiencing the same problem in Display & Video 360 (DV360).

Issue Summary

We are able to successfully retrieve campaign and placement details, such as:

  • Campaign ID
  • Campaign Name
  • Placement ID
  • Placement Name

However, when we attempt to fetch Clicks (dfa:clicks) and Impressions (dfa:impressions), we receive an error indicating that the requested dimensions are invalid.

API Calls and Errors

We attempted the following request using the reports().insert() method:

Requested Dimensions & Metrics
json
CopyEdit
{ "name": "Campaign_Performance_Report", "type": "STANDARD", "criteria": { "dateRange": { "startDate": "2025-01-01", "endDate": "2025-01-31" }, "dimensions": [ {"name": "dfa:campaignId"}, {"name": "dfa:campaignName"}, {"name": "dfa:placementId"}, {"name": "dfa:placementName"} ], "metrics": [ {"name": "dfa:clicks"}, {"name": "dfa:impressions"} ], "dimensionFilters": [ { "dimensionName": "dfa:advertiserId", "values": ["11587115"] } ] }, "format": "CSV" }
Error Message Received in CM360
json
CopyEdit
{ "error": { "code": 400, "message": "Dimension name 'dfa:campaignId' is not valid.", "errors": [ { "message": "Dimension name 'dfa:campaignId' is not valid.", "domain": "global", "reason": "invalid" } ] } }

When we replaced "dfa:campaignId" with "dfa:campaign" and "dfa:placementId" with "dfa:placement", we received another error:

json
CopyEdit
{ "error": { "code": 400, "message": "Dimension name 'dfa:campaign' is not valid." } }
Same Issue in DV360

We attempted a similar request in DV360 API, and the same issue occurred when trying to retrieve Clicks and Impressions.

What We Need Help With
  1. What are the correct dimension and metric names for retrieving Clicks and Impressions in CM360 and DV360 APIs?
  2. How should we structure our API request to retrieve campaign, placement, clicks, and impressions together?
  3. Are there specific permissions or API scopes required to access performance metrics?
  4. Do we need any account-level changes to enable access to Click and Impression data via the API?

As an agency managing multiple clients, it is critical for us to automate reporting via the API. Your guidance on resolving this issue would be greatly appreciated.

Looking forward to your support.

Best regards,
Abbas Alipanah Kordlar
Data Reporting Optimization Specialist

Reply all
Reply to author
Forward
0 new messages