Saturday, August 11, 2012

Digest for adsense-api@googlegroups.com - 3 Messages in 1 Topic

Group: http://groups.google.com/group/adsense-api/topics

    Richard Burton <burtonic@gmail.com> Aug 10 03:05AM -0700  

    Hi Sergio,
     
    The answer you provided on Stack Overflow was incredibly helpful:
     
    http://stackoverflow.com/a/11659852/474701
     
    All I had to do was modify this section:
     
    call = {
    :api_method => @adsense.reports.generate,
    :parameters => {
    'startDate' => '2011-01-01',
    'endDate' => '2011-08-31',
    'dimension' => ['MONTH', 'CUSTOM_CHANNEL_NAME'],
    'metric' => ['EARNINGS', 'TOTAL_EARNINGS']
    }
    }
     
    call = {
    :api_method => @adsense.reports.generate,
    :parameters => {
    'startDate' => '2011-01-01',
    'endDate' => '2011-08-31',
    'dimension' => ['MONTH'],
    'metric' => ['EARNINGS']
    }
    }
     
    That returned lots of helpful data. What is the best way for me to find out
    about all the other methods available when querying AdSense? Should I dig
    through the 'google/api_client' gem?
     
    I want to reconcile what I have read
    here: https://developers.google.com/adsense/management/v1.1/reference/index
    with the ruby methods I need to use. I also want to understand all the
    metrics and dimensions available and how they interact.
     
    Any guidance would be much-appreciated.
     
    Thanks,
     
    Richard

     

    Richard Burton <burtonic@gmail.com> Aug 10 03:12AM -0700  

    I have tried using the logic outlined
    here: https://github.com/google/google-api-ruby-client
     
    # Discover available methods
    method_names = client.discovered_api('plus').to_h.keys
     
    However, I can't seem to get it to return the list of methods.
     
    On Friday, August 10, 2012 11:05:49 AM UTC+1, Richard Burton 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