Error post API migration

37 views
Skip to first unread message

Mohamed Dergueche

unread,
Jun 16, 2022, 5:05:20 PM6/16/22
to Google Ads API and AdWords API Forum
Hello Team,

I have been requested to migrate to google lead python api but now it stopped worked.

I'm getting this error :

google.api_core.exceptions.PermissionDenied: 403 Google Ads API has not been used in project xxxxxxx before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/googleads.googleapis.com/overview?project=xxxx then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry. [links {
  description: "Google developers console API activation"

Do you know please how I can solve this. I'm stuck and I tried a lot of tricks. it is not working.

Google Ads API Forum Advisor

unread,
Jun 17, 2022, 2:49:39 PM6/17/22
to mohamed....@gmail.com, adwor...@googlegroups.com
Hi Mohamed,

When you visited the URL suggested, did you gain access to enable Ads API in your GCP project? If you don't have access it's possible GCP Account and Resource Recovery Request can assist you. Feel free to get back to us.

Regards,

Google Logo
Aryeh
Google Ads API Team
 


ref:_00D1U1174p._5004Q2bxC84:ref

Mohamed Dergueche

unread,
Jun 18, 2022, 8:07:17 AM6/18/22
to ads...@forumsupport.google, adwor...@googlegroups.com
Thank you for your quick response. I have managed to pass that step but for some reason now, my client id is not working anymore. FYI, this used to work perfectly before the migration. Do you know if there is any extra step here to do?

>, errors {
  error_code {
    request_error: INVALID_CUSTOMER_ID
  }
  message: "Invalid customer ID \'\'."
}

Mohamed Dergueche

unread,
Jun 18, 2022, 11:24:41 AM6/18/22
to Google Ads API and AdWords API Forum
Do we need to remove the hiphen from client_customer_id in Yaml? even by doing that, it does not solve the isse? Where I can find all these data? it is much a pain with so may new concepts. We need this api working back as we are starting several compains

Google Ads API Forum Advisor

unread,
Jun 19, 2022, 7:54:44 PM6/19/22
to mohamed....@gmail.com, adwor...@googlegroups.com
Hi Mohamed,

Thank you for providing updates to your concern. I am also a member of the Google Ads API team and let me provide support to your concern.

Could you confirm if you are setting customer ID in the request header in this format XXX-XXX-XXXX (e.g. 123-456-7890)? If yes, please try removing the hyphens (-) in the customer ID and try the API request again.

If the error persists, please provide the complete request and response logs with request ID and request header generated on your end so that we can further investigate the issue. You can provide it via Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.

Regards,
Google Logo
Ernie John
Google Ads API Team
 


ref:_00D1U1174p._5004Q2bxC84:ref
Reply all
Reply to author
Forward
0 new messages