Get categoryids of one keywords

56 views
Skip to first unread message

Sally CHEN

unread,
Jul 3, 2018, 4:46:39 AM7/3/18
to AdWords API and Google Ads API Forum
Hi,

I would like to know is there any google adwords api for me to get the category ids of some given keywords.

Best Regards,
Sally

Dannison Yao (AdWords API Team)

unread,
Jul 3, 2018, 5:40:39 AM7/3/18
to AdWords API and Google Ads API Forum
Hi Sally,

Could you confirm if you are using the TargetingIdeaService and you wish to pass the product category Id in your request? if yes, you may refer to this guide on how to do so. You could check out the list of products and services categories in this link

Let me know if this is what you're looking for.

Regards,
Dannison
AdWords API Team

Sally CHEN

unread,
Jul 3, 2018, 10:18:56 PM7/3/18
to AdWords API and Google Ads API Forum
Hi Dannison,

I can get some new keyword ideas with the categoryids, so I wonder is there any other apis for me to retrieve the categoryids of the existing keywords in my ad group.

Best Regards,
Sally

Dannison Yao (AdWords API Team)

unread,
Jul 4, 2018, 2:40:18 AM7/4/18
to AdWords API and Google Ads API Forum
Hi Sally,

The CategoryId is an input or parameter for the TargetingIdeaService for you to get the keyword ideas under the category you specified. The CategoryId is not returned by any service or reports of the AdWords API so associating which categories your keywords belong to is currently not supported. You could check out the list of products and services categories in this link.

Since CategoryId is not a field in the Keyword object, could you please provide further details or screenshot where you are seeing a CategoryId in your Keyword data, aside from that being returned by the Keyword Ideas in TargetingIdeaService?

Dannison Yao (AdWords API Team)

unread,
Jul 4, 2018, 7:15:57 AM7/4/18
to AdWords API and Google Ads API Forum
Hi Sally,

Just to make my previous response more clear. For your existing keywords, there is currently no service or report that would allow you to determine which category they are associated to.

Feel free to write back if you need further clarifications.

ghu...@system1.com

unread,
Aug 23, 2018, 5:08:44 AM8/23/18
to AdWords API and Google Ads API Forum
Correct me if I'm wrong, but I believe you can retrieve the category ID's for keywords by setting RequestType to STATS? https://developers.google.com/adwords/api/docs/guides/targeting-idea-service#retrieving_keyword_stats

Sally CHEN

unread,
Aug 23, 2018, 5:29:48 AM8/23/18
to AdWords API and Google Ads API Forum

Hi,

Yes, I can get the categoryid by setting RequestType to STAT.
 
Best Regards,
Sally
在 2018年8月23日星期四 UTC+8下午5:08:44,ghu...@system1.com写道:

Dannison Yao (AdWords API Team)

unread,
Aug 24, 2018, 3:03:54 AM8/24/18
to AdWords API and Google Ads API Forum
Hi,

Could you confirm if what you meant by categoryId was this CategoryProductsAndServicesSearchParameter type? If yes, according to the link provided, it only supports RequestType.IDEAS. However, this does seem to work on your end. To further investigate this, could you provide the complete SOAP request and response logs when the service call was executed? You may respond via Reply privately to author.

Regards,
Dannison
AdWords API Team

Bora Kim

unread,
Aug 26, 2018, 7:14:20 PM8/26/18
to AdWords API and Google Ads API Forum
Hi Sally
tks you
i like you a problem :)
Reply all
Reply to author
Forward
0 new messages