Group: http://groups.google.com/group/adsense-api/topics
- Google API PHP Client license issues [3 Updates]
- No rows returned if no page views/ad requests? [2 Updates]
- How do I paginate in case if records are more than 5000? [2 Updates]
- "Raúl Mellado" <raulmellado@gmail.com> May 26 07:24AM -0700
Hi all,
I am developing a WordPress plugin which polls the Adsense Management
API to get info about earnings; so far for development purposes I have used
most of the code from the google-api-php-client, but before releasing the
plugin I would like to get info about licensing issues (sorry if this is
not the best place to ask!).
I would like to have 2 flavours:
1. Free plugin, uploaded to the WP Plugin repository
2. Paid version, with premium functionality
My question is, how much of the Google examples code can I reuse for my
plugin (my main concern is the OAuth part, as the Adsense API part seems
not too hard for me to code my own version), in both versions (free/paid)?
WP Plugins (as I understand it) come under GPLv2, whereas Google samples
are Apache 2.0 license.
Could you please show some light on this?
Thanks a lot!
- "Sérgio Gomes" <sergiomdgomes@gmail.com> May 28 06:52AM -0700
Hi Raúl,
I'm afraid I really can't give you any advice on this, as it sounds like a
legal matter. I'll see if I can find someone at Google that can help you
with these issues, and get back in touch with you!
Cheers,
Sérgio
---
Sérgio Gomes
Developer Relations
Google UK Limited
Registered Office: Belgrave House, 76 Buckingham Palace Road, London SW1W
9TQ
Registered in England Number: 3977902
---
On Saturday, 26 May 2012 15:24:18 UTC+1, Raúl Mellado wrote:
- "Sérgio Gomes" <sergiomdgomes@gmail.com> May 29 01:59AM -0700
Hi Raúl,
I'm afraid we really can't provide any legal advice on this matter; you
should probably seek your own legal counsel on these licensing issues if
you have any questions. Here is the FSF's page regarding the Apache License
v2, which may be a good start:
http://www.gnu.org/licenses/license-list.en.html#apache2
Cheers,
Sérgio
---
Sérgio Gomes
Developer Relations
Google UK Limited
Registered Office: Belgrave House, 76 Buckingham Palace Road, London SW1W
9TQ
Registered in England Number: 3977902
---
On Monday, 28 May 2012 14:52:13 UTC+1, Sérgio Gomes wrote:
- "Raúl Mellado" <raulmellado@gmail.com> May 26 07:35AM -0700
Hi all,
I am querying the Adsense Management API for a report in earnings
similar to the one in the google-api-php-client example
(metric: 'PAGE_VIEWS', 'AD_REQUESTS','CLICKS', 'AD_REQUESTS_CTR',
'COST_PER_CLICK', 'EARNINGS',
dimension: 'DATE')
, but adding a filter by a specific AD_UNIT_CODE. So, for those days in
which, I guess, Page Views and/or Ad Requests are 0, I am not getting the
row from the API for that specific day, thus leaving a gap in my report,
like:
2012-01-01 xxx
2012-01-02 xxx
2012-01-04 xxx
which seems to make the report a bit more confusing. Is this the
expected behaviour? If so, is there a way to get all the rows, even if they
show a 0 in all columns?
Thanks for your help!
- "Sérgio Gomes" <sergiomdgomes@gmail.com> May 28 07:09AM -0700
Hi Raúl,
This is indeed the expected behaviour; if there is no data for a given
date, no row will be shown for it. This applies to all dimensions, not just
dates and time periods, so for example if you choose PRODUCT_NAME as a
dimension, you won't get back any rows for AdSense products which aren't
being used.
I'm afraid there's no way of changing this behaviour; you'll need to fill
in the gaps with zeroes yourself, which in your case should be a matter of
iterating through a calendar of your desired time range.
Cheers,
Sérgio
---
Sérgio Gomes
Developer Relations
Google UK Limited
Registered Office: Belgrave House, 76 Buckingham Palace Road, London SW1W
9TQ
Registered in England Number: 3977902
---
On Saturday, 26 May 2012 15:35:03 UTC+1, Raúl Mellado wrote:
- Vaibhav <asfe-next@oversee.net> May 23 03:19PM -0700
I have some AdSense Management API questions -
1. As I understand, startIndex and maxResults support pagination for
records within 5000
How do I paginate in case if records are more than 5000?
2. I have noticed that the quota for this API is set to 1.0 request per
second per user. Which means that if 2 users make an api request within the
same second then this limit will kick in. I am trying to avoid this
situation.
What defines a user? Is it the Client ID/Client Secret per project that we
create?
Thanks,
Regards,
-Vaibhav
- "Sérgio Gomes" <sergio.gomes%google.com@gtempaccount.com> May 28 06:21AM -0700
Hi Vaibhav,
1. I'm afraid there is no way to paginate beyond 5000 rows. Pagination is
meant for very specific use-cases only, where the end devices are lacking
in bandwidth or capacity to retrieve the entire report in one go, and in
these cases there's usually no need to go beyond a few thousand records.
2. A user is defined as an individual Google account (so in the case of the
AdSense Management API, an AdSense account). Do bear in mind that the limit
you're referring to is just the default, and it's actually configurable.
You can set it to a higher or lower value for your project by using the
"Set per-user limits" button in the Quotas section of your project in the APIs
console <https://code.google.com/apis/console>.
Cheers,
Sérgio
---
Sérgio Gomes
Developer Relations
Google UK Limited
Registered Office: Belgrave House, 76 Buckingham Palace Road, London SW1W
9TQ
Registered in England Number: 3977902
---
On Wednesday, 23 May 2012 23:19:11 UTC+1, Vaibhav wrote:
You received this message because you are subscribed to the Google Group adsense-api.
You can post via email.
To unsubscribe from this group, send an empty message.
For more options, visit this group.
You received this message because you are subscribed to the Google Groups "AdSense API Forum" group.
To post to this group, send email to adsense-api@googlegroups.com.
To unsubscribe from this group, send email to adsense-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/adsense-api?hl=en.
No comments:
Post a Comment