Hi,

Could you provide the complete SOAP request and response logs together with
your customer ID and error message via *Reply privately to author* so I can
further investigate?

Regards,
Ejay
Google Ads API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

On 04/14/19 20:47:39 [email protected] wrote:

I am uploading a bunch of Keywords and it turns out that one of them gets
flagged for medical policy violation. When then examining the error the
location would be 0, i.e.

def get_error_indices(ex):
    duplicates = []
    policy_errors = []
    for error in ex.failure.errors:
        if error.location and 'DUPLICATE' in str(error.error_code):
            for field_path_element in error.location.field_path_elements:
                if field_path_element.field_name == 'operations':
                    duplicates.append(field_path_element.index.value)
        elif error.location and 'POLICY_ERROR' in str(error.error_code):
            for field_path_element in error.location.field_path_elements:
                if field_path_element.field_name == 'operations':
                    policy_errors.append(field_path_element.index.value)
    return duplicates, policy_errors


I am handling those errors differently in terms of retries and such. the
part for duplicates works fine, the part for policy violations not so much.

Cheers


--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/4f7d12dd-cd8e-46c6-a761-f8e7c709650f%40googlegroups.com
<https://groups.google.com/d/msgid/adwords-api/4f7d12dd-cd8e-46c6-a761-f8e7c709650f%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/180k71g000000000889ae4002q48quw6omj8c9g68o30c1g68r30c9j%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
  • Policy ... F B
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum

Reply via email to