Account Level Negative keywords v14

138 views
Skip to first unread message

Sophie Rigg

unread,
Jun 16, 2023, 4:21:34 AM6/16/23
to Google Ads API and AdWords API Forum
Hi,

I've been trying to use the account level negative keywords create endpoint, however when I make a request via the api, no words I add the list will appear in the UI. However when I make a list via that ui, and then add to it via the api they will appear.

Thanks, Sophie.

Google Ads API Forum Advisor

unread,
Jun 20, 2023, 1:52:16 AM6/20/23
to sophi...@redbrain.com, adwor...@googlegroups.com

Hi,

Thank you for reaching out to Google Ads API Forum.

In order for us to investigate further, can you provide us with the complete API logs (request and response with request-id and request header) generated on your end? This is so we can check on our end as well and investigate further. Additionally please also share with us the Google Ads UI screenshot (without cropping) of the data in the UI showing discrepancy on your end. 

Furthermore, kindly note that in comparing UI and API data, please make sure to consider the following items below:

  • Comparing the API and UI on the same level as much as possible
  • The segments and fields of the API and UI should be the same
  • The date range is also the same

For the client libraries, logging can be enabled by navigating to the Client libraries > Your client library (ex Java) > Logging documentation, which you can access from this link (https://developers.google.com/google-ads/api/docs/client-libs). You can provide it via the Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.

Reference links included in this email:

 
This message is in relation to case "ref:_00D1U1174p._5004Q2mUT1I:ref"

Thanks,
 
Google Logo Google Ads API Team


Jonathan Sunassee

unread,
Aug 18, 2023, 10:53:31 AM8/18/23
to Google Ads API and AdWords API Forum

Hi,


Please see response below: 




Adwords-ID = 1020400739


No negative keywords on the account:



Get Negative Keywords using Endpoint


GetAccountNegativeKeywordList proto call:


gRPC request:


{

  "network": 2,

  "account_id": 1020400739

}


gRPC response contains no account level negative keyword list.


grpc-go log:


{"action":"get","level":"info","msg":"GetAccountNegativeKeywordLists","object":"negative_keyword_list","request":{"network":2,"account_id":1020400739},"time":"2023-08-18T14:02:25+01:00"}

{"account":1020400739,"action":"get","level":"info","msg":"getKeywordCriterions","object":"keyword_criterions","time":"2023-08-18T14:02:25+01:00"}

2023/08/18 14:02:26 INFO: [transport] transport: closing: EOF

2023/08/18 14:02:26 INFO: [transport] transport: loopyWriter exiting with error: transport closed by client


Create Account Level Negative Keyword List using Endpoint


CreateAccountNegativeKeywordList proto call:


gRPC request:


{

  "network": 2,

  "list_name": "account-level negative keywords list",

  "account_id": 1020400739,

  "list_type": 2

}






gRPC response:


{

  "list_id": "10698699605"

}



grpc-go log:


{"action":"create","level":"info","msg":"CreateAccountNegativeKeywordList","object":"negative_keyword_list","request":{"network":2,"list_name":"account-level negative keywords list","account_id":1020400739,"list_type":2},"time":"2023-08-18T14:05:54+01:00"}

customer_id:"1020400739" operations:{create:{type:ACCOUNT_LEVEL_NEGATIVE_KEYWORDS name:"account-level negative keywords list" status:ENABLED}}

2023/08/18 14:05:54 INFO: [transport] transport: closing: EOF

2023/08/18 14:05:54 INFO: [transport] transport: loopyWriter exiting with error: transport closed by client


 Calling GetAccountNegativeKeywordList now contains the following in the response:


    {

      "words": [],

      "illegals": [],

      "name": "account-level negative keywords list",

      "id": "10698699605"

    }


Set keywords on specific account level keyword list


SetAccountNegativeKeywords proto call:


gRPC request:


{

  "network": 2,

  "account_id": 1020400739,

  "list_id": 10698699605,

  "add_keywords": [

    {

      "id": 1,

      "keyword": "TEST",

      "type": 1

    }

  ]

}



grpc-go log:


{"action":"set","level":"info","msg":"SetAccountNegativeKeywords","object":"negative_keywords","request":{"network":2,"account_id":1020400739,"list_id":10698699605,"add_keywords":[{"id":1,"keyword":"TEST","type":1}]},"time":"2023-08-18T14:08:25+01:00"}

2023/08/18 14:08:26 INFO: [transport] transport: closing: EOF

2023/08/18 14:08:26 INFO: [transport] transport: loopyWriter exiting with error: transport closed by client


 Calling GetAccountNegativeKeywordList now contains the following in the response:


    {

      "words": [

        {

          "id": "103710221",

          "keyword": "TEST",

          "type": "EXACT"

        }

      ],

      "illegals": [],

      "name": "account-level negative keywords list",

      "id": "10698699605"

    }


However, the GoogleAds UI does not contain this Account level negative keyword list containing ‘TEST’:



When interacting with the UI, when trying to add keywords directly, I get the following error:


Here GoogleAds UI is aware of the list as it shares the same name. To ensure it is not just a naming issue that causes the problem (I initially assumed that the name of the list when creating through API needed to mirror what the UI calls the list when creating in the UI), I will delete the account level list I created using the endpoint and create another with a different name.


This can now be seen in the grpc response below when retrieving all lists on the adwords_id:


    {

      "words": [],

      "illegals": [],

      "name": "account-level",

      "id": "10694099166"

    }


When attempting to add account level negative keywords directly in the UI, the following error appears:



Here we can see that the limit of one account level negative keyword is enforced. I can add to my account level keyword list named “account-level”, however, the keywords aren’t present in the UI.

Google Ads API Forum Advisor

unread,
Aug 18, 2023, 2:05:13 PM8/18/23
to jonathan...@redbrain.com, adwor...@googlegroups.com

Hi Jonathan,

Thank you for coming back to us and for providing additional information. I hope you are doing well today.

In relation to your concern, please note that our team can only provide support to Google Ads API related concerns and technical implementations. If you are encountering an API error, could you provide logs showing the error that you are encountering? Thai will help us to further investigate, validate and to provide accurate recommendations on this matter.

Please note that for Negative keyword limitsonly 20 shared negative keyword lists per account. If this may help, you may see below information about API limits.
 


However if you are encountering errors while using Google Ads UI, it is best for you to reach out to Google Ads product support team for further assistance and clarifications, as they are more equipped to resolve issues related to billing, payments, refund, and ads account or UI concerns. 

Have a great day.
 

jonathan sunassee

unread,
Aug 18, 2023, 3:20:53 PM8/18/23
to Google Ads API Forum Advisor, adwor...@googlegroups.com, lewis....@redbrain.com, Marios Makris
Hi, 

Please see previous message with the logging that you requested. There are no errors returned; we believe it’s a bug.

Regards


Jon 


RedBrain Logo
jonathan sunassee
Principal Software Engineer
T: +44 (0)330 127 3969
E:
jonathan...@redbrain.com
W: www.redbrain.com
Facebook
LinkedIn
Twitter
Youtube
Pintrest
We're proud to support Birmingham Children's Hospital as a pioneering ChangeMaker partner.
2023 Red Dragon Charity Boat Race Champions! 

Redbrain Ltd is a company registered in England and Wales with registered number 10434678. Registered office: Office 3, St Ann's House, Guildford Road, Lightwater, Surrey, GU18 5RA, United Kingdom.
Redbrain Ltd accepts no liability for the content of this email, or for the consequences of any actions taken on the basis of the information provided, unless that information is subsequently confirmed in writing [other than by email]. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.
On 18 Aug 2023, at 19:04, Google Ads API Forum Advisor <ads...@forumsupport.google> wrote:



Google Ads API Forum Advisor

unread,
Aug 18, 2023, 6:42:14 PM8/18/23
to jonathan...@redbrain.com, lewis....@redbrain.com, marios...@redbrain.com, adwor...@googlegroups.com

Hi Jon,

Since you mentioned that when attempting to add account level negative keywords directly in the UI you are seeing error, then kindly note that our support scope is related to the Google Ads API related concerns only. 

Also, based on your logs provided to our team, I can see that you haven’t encountered any API errors so there shouldn’t be issues with API.

For the UI related bugs, I strongly recommend you to reach out to the Google Ads Product support team, via this link as they are the appropriate team to assist you further. 

Reply all
Reply to author
Forward
0 new messages