Targeting French Department Locations through the API

137 views
Skip to first unread message

francis...@gmail.com

unread,
May 21, 2013, 7:31:36 AM5/21/13
to adwor...@googlegroups.com
Hello,

I have been working on using the Adwords Api to set up Locations for France.

It is working fine with Cities and Regions but I’m having issues with Departments.

I can work on Departments as


from https://adwords.google.com/cm/CampaignMgmt but I can’t from the API.

Here below the error I’m getting when trying to add a Location which target_type is Department
AddGeoTarget

PHP Fatal error:  Uncaught SoapFault exception: [soap:Server] [CriterionError.CANNOT_TARGET_CRITERION @ operations[8].operand.criterion; trigger:'9040859', CriterionError.CANNOT_TARGET_CRITERION @ operations[11].operand.criterion; trigger:'9040857', CriterionError.CANNOT_TARGET_CRITERION @ operations[12].operand.criterion; trigger:'9040914', CriterionError.CANNOT_TARGET_CRITERION @ operations[14].operand.criterion; trigger:'9040856', CriterionError.CANNOT_TARGET_CRITERION @ operations[15].operand.criterion; trigger:'9040882', CriterionError.CANNOT_TARGET_CRITERION @ operations[16].operand.criterion; trigger:'9040883', CriterionError.CANNOT_TARGET_CRITERION @ operations[17].operand.criterion; trigger:'9040860', CriterionError.CANNOT_TARGET_CRITERION @ operations[18].operand.criterion; trigger:'9040877', CriterionError.CANNOT_TARGET_CRITERION @ operations[19].operand.criterion; trigger:'9040905', CriterionError.CANNOT_TARGET_CRITERION @ operations[20].operand.criterion; trigger:'9040912', CriterionError.CANNOT_TARGET_CRITERION @ in /home/paco/Google_Api/aw_api_php_lib_4.2.2/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php on line 200

Thank you for your feedback on this issue

Francisco

Kevin Winter (AdWords API Team)

unread,
May 23, 2013, 10:22:28 AM5/23/13
to adwor...@googlegroups.com
Hi Francisco,
  Those IDs don't appear to be valid.  If I change the target type to Department on our Geographical Targeting page , I do see a bunch of french departments, but I didn't find any mention of the few IDs I spotchecked.

- Kevin Winter
AdWords API Team

Francisco Ortiz

unread,
May 27, 2013, 8:12:29 AM5/27/13
to adwordsapia...@google.com, adwor...@googlegroups.com
Hi Kevin,

Not sure I got your answer well !
I did collect the data from the page you mentionned and here below is one example.
I do use the Criteria ID, in this case 9040859, so set up the location through the API and I got the error message I sent previously :
PHP Fatal error:  Uncaught SoapFault exception: [soap:Server] [CriterionError.CANNOT_TARGET_CRITERION @ operations[8].operand.criterion; trigger:'9040859',  CriterionError.CANNOT_TARGET_CRITERION @ in /home/paco/Google_Api/aw_api_php_lib_4.2.2/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php on line 200
Do I miss something ?

Thank you again for the help

Francisco





--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@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 a topic in the Google Groups "AdWords API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-api/DVB0NRFt9Rc/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to adwords-api...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Kevin Winter (AdWords API Team)

unread,
May 29, 2013, 9:37:53 AM5/29/13
to adwor...@googlegroups.com, adwordsapia...@google.com
Hi Francisco,
  I should have mentioned this earlier - the Department Location Type is currently only available for developers participating in our beta program.  If you are not currently a member of this program, you won't be able to work with these targets.  You can talk to your CSR or Account Manager about getting invited to this program.

- Kevin Winter
AdWords API Team
Reply all
Reply to author
Forward
0 new messages