Keyword Criterion IDs question

60 views
Skip to first unread message

veseo

unread,
Aug 31, 2011, 4:31:25 AM8/31/11
to adwor...@googlegroups.com
Hello,

We have an MCC account and I noticed that if I add the same keyword (i.e. text+match type) for two different clients, the resulting criterion id is the same. Is this by design and am I correct that the combination "text + match type" is unique, regarding generating the criterion id?

David Torres

unread,
Sep 2, 2011, 5:06:32 PM9/2/11
to adwor...@googlegroups.com
Hi,

The combination of "text + match type" in most of the circumstances is unique but it is not guaranteed, what is always guaranteed is the uniqueness of the combination of (text + match type + ad group id)

Best,

-David Torres - AdWords API Team

peter.r...@smarter-ecommerce.com

unread,
Jan 30, 2018, 11:01:04 AM1/30/18
to AdWords API Forum
Is it guaranteed that the criteria id will be the same within the same account ? 

We need to get aggregated performance data for a keyword (identified by a criterion id only) even if it has been "moved" to another ad group. 

Let's consider this example

Campaign 1
  Group 1
    Criterion 1   (e.g, keyword "a")  --> Deleted and re-created in Group 2
  Group 2
    Criterion 1    (e.g. keyword "a")

If Criterion 1 caused 100 clicks while it was located in Group 1 and 50 clicks afterwards in Group 2, can we query a report in a fashion like
SELECT CriteriaId, Clicks FROM ...
and do we get 150 clicks for Criterion 1


Thanks, 
Peter

Dhanya Sundararaju (AdWords API Team)

unread,
Jan 30, 2018, 2:25:19 PM1/30/18
to AdWords API Forum
Hi Peter,

When you remove a keyword and create a new one no matter in which account, there is no guarantee that it will retain the KeywordId. However, a unique identifier of a keyword is a combination of its ad group ID and keyword ID. Therefore, if you need aggregated performance data for a keyword from two different ad groups, you would need to use predicates to filter by combination of its adgroupid and keywordid. Please see code snippet below :

"SELECT AdGroupId, Id, Clicks FROM KEYWORDS_PERFORMANCE_REPORT WHERE AdGroupId = <ad group id> AND Id = <keyword id> ";

Please note that if you are using AWQL, you would need to make two of these calls as OR condition is not supported by AWQL. Please let me know if you have further questions.

Regards,
Dhanya, AdWords API Team
Reply all
Reply to author
Forward
0 new messages