Saturday, January 24, 2015

Digest for adsense-api@googlegroups.com - 2 updates in 1 topic

Nicolas Daudin <nicolas.daudin@gmail.com>: Jan 22 02:50PM -0800

Hi Dean
 
Thanks for your quick answer.
 
No, I'm specifying the date directly, like this (node.js code)
 
var reportParams = {
accountId : accountId,
auth : oauth2Client,
startDate: day,
endDate: day,
dimension:'DATE',
metric:'EARNINGS'
}
 
day being of format YYYY-MM-DD
 
I didn't know that there was a keyword 'today' available. Should I put like
this in parameter 'startDate'?
 
Regards,
Nicolas.
 
On Wednesday, January 21, 2015 at 1:30:32 PM UTC-6, Dean Lukies (Adsense
API Team) wrote:
"Dean Lukies (Adsense API Team)" <adsenseapiadvisor+lukiesd@google.com>: Jan 23 06:39AM -0800

Hi Nicolas,
 
take a look at this Relative Dates
<https://developers.google.com/adsense/management/reporting/relative_dates>
you should be able to use 'today' in place of your day variable
 
If you find it faster, you can work out your parameters on the developers
site https://developers.google.com/adsense/management/v1.4/reference/accounts/reports/generate#try-it
 
thanks,
Dean
 
PS: I wanted to remind people about stackoverflow.com and the adsense-api
tag
<http://www.google.com/url?q=http%3A%2F%2Fstackoverflow.com%2Fquestions%2Ftagged%2Fadsense-api&sa=D&sntz=1&usg=AFQjCNGn9LRNfIvWoBht56pFQFltGGPxwg>
!
 
On Thursday, January 22, 2015 at 5:50:05 PM UTC-5, Nicolas Daudin wrote:
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to adsense-api+unsubscribe@googlegroups.com.

No comments:

Post a Comment