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:
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:
![]() |
Google Ads API Team |
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.
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 limits, only 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.
|
On 18 Aug 2023, at 19:04, Google Ads API Forum Advisor <ads...@forumsupport.google> wrote:
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.