Hello,

I have two issues:

I'm calling G-Ads API to bulk remove ads 
([code](https://github.com/google/bowling-compliance-ads-remover/blob/main/src/main.py#L440))

1) I get a partial error
2) And the code fails to parse it (taken form the official [website]( 
https://developers.google.com/google-ads/api/docs/samples/handle-partial-failure?hl=uk#python))

Thanks!


*My terminal shows:*

Partial failures occurred. Details will be shown below.

```
Traceback (most recent call last):
  File 
"D:\projects\bowling\venv\lib\site-packages\google\ads\googleads\client.py", 
line 426, in get_type
    message_class = getattr(type_classes, name)
  File 
"D:\projects\bowling\venv\lib\site-packages\google\ads\googleads\v8\__init__.py",
 
line 1753, in __getattr__
    raise AttributeError(f"unknown type {name!r}.")
AttributeError: unknown type 'google_ads_failure'.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\projects\bowling\src\main.py", line 535, in <module>
    main(args.top_id)
  File "D:\projects\bowling\src\main.py", line 141, in main
    removed_ads_count = remove_disapproved_ads_for_account(account)
  File "D:\projects\bowling\src\main.py", line 206, in 
remove_disapproved_ads_for_account
    remove_ads(ad_removal_operations, ads_to_remove_json, account_id)
  File "D:\projects\bowling\src\main.py", line 300, in remove_ads
    index_array, error_array = _print_results(response_chunk)
  File "D:\projects\bowling\src\main.py", line 439, in _print_results
    failure_message = 
gAdsServiceWrapper.client.get_type("google_ads_failure")
  File 
"D:\projects\bowling\venv\lib\site-packages\google\ads\googleads\client.py", 
line 428, in get_type
    raise ValueError(
ValueError: Specified type 'google_ads_failure' does not exist in Google 
Ads API v8
```

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/122ae664-d027-4f8e-b056-418bdad6e0d2n%40googlegroups.com.
  • Sp... 'EladB' via AdWords API and Google Ads API Forum
    • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum

Reply via email to