question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue with Metrics in DBM Reach Report

See original GitHub issue

I was trying to create the reach report using Create Query call - https://developers.google.com/bid-manager/v1.1/queries/createquery using SDK, getting below error response from API.

Exception thrown: 'Google.GoogleApiException' in System.Private.CoreLib.dll: 'Google.Apis.Requests.RequestError
The request you submitted is invalid. [400]
Errors [
	Message[The request you submitted is invalid.] Location[ - ] Reason[validationError] Domain[global]
]'

When I checked DV360 UI I’m able to see the newly created Reach Report but it did not contain any Metrics provided -

Metrics = new[]
{
	"METRIC_UNIQUE_REACH_IMPRESSION_REACH",
	"METRIC_UNIQUE_REACH_CLICK_REACH",
	"METRIC_UNIQUE_REACH_TOTAL_REACH",
	"METRIC_UNIQUE_REACH_AVERAGE_IMPRESSION_FREQUENCY"
},

image

I also try to pull the Reach report created on DV360 Platform to check the correct metric name, getting metrics name as “METRIC_UNKNOWN” for all Reach metrics selected in Report -

    "metrics": [
      "METRIC_UNKNOWN",
      "METRIC_UNKNOWN",
      "METRIC_UNKNOWN",
      "METRIC_UNKNOWN"
    ],

Complete Response

{
  "kind": "doubleclickbidmanager#query",
  "metadata": {
    "dataRange": "MONTH_TO_DATE",
    "format": "CSV",
    "googleCloudStoragePathForLatestReport": "URL", // Changed
    "googleDrivePathForLatestReport": "",
    "latestReportRunTimeMs": 1600245611669,
    "locale": null,
    "reportCount": 0,
    "running": false,
    "sendNotification": false,
    "shareEmailAddress": null,
    "title": "Reach Report",
    "ETag": null
  },
  "params": {
    "filters": [
      {
        "type": "FILTER_ADVERTISER",
        "value": "",
        "ETag": null
      }
    ],
    "groupBys": [
      "FILTER_PARTNER",
      "FILTER_COUNTRY",
      "FILTER_ADVERTISER",
      "FILTER_INSERTION_ORDER",
      "FILTER_LINE_ITEM"
    ],
    "includeInviteData": true,
    "metrics": [
      "METRIC_UNKNOWN",
      "METRIC_UNKNOWN",
      "METRIC_UNKNOWN",
      "METRIC_UNKNOWN"
    ],
    "type": "TYPE_REACH_AND_FREQUENCY",
    "ETag": null
  },
  "queryId": 00000000, // Changed
  "reportDataEndTimeMs": null,
  "reportDataStartTimeMs": null,
  "schedule": {
    "endTimeMs": 0,
    "frequency": "ONE_TIME",
    "nextRunMinuteOfDay": null,
    "nextRunTimezoneCode": null,
    "ETag": null
  },
  "timezoneCode": null,
  "ETag": "\"ZelHb3Dp5JnMm78yZe-j6LnxBf82VZ-LV3xEnzr3lKI/mBvRfmYNCusbE4gfmmRMz5Gwkkg\""
}

Referring this doc for metric naming - https://developers.google.com/bid-manager/v1.1/filters-metrics#metrics

Using the below Query object for creating new Reach report -

return new Query
{
	Kind = "doubleclickbidmanager#query",
	Metadata = new QueryMetadata
	{
		Title = "AG - DBM Reach API",
		DataRange = "LAST_7_DAYS",
		Format = "CSV",
		SendNotification = false
	},
	Params__ = new Parameters
	{
		Type = "TYPE_REACH_AND_FREQUENCY",
		GroupBys = new[]
		{
			"FILTER_PARTNER",
			"FILTER_COUNTRY",
			"FILTER_ADVERTISER",
			"FILTER_INSERTION_ORDER",
			"FILTER_LINE_ITEM"
		},
		Filters = new List<FilterPair>
		{
			new FilterPair
			{
				Type = "FILTER_ADVERTISER",
				Value = ""
			}
		},
		Metrics = new[]
		{
			"METRIC_UNIQUE_REACH_IMPRESSION_REACH",
			"METRIC_UNIQUE_REACH_CLICK_REACH",
			"METRIC_UNIQUE_REACH_TOTAL_REACH",
			"METRIC_UNIQUE_REACH_AVERAGE_IMPRESSION_FREQUENCY"
		},
		IncludeInviteData = true
	},
	Schedule = new QuerySchedule
	{
		Frequency = "ONE_TIME",
		EndTimeMs = 0
	}
};

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
amanda-tarafacommented, Oct 21, 2020

Happy that it worked! Closing now.

1reaction
amanda-tarafacommented, Oct 8, 2020

Hi @ASHWINI-GUPTA not yet, I’m having to set up a DBM account and that’s been requiring a little more work than I expected. But I’m still trying to reproduce, and will get there eventually, I’m working on this in between some other things.

Take into account that as the maintainers of this repo, we are not experts in each of the individual APIs or products, but only on the client libraries themselves, making sure that they accurately reflect what the corresponding API offers. So an issue like this, which seems to be client library related but also product specific, it’s a little harder than usual for us to diagnose.

But again, I’m working on it and will get back here as soon as I have more info, probably early next week.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Metrics - Campaign Manager 360 Help
The percentage of total unique reach made up by the demographic. ... The following metrics appear in reporting: ... See DBM Cost Article....
Read more >
All metrics and dimensions - Campaign Manager 360 Help
Reporting for this dimension can be affected by changes to user agent. ... is one half of a pair of dimensions for use...
Read more >
Google Marketing Platform Dimensions and Metrics
Each Dimension and Metric has a list of reports in which it can be found in the column next to its name. Some...
Read more >
DV360 Reports, Dimensions, and Metrics - YouTube
DV360 Reports, Dimensions, and Metrics ... Reports in Google Analytics ... Resolving DV360 and Ad Manager Issues [Advanced].
Read more >
How to Optimise Display Ads in DBM
Pull a General report grouped by apps/URL with all relevant metrics for your campaign. Exclude worst performing apps/URLs from your targeting. You can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found