1、Create a campaigncriteria
Request:
curl --location --request POST 
'https://googleads.googleapis.com/v9/customers/4001226147/campaignCriteria:mutate'
 
\
--header 'developer-token: 0l86vbNJz8I_JaZvwtKvaA' \
--header 'login-customer-id: 5551208501' \
--header 'Authorization: Bearer 
ya29.A0ARrdaM8b1vP3VRwfA3-M8klhD0pPJ3vULgakiQ9DRGJ977_G_ogZvSo6e2fD6IrrvPX7YIAYNW_f5xoy17dICsIT_JbHX_Nd5HzGxq1M54eiHFtgIiUThGgRo8qoY5G6Pt5nuyY-GHPW4WKihKTfsBQ1cfNz'
 
\
--header 'Content-Type: application/json' \
--data-raw '{
    "operations": {
        "create": {
            "status": "ENABLED",
            "type": "KEYWORD_THEME",
            "campaign": "customers/4001226147/campaigns/15313888735",
            "negative": false,
            "keyword_theme": {
               "keyword_theme_constant": "
*keywordThemeConstants/41173~20943*"
            }
        }
    },
    "partialFailure": false,
    "validateOnly": false,
    "responseContentType": "MUTABLE_RESOURCE"
}'
Response:
{
    "results": [
        {
            "resourceName": 
"customers/4001226147/campaignCriteria/15313888735~1565722106803",
            "campaignCriterion": {
                "resourceName": 
"customers/4001226147/campaignCriteria/15313888735~1565722106803",
                "status": "ENABLED",
                "campaign": "customers/4001226147/campaigns/15313888735",
                "criterionId": "1565722106803",
                "negative": false,
                "keywordTheme": {
                    "keywordThemeConstant": 
"keywordThemeConstants/41173~20943"
                }
            }
        }
    ]
}
Show on UI
[image: keyword.png]
2、Get KeywordThemeConstants ResourceName
Request:
curl --location --request GET 'https://googleads.googleapis.com/v9/
*keywordThemeConstants/41173~20943*' \
--header 'developer-token: 0l86vbNJz8I_JaZvwtKvaA' \
--header 'login-customer-id: 5551208501' \
--header 'Authorization: Bearer 
ya29.A0ARrdaM8b1vP3VRwfA3-M8klhD0pPJ3vULgakiQ9DRGJ977_G_ogZvSo6e2fD6IrrvPX7YIAYNW_f5xoy17dICsIT_JbHX_Nd5HzGxq1M54eiHFtgIiUThGgRo8qoY5G6Pt5nuyY-GHPW4WKihKTfsBQ1cfNz'
 
\
--data-raw ''
Response:
{
    "resourceName": "keywordThemeConstants/41173~20943",
    "countryCode": "US",
    "languageCode": "en",
    "displayName": "*Domain Names*"
}
3.1、Get KeywordThemeConstant suggestions(queryText=Domain Names)
Request:
curl --location --request POST 
'https://googleads.googleapis.com/v9/keywordThemeConstants:suggest' \
--header 'developer-token: 0l86vbNJz8I_JaZvwtKvaA' \
--header 'login-customer-id: 5551208501' \
--header 'Authorization: Bearer 
ya29.A0ARrdaM8b1vP3VRwfA3-M8klhD0pPJ3vULgakiQ9DRGJ977_G_ogZvSo6e2fD6IrrvPX7YIAYNW_f5xoy17dICsIT_JbHX_Nd5HzGxq1M54eiHFtgIiUThGgRo8qoY5G6Pt5nuyY-GHPW4WKihKTfsBQ1cfNz'
 
\
--header 'Content-Type: application/json' \
--data-raw '{
  "queryText": "*Domain Names*",
  "countryCode": "US",
  "languageCode": "en"
}'
Response:
{
    "keywordThemeConstants": [
        {
            "resourceName": "*keywordThemeConstants/8577039~0*",
            "displayName": "*domain names*"
        },
        {
            "resourceName": "*keywordThemeConstants/41173~0*",
            "displayName": "*web hosting company*"
        },
        {
            "resourceName": "keywordThemeConstants/41173~20988",
            "displayName": "web hosting servers"
        },
        {
            "resourceName": "keywordThemeConstants/41173~22072",
            "displayName": "web design services"
        },
        {
            "resourceName": "keywordThemeConstants/15684948~0",
            "displayName": "available domain names"
        },
        {
            "resourceName": "keywordThemeConstants/15594966~0",
            "displayName": "website domain names"
        },
        {
            "resourceName": "keywordThemeConstants/15277164~0",
            "displayName": "web domain names"
        },
        {
            "resourceName": "keywordThemeConstants/15290954~0",
            "displayName": "new domain names"
        },
        {
            "resourceName": "keywordThemeConstants/9138261~0",
            "displayName": "selling domain names"
        },
        {
            "resourceName": "keywordThemeConstants/7779052~0",
            "displayName": "registered domain names"
        },
        {
            "resourceName": "keywordThemeConstants/14408719~0",
            "displayName": "international domain names"
        }
    ]
}
3.2、Get KeywordThemeConstant suggestions(queryText= Web hosting company)
Request:
curl --location --request POST 
'https://googleads.googleapis.com/v9/keywordThemeConstants:suggest' \
--header 'developer-token: 0l86vbNJz8I_JaZvwtKvaA' \
--header 'login-customer-id: 5551208501' \
--header 'Authorization: Bearer 
ya29.A0ARrdaM8b1vP3VRwfA3-M8klhD0pPJ3vULgakiQ9DRGJ977_G_ogZvSo6e2fD6IrrvPX7YIAYNW_f5xoy17dICsIT_JbHX_Nd5HzGxq1M54eiHFtgIiUThGgRo8qoY5G6Pt5nuyY-GHPW4WKihKTfsBQ1cfNz'
 
\
--header 'Content-Type: application/json' \
--data-raw '{
  "queryText": " *Web hosting company*",
  "countryCode": "US",
  "languageCode": "en"
}'
Response:
{
    "keywordThemeConstants": [
        {
            "resourceName": "*keywordThemeConstants/41173~0*",
            "displayName": "*web hosting company*"
        },
        {
            "resourceName": "*keywordThemeConstants/41173~20943*",
            "displayName": "*domain names*"
        },
        {
            "resourceName": "keywordThemeConstants/41173~20988",
            "displayName": "web hosting servers"
        },
        {
            "resourceName": "keywordThemeConstants/41173~22072",
            "displayName": "web design services"
        },
        {
            "resourceName": "keywordThemeConstants/42032~0",
            "displayName": "website design"
        },
        {
            "resourceName": "keywordThemeConstants/42032~21034",
            "displayName": "e-commerce website design"
        },
        {
            "resourceName": "keywordThemeConstants/42032~24121",
            "displayName": "website graphic design"
        },
        {
            "resourceName": "keywordThemeConstants/42032~25979",
            "displayName": "search engine optimization"
        },
        {
            "resourceName": "keywordThemeConstants/31614~0",
            "displayName": "e-commerce service"
        },
        {
            "resourceName": "keywordThemeConstants/31614~18026",
            "displayName": "ecommerce website design services"
        },
        {
            "resourceName": "keywordThemeConstants/31614~691696",
            "displayName": "ecommerce seo services"
        },
        {
            "resourceName": "keywordThemeConstants/31614~691699",
            "displayName": "drop shipping services"
        },
        {
            "resourceName": "keywordThemeConstants/41176~0",
            "displayName": "website designer"
        },
        {
            "resourceName": "keywordThemeConstants/41176~21030",
            "displayName": "commercial website design"
        },
        {
            "resourceName": "keywordThemeConstants/41176~21759",
            "displayName": "graphic designer"
        }
    ]
}
在2021年12月29日星期三 UTC+8 16:10:35<adsapi> 写道:

> Hi Chen,
>
> Thank you for posting your concern.
>
> I can see that this concern has already been raised to an existing forum 
> thread. With this, I would suggest to continue the discussion on one thread 
> or forum post only for better tracking of updates.
>
> Moving forward, could you provide the complete request 
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#request>
>  and response 
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#response>
>  logs 
> with request ID 
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id>
>  and request header 
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request_headers>
>  for 
> those 3 requests so that I can investigate the issue?
>
> Please provide it via *Reply privately to author* option or send it to 
> this email address [email protected] if the said option is not 
> available.
>
> Regards,
> [image: Google Logo] 
> Ernie John Blanca Tacata 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2Tlmxh:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/5015c470-2a6a-4f3b-8f28-cc4d42de6e91n%40googlegroups.com.
  • Th... Chen Xiaowei
    • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
      • ... Chen Xiaowei
      • ... Chen Xiaowei
        • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
          • ... Chen Xiaowei
            • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
              • ... Chen Xiaowei
                • ... Kevin
                • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to