I create a SmartcampaignCriteria with keyword_theme_constant and use query 
to get the keywordthemeconstant's displayName,it's different from UI.API’s 
*Domain 
Names*, UI is *Web hosting company*.
I've checked the  campaignCriteria is the same.
Request1:
curl --location --request POST 
'https://googleads.googleapis.com/v9/customers/XXXXXX/campaignCriteria:mutate' 
\
--header 'Content-Type: application/json' \
--data-raw '{
    "operations": {
        "create": {
            "status": "ENABLED",
            "type": "KEYWORD_THEME",
            "campaign": "customers/XXXXX/campaigns/XXXXX",
            "negative": false,
            "keyword_theme": {
               "keyword_theme_constant":"keywordThemeConstants/41173~20943"
            }
        }
    },
    "partialFailure": false,
    "validateOnly": false,
    "responseContentType": "MUTABLE_RESOURCE"
}'

 Request2: 
{"query":"SELECT keyword_theme_constant.resource_name, 
keyword_theme_constant.country_code, keyword_theme_constant.language_code, 
keyword_theme_constant.display_name FROM keyword_theme_constant 
"}  

Response:
[{
  "results": [
    {
      "keywordThemeConstant": {
        "resourceName": "keywordThemeConstants/41173~20943",
        "countryCode": "US",
        "languageCode": "en",
        "displayName": "*Domain Names*"
      }
  ],
  "fieldMask": 
"keywordThemeConstant.resourceName,keywordThemeConstant.countryCode,keywordThemeConstant.languageCode,keywordThemeConstant.displayName",
  "requestId": 
}
]
UI:
[image: gg.png]

Thanks,vivi

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
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 the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/7bf46c3d-cfc3-4620-9bca-66532ba0856fn%40googlegroups.com.
  • Th... Chen Xiaowei
    • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
    • ... Mhmoudahmdmohmmd homydt
      • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum

Reply via email to