Some of the requested ad clients do not support the requested combination of dimensions.

270 views
Skip to first unread message

DeConf

unread,
Jul 27, 2013, 4:47:01 PM7/27/13
to adsen...@googlegroups.com
I'm trying to retrieve some data from Adsense using Google Adsense Management API and I have this warning:

Some of the requested ad clients do not support the requested combination of dimensions.

Metrics and dimensions i use:

$optParams = array(
 'metric' => array(
'EARNINGS', 'COST_PER_CLICK', 'CLICKS', 'PAGE_VIEWS', 'PAGE_VIEWS_CTR',  'PAGE_VIEWS_RPM'
 ),
 'dimension' => 'AD_UNIT_NAME',
 'sort' => '-EARNINGS'
);


The funny thing is that the metrics for some units are reported fine and for some of them there is a huge difference between the real Page Views value and the Page Views retrieved.

Any ideas?

Jose Alcérreca (AdSense API Team)

unread,
Jul 29, 2013, 6:53:12 AM7/29/13
to adsen...@googlegroups.com
Hi DeConf,

In V1.3 we included metadata calls to check how metrics and dimensions were compatible between each other.


As you can see here, AD_UNIT_NAME is compatible with 

"compatibleMetrics": [
"AD_REQUESTS",
"AD_REQUESTS_COVERAGE",
"AD_REQUESTS_CTR",
"AD_REQUESTS_RPM",
"CLICKS",
"COST_PER_CLICK",
"EARNINGS",
"INDIVIDUAL_AD_IMPRESSIONS",
"INDIVIDUAL_AD_IMPRESSIONS_CTR",
"INDIVIDUAL_AD_IMPRESSIONS_RPM",
"MATCHED_AD_REQUESTS",
"MATCHED_AD_REQUESTS_CTR",
"MATCHED_AD_REQUESTS_RPM"
],

...so page views dimensions are not compatible with AD_UNIT_NAME. A page view is something related to an account or a URL... but can't be associated with an Ad Unit. You might want to try INDIVIDUAL_AD_IMPRESSIONS_* instead of PAGE_VIEWS_*.

Let me know if that works.

Cheers!
Jose

---
Jose Alcérreca
Developer Relations

Google UK Limited
Registered Office: Belgrave House, 76 Buckingham Palace Road, London SW1W 9TQ
Registered in England Number: 3977902
Reply all
Reply to author
Forward
0 new messages