change position in google adwords via api - google-ads-api

Is there a way to change the position preference range of a keyword using the Google Adwords API?
so, if i want to bid on a keyword only if it'll show up from 1 to 4, how would i do that?

as of this writing Google does not expose an api that would allow you to do this.

Related

I need to integrate Google cloud translation API to google sheets using macros

I Cant find any workable solution. Can anyone help? Need to make translate from 1st sheet in one doc to the second. About 60.000 changeable rows.
You can use the Google Translate function directly in your sheet
If you want more advanced/customized calls, I recently wrote an article where I use the current user credential and I call a Google Cloud API (not the translate, but the principle is the same)

Get Google Reviews with IMPORTXML function in G Sheets

I'm trying to import to a Google Sheet the number of reviews and average rating of a certain venue on Google Maps.
Taking as an example this page:
https://www.google.com/maps?cid=8807257593070771217
From Chrome's inspector, the XPath for the average should be:
//*[#id='pane']/div/div[1]/div/div/div[1]/div[3]/div[2]/div/div[1]/span[1]/span/span
However it always returns empty.
Any idea why?
PS - This URL redirects to another, but that shouldn't be the problem as the same thing happens with Facebook and it returns the correct values.
Thanks in advance for any help
Per the comments here, you can't. If you want to scrape Google Maps, use Google's officially supported way to do that: their APIs.
You're probably interested in the Place Details, in particular.
If you have access to a businesses Google My Business page you can leverage the API to pull in reviews that way: https://developers.google.com/my-business/content/review-data
Otherwise, https://serpapi.com can scrape Google reviews for you.

I need an API to plot waypoints and give me a route through them, and to give me city population. Which API should I use?

I'm making an iOS app that needs to be able to find the most populated cities within a radius from a certain point, and to calculate a route that passes through a certain number of those cities, that satisfy a certain time constraint. I'm planning to use Google to give me polylines that I can put directly on an Apple Map in the Mapkit for Xcode. I've looked into the Google Maps SDK for iOS, and Google Places. Google also has a Directions API, and a Distance Matrix API. With so many API's, I'm slightly confused about which one I should use, and for what.
Additionally, do Google API's provide city population, or should I find that via another database?
You can use Google Maps URL Scheme to get directions for Google Maps iOS.
If you are ever confused about which API to use for Google Maps, you can use API picker.
There is no Google API that give city population, so you would need to find it with a another database.

How to get twitter timeline of specific area using twitter api?

I want to get twitter timeline in specific area like Korea or Japan. etc.
Is there twitter api for this work?
thanks.
The closest solution to what you're looking for is using the place operator in the search API.
You will first need to lookup the location's place id, then provide it within the search query.
https://dev.twitter.com/docs/using-search
https://dev.twitter.com/docs/places/finding-tweets-about-places

How to get Average search volume AND Average CPC with same Google Adwords API service?

I am using the Google Adwords API to retrieve the Average search volume for a given keyword, using the TargetingIdeaService get function.
Now I would like to also retrieve the Average CPC for the same keyword.
All I could find so far is a way to do that with the TrafficEstimatorService, but that implies additional cost, I believe.
So my question is: is there any way to retrieve both:
the Average Search Volume,
the CPC data
using the same service (either TargetingIdeaService or TrafficEstimatorService, or other)?
Unfortunately you'll need to use the TIS to get search volume and the TES to get CPC estimates. There is no service that provides both.
P.S. - In case you aren't aware, there is an official AdWords API forum: http://code.google.com/apis/adwords/forum.html
This may have been the case at one point but is certainly possible now. You have to request that information in the requestedAttributesTypes.
$selector->requestedAttributeTypes = array('KEYWORD_TEXT', 'SEARCH_VOLUME', 'AVERAGE_CPC');

Resources