Does anyone know a guide or tutorial into how to access the Google adwords reports? I'm trying to pull in to my application the advertising spend per day (current to the time of checking or last Google update). I can't quite find the API docs or methods for getting the spend. Does anyone know of any good tutorials? Or can you point me in the right direction? Ideally dev should be in php :)
UPDATE
Using the API is er....at a cost. I'm ideally looking for a way to not have to pay for it! So if there is no "backend" way of doing it for free, then scraping the front end is a possibility I guess...
UPDATE 2
Ignore the above, the cost is so minimal, an API call is enough. But I still can't find the API method to get current or previous spend....
Let us google that for you...
Have you looked at http://google-apility.sourceforge.net?
The query you want I think is this one (includes cost data).
Related
I'm building a courier tracking application for a client. It's the second I've done, so far having worked with UPS, TNT, AAE and BPost. All have APIs or CSV downloads which can be used.
I'm working in Codeigniter.
I just wondered if anyone has experience of automating tracking with China Post EMS service? The only way to get tracking data it seems is by entering a tracking code / captcha either singly or in batches of 10. Not very practical for my client who deals with 500-1000 consignments per month.
I've searched for about 4 hours this morning on how to do this, I tried calling China Post (but don't speak Chinese so didn't get anywhere with that), have emailed (no reply yet) also.
Now my client is talking about abandoning the project if we can't get this to work - problem is unless I can find a method of retrieving data, I don't see how this can be achieved.
If you have come across this issue before (and looking at Google I can see I'm not the only developer who has come across this problem) please let me know your solution.
I know this is an old question, but I've been looking for a solution to the same issue, now, what I found as a potential solution is this:
I found a Python GUI script that uses track-chinapost.com and a captcha breaker in order to get the tracking information
Another potential solution is using the AfterShip API which supports china post among many other couriers, but it is pretty expensive and I don't think it suits your context...
If you have found other solutions, please let me know...
I've been reading through the eBay Developer Network and for the life of me can't figure out how to do the simple task of retrieving all listings from an eBay User (me) via their API.
Can anyone help me out on achieving this.
Thanks a lot.
Edit:
I have tried using HTTP method of:
http://open.api.ebay.com/Shopping?callname=GetUser&appid=APPID&siteid=3&UserId=USERID
But this hasn't given me any luck.
Mainly with the PHP Methods, I've tried reading up on EBATNS but with no luck could I start coding to produce something small.
I have also looked at Use of eBay API in PHP to retrieve My eBay information and that didn't really help me all that much either.
If anyone needs the answer to this one I have figured it out after a day of research.
http://svcs.ebay.com/services/search/FindingService/v1?OPERATION-NAME=findItemsAdvanced&SECURITY-APPNAME=PRODUCTION-APPID&RESPONSE-DATA-FORMAT=XML&REST-PAYLOAD&itemFilter(0).name=Seller&itemFilter(0).value(0)=USERNAME&paginationInput.entriesPerPage=10&keywords=
I just have a quick question to see if this is possible with the Google Adwords API or if there is a better solution / service out there that I could use.
What we need to do is generate a Google Adwords report each month with some statistics. We need the report to automatically pull the following things:
# of clicks
Cost
Average Ad Position
Top 5 Keywords Clicked
Then, it should also compare how it did from the previous month and then provide a graph of the past 6 months activity.
Is this all possible? I am waiting for the adwords login from my company so I can go in and request the key and play around with it but in the mean time I just wanted to ask and see what you guys think. Is something like this difficult or pretty straight forward? Is there maybe a service already out there that does something like this? This will be for over 100 accounts.
What do you guys recommend?
All of this is possible using the API but the API may be overkill. The automated reporting features in Adwords are very customisable and you can have them generated at regular intervals and emailed to you with the data you mention.
You can find info on setting them up here: http://adwords.google.com/support/aw/bin/answer.py?hl=en&answer=12299
I used to have a number of python scripts that would generate all sorts of pretty graphs from the early Adwords API. It wasn't until a few years later I realised the automated reports could do it all and much more.
Try AdWords Scripts. With those, you could write a 30-line piece of Javascript, have it dump the output and graphs into a Google spreadsheet, and automatically execute once a month while emailing you about it. They have a few tutorials on the website that do very similar things.
I'm looking at feeding dojo charts with data from google analytics, within a Zend Framework app. Has anyone done this or have any overview as to how I would go about it? I see there is a dojox.data.GoogleSearchStore. Does it make sense to have a dojox.data.GoogleAnalyticsStore and is anyone working on something like this?
I did a project recently doing this exactly - presenting data from the Google Analytics API using Dojo Charts. I'm not sure if the approach I used was the best, but I can at least give you some pointers.
Daniel Hartmann has a proposal for a Zend_Gdata_Analytics component. It hasn't been approved yet however you can find his code on Github and it works perfectly. I used this to get all the data I needed from analytics.
The Google Analytics API itself is quite powerful but it takes a while to get your head round it. Try and understand the difference between dimensions and metrics from Google's docs. It helps if you think of the service as building queries that return a table of data (like SQL), rather than just one value. In this table, each metric you add to the query adds a column of data to the result, and dimensions are used to restrict and group the data overall. So for example:
$ga->newDataQuery()
->addDimension(Zend_Gdata_Analytics_DataQuery::DIMENSION_DATE)
->addMetric(Zend_Gdata_Analytics_DataQuery::METRIC_VISITS)
->addMetric(Zend_Gdata_Analytics_DataQuery::METRIC_VISITORS)
->addMetric(Zend_Gdata_Analytics_DataQuery::METRIC_PAGEVIEWS);
gives you the total visits, visitors and page views for each day.
Analytics sometimes takes a few seconds to respond to queries (especially complex ones) so you'll want to cache the data. In my case I was selecting it at regular intervals by cron and storing it in a database.
On the Dojo side, I don't think dojox.data.GoogleSearchStore will help you. I used a combination of dojo.data.ItemFileWriteStore, dojox.charting.DataSeries and Zend_Dojo_Data, but I don't think my requirements would be typical. I'd suggest starting with the basics - get your graphs working with sample (hardcoded) data before your try and drop in your analytics. There are some tutorials on sitepen.com which I found useful.
Good luck!
I am trying to build a small useful application with twitter. I will publish it as an open source project once I am done. I am trying to decide what is the best way to do the following:
I want to get the latest 200 tweets from Washington for example and see the most important thing these 200 tweets share. For example, if 20 tweets have tweeted the same link, this is probably an important story in Washington. Or if 50 tweets mentioned (This specific subject) it means this is important and I could get information about it.
What is the best way to do that? and is there a better way to get this information without getting the latest 200 tweets (except trends).
If you feel like this is not clear enough please provide some questions and I will clear this up
Thank you all for the help.
I don't think there is going to be any "custom" trending available, so you are going to have to parse out the links from the search results yourself.
You would use the search api function:
http://search.twitter.com/search.atom?geocode=40.757929%2C-73.985506%2C25km
After that, it should be pretty trivial to maintain a list of trends and links over the past 24 hours.
I would suggest you use a php twitter library which does already the things you wrote.
Please have a look at this question to find a library which fits your needs https://stackoverflow.com/questions/422879/best-twitter-php-library