Hello,

I am struggling with an API response that I do not understand. Most of the 
time, my requests go through, but occasionally, my requests to the Google 
ADS API are blocked with just a Status code 14 and a 403 forbidden code. 
The reasons for the blockage are never indicated, so I don't see what I can 
fix.

I recently migrated to v13, and I had never had this issue with v10 before. 
The blockage can last for about twenty minutes, or a few hours, and then 
everything returns to normal.

How can I obtain information about the reason for the 403 forbidden error? 
(I am using the API via gRPC and 
https://github.com/googleads/google-ads-php).

Thank you very much for your help.

And here are some examples of error messages received:

[2023-04-12T07:06:49.808262+00:00] google-ads.WARNING: Request made: Host: 
"googleads.googleapis.com", Method: 
"/google.ads.googleads.v13.services.KeywordPlanIdeaService/GenerateKeywordIdeas",
 
CustomerId: 5918386111, RequestId: "", IsFault: 1, FaultMessage: "None"  
[2023-04-12T07:06:49.808346+00:00] google-ads.NOTICE: Request
-------
Method Name: 
/google.ads.googleads.v13.services.KeywordPlanIdeaService/GenerateKeywordIdeas
Host: googleads.googleapis.com
Headers: {
    "x-goog-api-client": "gl-php\/7.4.25 gccl\/18.0.0 gapic\/18.0.0 
gax\/1.12.1 grpc\/1.46.0RC2 rest\/1.12.1",
    "x-goog-request-params": "customer_id=5918386111",
    "developer-token": "REDACTED"
}
Request: 
{"customerId":"5918386111","language":"languageConstants/1002","geoTargetConstants":["geoTargetConstants/2250"],"keywordPlanNetwork":"GOOGLE_SEARCH","keywordSeed":{"keywords":["massage
 
3D"]}}

Response
-------
Headers: []

Fault
-------
Status code: 14
Details: 403:Forbidden
Failure: {}  
[2023-04-12T07:06:49.914217+00:00] google-ads.WARNING: Request made: Host: 
"googleads.googleapis.com", Method: 
"/google.ads.googleads.v13.services.KeywordPlanIdeaService/GenerateKeywordIdeas",
 
CustomerId: 5918386111, RequestId: "", IsFault: 1, FaultMessage: "None"  
[2023-04-12T07:06:49.914302+00:00] google-ads.NOTICE: Request
-------
Method Name: 
/google.ads.googleads.v13.services.KeywordPlanIdeaService/GenerateKeywordIdeas
Host: googleads.googleapis.com
Headers: {
    "x-goog-api-client": "gl-php\/7.4.25 gccl\/18.0.0 gapic\/18.0.0 
gax\/1.12.1 grpc\/1.46.0RC2 rest\/1.12.1",
    "x-goog-request-params": "customer_id=5918386111",
    "developer-token": "REDACTED"
}
Request: 
{"customerId":"5918386111","language":"languageConstants/1002","geoTargetConstants":["geoTargetConstants/2250"],"keywordPlanNetwork":"GOOGLE_SEARCH","keywordSeed":{"keywords":["massage
 
3D"]}}

Response
-------
Headers: []

Fault
-------
Status code: 14
Details: 403:Forbidden
Failure: {}  

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/800c6505-ea5b-44cd-9ec8-4e67646d8c8an%40googlegroups.com.
  • Ad... Willy Bahuaud
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... Willy Bahuaud
        • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
          • ... Willy Bahuaud
            • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
              • ... Jefferson Cechinel

Reply via email to