Search campaign keywords are not added from api

21 views
Skip to first unread message

Morten Mazanti

unread,
Jul 22, 2024, 5:34:11 AM7/22/24
to Google Ads API and AdWords API Forum
We got some issues with adding keywords.
Trying this from Postman gives us succes response but no keywords are added to campaign.

Here example of Keyword request:

{
    "operations": [
        {
            "create": {
                "type": "KEYWORD",
                "status": "ENABLED",
                "negative": true,
                "campaign": "customers/2175263560/campaigns/21474068793",
                "keyword": {
                    "matchType": "BROAD",
                    "text": "Hotels"
                }
            }
        }
    ]
}

API call: POST -
https://googleads.googleapis.com/v16/customers/xxxxxxxxx/campaignCriteria:mutate

Response:
{
    "results": [
        {
            "resourceName": "customers/xxxxxxxxx/campaignCriteria/21474068793~11883741"
        }
    ]
}

Checking campaign the keyword "hotels" is not added.

What should we do differently?

Thanks in advance,
Morten

Google Ads API Forum Advisor

unread,
Jul 22, 2024, 9:58:21 AM7/22/24
to moma...@gmail.com, adwor...@googlegroups.com
Hi Morten,

Thank you for reaching out to the Google Ads API support team.

Based on the provided information, I understand that the keyword 'Hotels' was not added to your account despite the API call being successful. Upon reviewing the logs, I noticed that you attempted to add the keyword 'Hotels' as a negative keyword, and I can confirm that it is already present in your account. To verify this yourself, please navigate to your Google Ads account > then go to Audiences, keywords and content > Search keywords > Negative search keywords. Here, you will see the negative keywords 'Events' and 'Hotels'.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02vE0Hl:ref" (ADR-00258834)

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages