Comments (3)
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.
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.
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)
- Support for incremental oauth
- ReportableType is unexpected when creating CustomTargetingKey HOT 1
- Creating Callout Extensions in Adwords HOT 1
- Occurred error after entering verification code
- How to perform authentication client side? HOT 2
- Got "Unable to parse response body" from Ruby ad manager api HOT 3
- File permissions issue in google-dfp-api-1.11.0 and google-dfp-api-1.12.0 gems HOT 6
- `download_report_as_stream` ignores HTTP status code HOT 1
- GoogleAdsSavon::SOAP::InvalidResponseError Unable to parse response body HOT 2
- process GoogleAdsService.Search() never ends HOT 1
- Click Performance Report API endpoint failing with a Zlib buffer Error HOT 5
- Support Rails 6.1 HOT 5
- Will this library be sunset with Google AdWords API? HOT 1
- google-dfp-api gem 1.15.0 not compatible with Rails 5.2 HOT 1
- How to install google-adwords-api for version of Ruby lower than 2.2.2 HOT 1
- Default branch is now main
- My dreams officiall pakistan
- Out-Of-Band EOL
- Passing stateful information in initial authorization request? HOT 1
- 2.4.0 uses v202305 API version of Google Ad Manager, not v202308 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google-api-ads-ruby.