Coder Social home page Coder Social logo

Comments (3)

TigerWolf avatar TigerWolf commented on July 18, 2024

This example might help: https://gist.github.com/TigerWolf/8954e4be982be4c68280

The API only handles the downloading, the importing is up to you and will be very specific to your application.

from google-api-ads-ruby.

barttenbrinke avatar barttenbrinke commented on July 18, 2024

Let me rephrase this:

a use case I encounter a lot (and I think a lot of other people will as well), is to find the campaings for an account that where active yesterday, and to drill down from that point.

In v201309 it was very easy and cheap to do this:
Taking the example of spider_campaigns_yesterday:

selector = {
    :fields => ['Id', 'Name', 'Impressions', 'Clicks', 'Cost', 'Ctr'],
    :predicates => [
      {:field => 'Impressions', :operator => 'GREATER_THAN', :values => [0]}
    ],
    :date_range => {:min => start_date, :max => end_date},
    :paging => {
      :start_index => 0,
      :number_results => PAGE_SIZE
    },
  }

It's easy to adapt to check if campaings have costs or clicks and to continue from there.
In v201402, this is no longer possible, because these columns have been deprecated.

I've fixed this in my app by using the reporting api, but this was non-trivial and is a lot slower.

It think it would be a good idea to al least point users in the right direction by having a v201402/reporting/spider_campaings_yesterday.rb that has the same result as the v201309 version, but by using the reporting api. This will help exiting users migrate and new user to get their active campaigns.

from google-api-ads-ruby.

mcloonan avatar mcloonan commented on July 18, 2024

We are considering the possibility of adding extra utilities along with the client library, including something that will help to parse report results. I'm going to close this ticket, because we are keeping track of it internally.

This does not guarantee that the request will be built, but it is something we are thinking about.

Thanks for the idea!

from google-api-ads-ruby.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.