KeywordID Different For Same Keyword

140 views
Skip to first unread message

Charles Michael

unread,
Nov 5, 2019, 6:06:36 PM11/5/19
to AdWords API and Google Ads API Forum
Hi, is there a way to ensure that if we use the same keyword in multiple campaigns that the keywordID will be the same between all campaigns? I'm noticing that sometimes its the same ID and sometimes it isn't which is throwing havoc to my report management. Is there a way that we can ensure that the ID will be the same in multiple campaigns? For example, if we copy/paste the entire campaign within Google Ads Editor or some other method to ensure it remains the same? 

Thank you

Google Ads API Forum Advisor Prod

unread,
Nov 6, 2019, 11:57:08 AM11/6/19
to charles...@gmail.com, adwor...@googlegroups.com
Hi Charles, 

The keyword Id may or may not be the same, as the criteria Id is not globally unique. However, while generating the reports you may use the (AdGroupId, CriterionId) or the (CampaignId, CriterionId) pairs which are globally unique. Please refer to this guide for more information. Let me know if you have any further questions. 

Regards,
Bharani, Google Ads API Team

ref:_00D1U1174p._5001UMWMCn:ref

Charles Michael

unread,
Nov 6, 2019, 2:29:52 PM11/6/19
to AdWords API and Google Ads API Forum
Hi, unfortunately we need the criteriaID (keyword ID) and not just the adgroup/campaign id's. We're trying to track revenues / expenses by keyword and while we can pass this id via a valuetrack variable in the finalurl ({targetid}), we are having a hard time creating reports when the same keyword maps to multiple criteriaID's. Is there another way to track keywords where the same keyword has a unique ID of some sort? 

Google Ads API Forum Advisor Prod

unread,
Nov 7, 2019, 8:52:32 AM11/7/19
to charles...@gmail.com, adwor...@googlegroups.com
Hi Charles, 

The Criteria in the AdWords API are uniquely identified by the combination of their CriterionId and either the CampaignId or AdGroupId, depending on where the criteria is. Since this keyword is being added to a different AdGroups, the Criteria Id may be the same but the  (AdGroupId, CriterionId) combination is not the same for these AdGroups. You may see the same AdGroupCriterion in different AdGroups as the criterionId is not globally unique. You need to use the  (AdGroupId, CriterionId) or (CampaignId, CriterionId) pair to map to unique entities. This is the unique way to identify the keywords in multiple ad groups. 

Thanks,

Charles Michael

unread,
Nov 7, 2019, 9:05:58 AM11/7/19
to AdWords API and Google Ads API Forum
Hi, I'll update our tracking system to include the campaignid + criteriaid. Thank you.

Reply all
Reply to author
Forward
0 new messages