Campaign Location Targeting

45 views
Skip to first unread message

rob

unread,
Jun 13, 2018, 12:51:14 AM6/13/18
to AdWords API and Google Ads API Forum
Hi AdWords Support Team,

I followed the Targeting guide for Java using the exact sample code. I made a call for the query "hong". One of the returned location is a Postal Code object as follow:

              <rval>
                <location>
                    <id>9062009</id>
                    <Criterion.Type>Location</Criterion.Type>
                    <locationName>560068</locationName>
                    <displayType>Postal Code</displayType>
                    <targetingStatus>ACTIVE</targetingStatus>
                    <parentLocations>
                        <id>20460</id>
                        <Criterion.Type>Location</Criterion.Type>
                        <locationName>Karnataka</locationName>
                        <displayType>State</displayType>
                        <targetingStatus>ACTIVE</targetingStatus>
                    </parentLocations>
                    <parentLocations>
                        <id>2356</id>
                        <Criterion.Type>Location</Criterion.Type>
                        <locationName>India</locationName>
                        <displayType>Country</displayType>
                        <targetingStatus>ACTIVE</targetingStatus>
                    </parentLocations>
                </location>
                <canonicalName>560068,Karnataka,India</canonicalName>
                <reach>1800000</reach>
                <searchTerm>hong</searchTerm>
            </rval>

The following is my get selector query:
            <selector>
                <fields>Id</fields>
                <fields>LocationName</fields>
                <fields>CanonicalName</fields>
                <fields>DisplayType</fields>
                <fields>ParentLocations</fields>
                <fields>Reach</fields>
                <predicates>
                    <field>LocationName</field>
                    <operator>IN</operator>
                    <values>hong</values>
                </predicates>
                <predicates>
                    <field>Locale</field>
                    <operator>EQUALS</operator>
                    <values>en</values>
                </predicates>
            </selector>
        </get>

I would like to know why when I search for LocationName for operator IN with value hong the postal code with LocationName 560068 returned?

Thanks for any help.

Peter Oliquino (AdWords API Team)

unread,
Jun 13, 2018, 3:47:48 AM6/13/18
to AdWords API and Google Ads API Forum
Hi Rob,

The reason you are getting the 560068 value as the LocationName because when you refer to the Geo Targeting Spreadsheet and filter using Criteria ID = 9062009, you will see that its value in the Name field is indeed 560068. It is a TargetType = Postal Code, hence, its Name will represented by its exact zip/postal code.

I hope this has been helpful.

Thanks and regards,
Peter
AdWords API Team

rob

unread,
Jun 13, 2018, 11:14:48 PM6/13/18
to AdWords API and Google Ads API Forum
Hi Peter,

Your respond does indeed tells me why the LocationName is 560068 but it does not tell me why is this postal code part of the returned Locations.The fact that this location is part of the returned values seems like a bug to me because its LocationName, 560069, does not contain the search query "hong" and "hong" does not appear in the represented address of the postal code (560068,Karnataka,India) either, so I have the following questions:
  1. Is the query I used the correct way to find the Location with names containing "hong" in it?
  2. What is the logic behind the resultant value of postal code address Location "560068"? 
  3. The fact that this location is part of the returned values seems like a bug to me because its LocationName, 560068 which does not contain the search query "hong"; and "hong" does not appear in the represented address of the postal code (560068,Karnataka,India) either. Thus, is this return value a bug?
  4. It looks weird when I return results such as this to users, so if this is a bug, will it be fixed any time soon?
Thanks,
Rob

Peter Oliquino (AdWords API Team)

unread,
Jun 14, 2018, 3:48:08 AM6/14/18
to AdWords API and Google Ads API Forum
Hi Rob,

My apologies for the confusion. That is indeed unusual, however, so our team could further look into this, could you provide to me the complete SOAP request and response that also includes your clientCustomerId? You may reply to me via the Reply privately to author option.
Reply all
Reply to author
Forward
0 new messages