Group: http://groups.google.com/group/adsense-api/topics
- API data is different from Adsense Report. [2 Updates]
- Some of the requested ad clients do not support the requested combination of dimensions. [2 Updates]
- How to use Adsense API in iOS? [2 Updates]
- 이준호 <jhlee@adop.kr> Jul 27 10:11PM -0700
Hello.
I'm using adsense management api v1.3.
I'm having a problem that submitted(transferred) api data is different from
api data that Adsense Report shows.
To be more concrete, data of latest 3-4 days is different.
I'm using Java and its library is latest version.
Thanks.
Adsense Report is below:
<https://lh6.googleusercontent.com/-d4Vi3dQoavs/UfSm9elA20I/AAAAAAAAACM/iQlFc1B3hhc/s1600/%EC%8A%A4%ED%81%AC%EB%A6%B0%EC%83%B7+2013-07-26+%EC%98%A4%ED%9B%84+6.37.56.png>
JSON is below:
"2013-07-13" = {
CLICKS = 2943;
"COST_PER_CLICK" = "0.15";
DATE = "2013-07-13";
EARNINGS = "450.60";
"PAGE_VIEWS" = 1592651;
"PAGE_VIEWS_CTR" = "0.0018";
"PAGE_VIEWS_RPM" = "0.28";
};
"2013-07-14" = {
CLICKS = 2975;
"COST_PER_CLICK" = "0.18";
DATE = "2013-07-14";
EARNINGS = "543.40";
"PAGE_VIEWS" = 1920635;
"PAGE_VIEWS_CTR" = "0.0015";
"PAGE_VIEWS_RPM" = "0.28";
};
"2013-07-15" = {
CLICKS = 3626;
"COST_PER_CLICK" = "0.18";
DATE = "2013-07-15";
EARNINGS = "642.68";
"PAGE_VIEWS" = 2182302;
"PAGE_VIEWS_CTR" = "0.0017";
"PAGE_VIEWS_RPM" = "0.30";
};
"2013-07-16" = {
CLICKS = 2935;
"COST_PER_CLICK" = "0.18";
DATE = "2013-07-16";
EARNINGS = "528.96";
"PAGE_VIEWS" = 1822941;
"PAGE_VIEWS_CTR" = "0.0016";
"PAGE_VIEWS_RPM" = "0.29";
};
"2013-07-17" = {
CLICKS = 3924;
"COST_PER_CLICK" = "0.18";
DATE = "2013-07-17";
EARNINGS = "712.04";
"PAGE_VIEWS" = 2519760;
"PAGE_VIEWS_CTR" = "0.0016";
"PAGE_VIEWS_RPM" = "0.28";
};
"2013-07-18" = {
CLICKS = 3295;
"COST_PER_CLICK" = "0.19";
DATE = "2013-07-18";
EARNINGS = "605.63";
"PAGE_VIEWS" = 2291555;
"PAGE_VIEWS_CTR" = "0.0014";
"PAGE_VIEWS_RPM" = "0.27";
};
"2013-07-19" = {
CLICKS = 2992;
"COST_PER_CLICK" = "0.16";
DATE = "2013-07-19";
EARNINGS = "480.34";
"PAGE_VIEWS" = 1753191;
"PAGE_VIEWS_CTR" = "0.0017";
"PAGE_VIEWS_RPM" = "0.28";
};
"2013-07-20" = {
CLICKS = 2302;
"COST_PER_CLICK" = "0.18";
DATE = "2013-07-20";
EARNINGS = "407.90";
"PAGE_VIEWS" = 1331224;
"PAGE_VIEWS_CTR" = "0.0017";
"PAGE_VIEWS_RPM" = "0.31";
};
"2013-07-21" = {
CLICKS = 4530;
"COST_PER_CLICK" = "0.18";
DATE = "2013-07-21";
EARNINGS = "800.15";
"PAGE_VIEWS" = 2830415;
"PAGE_VIEWS_CTR" = "0.0016";
"PAGE_VIEWS_RPM" = "0.28";
};
"2013-07-22" = {
CLICKS = 4206;
"COST_PER_CLICK" = "0.20";
DATE = "2013-07-22";
EARNINGS = "837.93";
"PAGE_VIEWS" = 2720446;
"PAGE_VIEWS_CTR" = "0.0015";
"PAGE_VIEWS_RPM" = "0.31";
};
"2013-07-23" = {
CLICKS = 3777;
"COST_PER_CLICK" = "0.19";
DATE = "2013-07-23";
EARNINGS = "715.56";
"PAGE_VIEWS" = 2661734;
"PAGE_VIEWS_CTR" = "0.0014";
"PAGE_VIEWS_RPM" = "0.27";
};
"2013-07-24" = {
CLICKS = 2697;
"COST_PER_CLICK" = "0.20";
DATE = "2013-07-24";
EARNINGS = "540.07";
"PAGE_VIEWS" = 1879639;
"PAGE_VIEWS_CTR" = "0.0014";
"PAGE_VIEWS_RPM" = "0.29";
};
"2013-07-25" = {
CLICKS = 2680;
"COST_PER_CLICK" = "0.19";
DATE = "2013-07-25";
EARNINGS = "508.67";
"PAGE_VIEWS" = 1616448;
"PAGE_VIEWS_CTR" = "0.0017";
"PAGE_VIEWS_RPM" = "0.32";
};
"2013-07-26" = {
CLICKS = 252;
"COST_PER_CLICK" = "0.19";
DATE = "2013-07-26";
EARNINGS = "45.97";
"PAGE_VIEWS" = 147853;
"PAGE_VIEWS_CTR" = "0.0017";
"PAGE_VIEWS_RPM" = "0.32";
};
AVG = {
CLICKS = 3506;
"COST_PER_CLICK" = "";
DATE = "";
EARNINGS = "599.91";
"PAGE_VIEWS" = 2102955;
"PAGE_VIEWS_CTR" = "";
"PAGE_VIEWS_RPM" = "";
};
SUM = {
CLICKS = 91175;
"COST_PER_CLICK" = "0.17";
DATE = "";
EARNINGS = "15597.60";
"PAGE_VIEWS" = 54676844;
"PAGE_VIEWS_CTR" = "0.0017";
"PAGE_VIEWS_RPM" = "0.29";
};
}
- "Jose Alcérreca (AdSense API Team)" <adsenseapiadvisor+jose@google.com> Jul 29 04:06AM -0700
Hi!
Did you by any chance activate local time zone reporting in the AdSense web
interface? If this is the case you can use the useTimezoneReporting parameter
to retrieve the same data as in AdSense:
https://developers.google.com/adsense/management/v1.3/reference/reports/generate
If not, can you share or email us the AdSense account you are using?
Thanks,
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
On Sunday, 28 July 2013 06:11:00 UTC+1, 이준호 wrote:
- DeConf <admin@tbu.ro> Jul 27 01:47PM -0700
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)" <adsenseapiadvisor+jose@google.com> Jul 29 03:53AM -0700
Hi DeConf,
In V1.3 we included metadata calls to check how metrics and dimensions were
compatible between each other.
You can use the APIs explorer to browse them:
https://developers.google.com/adsense/management/v1.3/reference/metadata/dimensions/list
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
On Saturday, 27 July 2013 21:47:01 UTC+1, DeConf wrote:
- idoodler <david.goelzhaeuser@googlemail.com> Jul 26 02:18PM -0700
Hm OK, I am trying this for 5 days now, and I can't get it to work, the
OAuth2.0 part is working, I am getting a
code, access_token, _token_type, expires_in, id_tokenr, refresh_token, id,
email and verified_email. the scope is set to
https://www.googleapis.com/auth/adsense.readonly.
I think I have to do some kind of HTTP GET request, but I don't know the
URL I can request the data, and I don't know how I should use GTMFetcher,
I can't figure it out with the documentary (I know a part of the Request
URL:
https://www.googleapis.com/adsense/v1.3/reports?startDate=2013-06-01&endDate=2013-06-07&key=<https://www.googleapis.com/adsense/v1.3/reports?startDate=2013-06-01&endDate=2013-06-07&key=ya29.AHES6ZS_5GmaJbXvcdgfRd00CKdtD0v-8M8oEp-W9-fiKS4>
)
Btw, I used this <https://code.google.com/p/gtm-oauth2/wiki/Introduction>to get the authentication stuff
working: https://code.google.com/p/gtm-oauth2/wiki/Introduction
Am Dienstag, 23. Juli 2013 14:12:19 UTC+2 schrieb Jose Alcérreca (AdSense
API Team):
- "Jose Alcérreca (AdSense API Team)" <adsenseapiadvisor+jose@google.com> Jul 29 03:45AM -0700
Hi idoodler,
Any reason not to use the client libraries?
https://code.google.com/p/google-api-objectivec-client/
We have no way to debug your implementation. If you need the URLs, check
the discovery doc
https://www.googleapis.com/discovery/v1/apis/adsense/v1.3/rest
or the API reference:
https://developers.google.com/adsense/management/v1.2/reference/
You'll find the URL for every resource at the top of each resource page.
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
On Friday, 26 July 2013 22:18:05 UTC+1, idoodler wrote:
You received this message because you are subscribed to the Google Groups "AdSense API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adsense-api+unsubscribe@googlegroups.com.
To post to this group, send email to adsense-api@googlegroups.com.
Visit this group at http://groups.google.com/group/adsense-api.
For more options, visit https://groups.google.com/groups/opt_out.
If you are looking into making money from your websites using popup advertisments, you should embed one of the most established companies - Propeller Ads.
ReplyDelete