google ads api app campaign creation (location) questions

102 views
Skip to first unread message

adm guo

unread,
Dec 13, 2020, 10:29:31 PM12/13/20
to AdWords API and Google Ads API Forum
Hi all,
I'd like to create an app campaign with location criterion (and advanced options) via API, according to the web ui, and the golang client doc.

Screen Shot 2020-12-14 at 11.20.47 AM.png

In the target section,


the option "Presence or interest: People in, regularly in, or who've shown interest in your targeted locations (recommended)" stands for PositiveGeoTargetTypeEnum_PRESENCE_OR_INTEREST PositiveGeoTargetTypeEnum_PositiveGeoTargetType = 5

the option "Presence: People in or regularly in your targeted locations" stands for PositiveGeoTargetTypeEnum_PRESENCE PositiveGeoTargetTypeEnum_PositiveGeoTargetType = 7

the option "Search interest: People searching for your targeted locations" stands for PositiveGeoTargetTypeEnum_SEARCH_INTEREST PositiveGeoTargetTypeEnum_PositiveGeoTargetType = 6

However, the doc also mentioned the last option "Specifies that an ad is triggered if the user searches for advertiser's targeted locations. This can only be used with Search and standard Shopping campaigns."

I haven't tried the last option passed to the API, nor the operation in the web UI,  but I believe I will constantly get the error message "invalid params" only with golang client. I prefer to know it's whether a mislead in the golang doc or the web ui.
Kind regards

Google Ads API Forum Advisor Prod

unread,
Dec 15, 2020, 3:14:22 AM12/15/20
to admy...@gmail.com, adwor...@googlegroups.com
Hi,

Thanks for posting your concern.

With regard on setting the values for PositiveGeoTargetType, please use the enum values specified in this document instead, and not the numerical values. Try setting also the PositiveGeoTargetType of GeoTargetTypeSetting.

For further information about 'Search interest: People searching for your targeted locations', this option is only available for Search campaigns and lets you show your ads to anyone searching on Google for your targeted location. If a person doesn’t specify a location in their search, then the system uses the location where a user is likely to be located for targeting. This has been discussed on the this document (Reach people searching for your targeted locations (Search interest)).

As for the golang client library, you could try compiling Go libraries by running the protocol directly on the Google Ads API’s protocol buffer source files. You can follow the instructions at https://github.com/protocolbuffers/protobuf for Go to build these files.

If the error persists or you encounter any issues with this client library, then please post your concern here as this is out of our scope. The author of the client library will provide guidance on how to address the issue related to this client library. 

Regards,
Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


ref:_00D1U1174p._5004Q29Rao4:ref
Reply all
Reply to author
Forward
0 new messages