Requesting Identity Verification Info

62 views
Skip to first unread message

Seán Hayes

unread,
Apr 22, 2024, 12:08:22 PM4/22/24
to Google Ads API and AdWords API Forum
I want to test getting info from an account, namely if the account still requires advertiser verification to be completed.

The docs do not have a python example in them (yet) but the functionality appears to exist in the python-repo for Google Ads API.

I have this basic code written for verifying but it returns an "Internal Error" from Google when I query it. Is it currently possible to get this info?

account_id = "XXXXXX"

verification_service = google_ads_client.get_service("IdentityVerificationService")

ver_request = google_ads_client.get_type("GetIdentityVerificationRequest")
ver_request.customer_id = account_id

response = verification_service.get_identity_verification(ver_request)

print(response)




Google Ads API Forum Advisor

unread,
Apr 23, 2024, 1:42:35 AM4/23/24
to se...@bpmms.com, adwor...@googlegroups.com
Hi,

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

Kindly note that the GetIdentityVerification() method can be used for retrieving verification information which returns several objects of IdentityVerification. I would recommend you to check this documentation Retrieve verification status for more information. Also, I would recommend you to check Release Notes regarding manage advertiser verification for more information.

Regarding the Internal Error. This error occurs when something unexpected happens while processing the request. You can refer to this help center article on how to handle the InternalError. When you retry requests, use an exponential backoff policy. For example, if you first pause 5 seconds before the first retry, you could pause 10 seconds after the second and 20 seconds after the third retry. Exponential backoff helps ensure you are not calling the API too many times.

I could see you have provided partial logs which is not sufficient to proceed further. In order to investigate your issue further, kindly provide us with the complete API logs (request and response logs with request-id and request header) generated at your end. 

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the Python guide to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.

You can send the details via Reply privately to the author option, or direct private reply to this email.

 
This message is in relation to case "ref:!00D1U01174p.!5004Q02tPH7Q:ref" (ADR-00232137)

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages