Re: Paging not working with LocationCriterionService

2020-08-18 Thread Harsh Patel
Hi Nadine,

Thanks for looking into the issue. Can you advise another way to 
programmatically find the Location ID of the state of Washington. Its not 
returned in the first 10 results because there are many other types of 
locations which contain "Washington". Is there another filter I could 
possibly add or can I change the string I am searching by?

Thanks,
Harsh

On Tuesday, August 18, 2020 at 9:53:53 PM UTC-5 adsapiforumadvisor wrote:

> Greetings!
>
> LocationCriterionService is one of those services that has a finite 
> number of results that could possibly return, so the paging mechanism was 
> not utilized since paging is meant for handling larger requests. If you 
> pass it in, as you can see, there won't be a change in the results. If you 
> take a look in our code examples (
> https://developers.google.com/adwords/api/docs/guides/location-targeting#look_up_location_codes_for_a_region),
>  
> paging is not used.
>
> I do appreciate you being so observant to notice this. That behavior for 
> this particular service has been around for a very long time, and the 
> results coming back are limited, so we have kept the behavior as is. If we 
> were to try to change it at this time, it may break someone else's code.
>
> Cheers,
> Nadine Wang, Google Ads API Team
>
> ref:_00D1U1174p._5004Q23KxIK:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/2a04d8f0-8532-439d-aa27-5910efa281e3n%40googlegroups.com.


Paging not working with LocationCriterionService

2020-08-17 Thread Harsh Patel
Hello, I am trying to page through results from the 
LocationCriterionService. I am observing that the paging has no effect on 
the results returned even though Paging is supported in the documentation 

.

I am searching for all Location Criterion which contain the the name 
"Washington". I always get the same 10 results, no matter what is set for 
the startIndex and numberResults.

The first request, as you can see it has startIndex set to 8 and 
numberResults set to 1:

POST /api/adwords/cm/v201809/LocationCriterionService?wsdl HTTP/1.1
Host: adwords.google.com
Connection: close
User-Agent: PHP-SOAP/7.3.12
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 1049
Authorization: REDACTED


http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201809";>
REDACTEDREDACTEDunknown
 
(AwApi-PHP, googleads-php-lib/43.0.0, 
PHP/7.3.12)falsefalseIdDisplayTypeLocationNameINWashingtonLocationNameASCENDING81

HTTP/1.1 200 OK
Content-Type: text/xml; charset=UTF-8
Date: Mon, 17 Aug 2020 21:10:03 GMT
Expires: Mon, 17 Aug 2020 21:10:03 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Content-Security-Policy: frame-ancestors 'self'
X-XSS-Protection: 1; mode=block
Server: GSE
Alt-Svc: h3-29=":443"; ma=2592000,h3-27=":443"; ma=2592000,h3-T050=":443"; 
ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; 
ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Accept-Ranges: none
Vary: Accept-Encoding
Connection: close
Transfer-Encoding: chunked

http://schemas.xmlsoap.org/soap/envelope/";>https://adwords.google.com/api/adwords/cm/v201809";>0005ad1931b7dc710a014b8895059241LocationCriterionServiceget1294https://adwords.google.com/api/adwords/cm/v201809";>1014895LocationWashingtonCityACTIVE21140LocationDistrict
 
of 
ColumbiaStateACTIVE9040468LocationDC-AT
 
LARGECongressional 
DistrictACTIVE200511LocationWashington
 
DC (Hagerstown MD)DMA 
RegionACTIVE2840LocationUnited
 
StatesCountryACTIVEWashington,District
 
of Columbia,United 
States1070Washington9073489LocationGreenwich
 
VillageNeighborhoodACTIVE9067609LocationManhattanBoroughACTIVE9058761LocationNew
 
York 
CountyCountyACTIVE1023191LocationNew
 
YorkCityACTIVE200501LocationNew
 
York, NYDMA 
RegionACTIVE21167LocationNew
 
YorkStateACTIVE2840LocationUnited
 
StatesCountryACTIVEGreenwich
 
Village,New York,United 
States253000Washington1025379LocationWashingtonCityACTIVE9059192LocationWashington
 
CountyCountyACTIVE9040710LocationPA-14Congressional
 
DistrictACTIVE200508LocationPittsburgh
 
PADMA 
RegionACTIVE21171LocationPennsylvaniaStateACTIVE2840LocationUnited
 
StatesCountryACTIVEWashington,Pennsylvania,United
 
States324000Washington1021356LocationWashingtonCityACTIVE9058794LocationBeaufort
 
CountyCountyACTIVE200545LocationGreenville-New
 
Bern-Washington NCDMA 
RegionACTIVE9040620LocationNC-3Congressional
 
DistrictACTIVE21160LocationNorth
 
CarolinaStateACTIVE2840LocationUnited
 
StatesCountryACTIVEWashington,North
 
Carolina,United 
States6Washington1020670LocationWashingtonCityACTIVE9058424LocationFranklin
 
CountyCountyACTIVE9040602LocationMO-3Congressional
 
DistrictACTIVE200609LocationSt.
 
Louis MODMA 
RegionACTIVE21157LocationMissouriStateACTIVE2840LocationUnited
 
StatesCountryACTIVEWashington,Missouri,United
 
States112000Washington1027008LocationWashingtonCityACTIVE9059683LocationWashington
 
CountyCountyACTIVE9040780LocationUT-2Congressional
 
DistrictACTIVE21177LocationUtahStateACTIVE200770LocationSalt
 
Lake City UTDMA 
RegionACTIVE2840LocationUnited
 
StatesCountryACTIVEWashington,Utah,United
 
States135000Washington9028775Location80209Postal
 
CodeACTIVE9057192LocationDenver
 
CountyCountyACTIVE1014485LocationDenverCityACTIVE9040456LocationCO-1Congressional
 
DistrictACTIVE21138LocationColoradoStateACTIVE200751LocationDenver
 
CODMA 
RegionACTIVE2840LocationUnited
 
StatesCountryACTIVE80209,Colorado,United
 
States42Washington1007202LocationWashingtonCityACTIVE9041124LocationTyne
 
and 
WearCountyACTIVE9047016LocationNorth
 
EastTV 
RegionACTIVE20339LocationEnglandProvinceACTIVE2826LocationUnited
 
KingdomCountryACTIVEWashington,England,United
 
Kingdom142000Washington1024061LocationWashington
 
Court 
HouseCityACTIVE9058958LocationFayette
 
CountyCountyACTIVE9040680LocationOH-10Congressional
 
DistrictACTIVE200535LocationColumbus
 
OHDMA 
RegionACTIVE21168LocationOhioStateACTIVE2840LocationUnited
 
StatesCountryACTIVEWashington
 
Court House,Ohio,United 
States81000Washington9073504LocationWashington
 
HeightsNeighborhoodACTIVE9040656LocationNY-13Congressional
 
DistrictACTIVE9067609LocationManhattanBoroughACTIVE9058761LocationNew
 
York 
CountyCountyACTIVE1023191LocationNew
 
YorkCityACTIVE200501LocationNew
 
York, NYDMA 
RegionACTIVE21167LocationNew
 
YorkStateACTIVE2840LocationUnited
 
StatesCountryACTIVEWash

Is Campaign Consistency Guaranteed?

2019-08-21 Thread Harsh Patel
If I have 2 threads which use the API to create campaigns with the same 
campaign name at the exact same time, what will the AdWords API do? Is 
there a possibility that 2 campaigns with the same name will be created?

I see that there are error messages for DUPLICATE_CAMPAIGN_NAME 

 and 
also CONCURRENT_MODIFICATION 

 but 
this does not tell me if the AdWords API will guarantee that 2 campaigns 
with the same name will never be created.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/59ecc5e2-4e7e-465b-a4cf-4d732183cc0c%40googlegroups.com.