Group: http://groups.google.com/group/adsense-api/topics
- "Alex S." <akssouvannakhot@gmail.com> Jun 09 11:54AM -0700
I am creating a dashboard with information about my ads so I want to pull
information from the performance reports from my own account (clicks, CTR,
CPM, etc.). Is the Adsense Management API right for me? If not, what
options do I have?
- galeksic <agencijaspecihost@gmail.com> Jun 10 04:14AM -0700
I think it is exactly what you need for performance reports on dashboard.
service.accounts().reports().generate(
accountId="pub-0123456701234567",
startDate='today',
endDate='today',
metric=['EARNINGS','CLICKS', 'PAGE_VIEWS', 'COST_PER_CLICK',
'PAGE_VIEWS_RPM',
'PAGE_VIEWS_CTR'],
dimension=['AD_CLIENT_ID']).execute...
{
"startDate": "2014-06-10",
"kind": "adsense#report",
"rows": [
[
"ca-pub-0123456701234567",
"***",
"***",
"***",
"***",
"***",
"***"
],
[
"partner-pub-0123456701234567",
"***",
"***",
"***",
"***",
"***",
"***"
]
],
"endDate": "2014-06-10",
"totals": [
"",
"***",
"***",
"***",
"***",
"***",
"***"
],
...
}
On dashboard on your own [local]host.
https://developers.google.com/adsense/management/libraries
https://github.com/googleads/googleads-adsense-examples/tree/master/php-clientlib-1.x/v1.x/examples
Or integrated / extended with other Google services.
https://developers.google.com/apps-script/advanced/adsense
https://developers.google.com/apps-script/articles/adsense_scheduled_reports_tutorial
https://developers.google.com/apps-script/articles/adsense_tutorial
If you need only reporting (and you prefer / need SQL), BigQuery is another
option.
https://developers.google.com/adsense/bigquery
(AdSense Host API is for AdSense host
partners. https://developers.google.com/adsense/host/become-a-host)
- "Alex S." <asouv@squareoffs.com> Jun 10 10:38AM -0700
galeksic,
Thanks for those resources! Is there a way to access data from my *own *account
and not clients through me? I don't want to have a redirect page because I
just want to pull information from my own reports and I don't need any
login from users, almost like a service account.
On Tuesday, June 10, 2014 6:14:51 AM UTC-5, galeksic wrote:
- "Jose Alcérreca (AdSense API Team)" <adsenseapiadvisor+jose@google.com> Jun 10 10:50AM -0700
Hi Alex,
Using OAuth2, the developer and the user are different entities. We don't
support Service Accounts but you can use the API from an
automatic/unmonitored script using refresh tokens and the "offline" access
type. Every client library implements this in a different way. You can
start here:
https://developers.google.com/adsense/management/getting_started
Cheers,
Jose
On Tuesday, 10 June 2014 18:38:15 UTC+1, Alex S. wrote:
No comments:
Post a Comment