How to retrieve all LocationCriterions via LocationCriterionService

131 views
Skip to first unread message

HK

unread,
Jan 19, 2015, 7:18:04 PM1/19/15
to adwor...@googlegroups.com
Hi,

Is there a way to get all the LocationCriterions via the LocationCriterionService? It seems that it requires certain predicates. I'd like to retrieve all of them maybe once every two weeks and store locally. Is it instead expected that API users download the CSV files from https://developers.google.com/adwords/api/docs/appendix/geotargeting and https://developers.google.com/adwords/api/docs/appendix/cities-DMAregions?

Hopefully there is a way to either query all of them or add a predicate that includes all via a get call.

Thanks,
Hans

Anash P. Oommen (AdWords API Team)

unread,
Jan 19, 2015, 11:20:05 PM1/19/15
to adwor...@googlegroups.com
Hi Hans,

You should be using the data from the CSV, since the data doesn't change that frequently. You could use LocationCriterionService if you want to lookup a few locations based on user input, and you think that your local data is out of sync with the server.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

HK

unread,
Jan 20, 2015, 6:18:31 PM1/20/15
to adwor...@googlegroups.com
Thanks, Anash. Hopefully you guys will keep the download URL for the latest files the same across updates, so http://goo.gl/3Mxbei (DMA) and http://goo.gl/HndLIn (Geo locations). That way we can grab it programmatically more easily.

.
Hans

Anash P. Oommen (AdWords API Team)

unread,
Jan 22, 2015, 2:51:34 AM1/22/15
to adwor...@googlegroups.com
Hi Hans,

Yes, the short links are kept unchanged.

Cheers,
Anash
Reply all
Reply to author
Forward
0 new messages