Use google ads api to obtain the created campaigns, there is an error. The status code is 12.

637 views
Skip to first unread message

Z2 Studio

unread,
Aug 8, 2020, 4:54:03 AM8/8/20
to AdWords API and Google Ads API Forum
Hello, I am using google ads api to get the created campaigns but there is an error, see the description for details, please help me to solve it.

[2020-08-08 16:49:37] google-ads.WARNING: Request made: Host: "googleads.googleapis.com", Method: "/google.ads.googleads.v0.services.GoogleAdsService/Search", ClientCustomerId: 451, RequestId: "", IsFault: 1, FaultMessage: "None"
[2020-08-08 16:49:37] google-ads.NOTICE: Request
-------
Method Name: /google.ads.googleads.v0.services.GoogleAdsService/Search
Headers: {
    "developer-token": "REDACTED",
    "x-goog-api-client": "gl-php\/5.6.40 gapic\/ gax\/0.35.0 grpc\/1.31.0"
}
Request: {"customerId":"451-694-3211","query":"SELECT campaign.id, campaign.name FROM campaign ORDER BY campaign.id","pageSize":1000}

Response
-------
Headers: {
    "date": "Sat, 08 Aug 2020 08:49:37 GMT",
    "alt-svc": "h3-29=\":443\"; ma=2592000,h3-27=\":443\"; ma=2592000,h3-T050=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\";ma=2592000; v=\"46,43\""
}

Fault
-------
Status code: 12
Details: Operation is not implemented, or supported, or enabled.
Failure: {}
ApiException was thrown with message '{
    "message": "Operation is not implemented, or supported, or enabled.",
    "code": 12,
    "status": "UNIMPLEMENTED",
    "details": []
}'.

Google Ads API Forum Advisor Prod

unread,
Aug 10, 2020, 11:22:31 AM8/10/20
to stu...@zingfront.com, adwor...@googlegroups.com
Hello,

Please remove any of the - in your customerId. You can find an example on how to create campaigns here. I've noticed that you are using v0 of the API. You will need to use one that is not deprecated. I'd recommend using v4 since it is our latest release.

Regards,
Anthony
Google Ads API Team  

ref:_00D1U1174p._5004Q23IfGM:ref

Z2 Studio

unread,
Aug 10, 2020, 10:05:14 PM8/10/20
to AdWords API and Google Ads API Forum

Hello, thank you very much. I will modify it in your way first. 

At present, the PHP version of our project is 5.6, so I chose the V0 version. 

The v4 version requires PHP 7.0 or higher. I will try it first, and if it doesn’t work, I’ll consider upgrading the php version. 

Thanks again for your reply.

Sam K.J

unread,
Feb 2, 2022, 6:29:30 AM2/2/22
to Google Ads API and AdWords API Forum
Was this fixed? I am trying to obtain data from click_view report and getting almost same error:

Headers: {
    "date": "Wed, 02 Feb 2022 11:20:27 GMT",
    "alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\""

}

Fault
-------
Status code: 12
Details: GRPC target method can't be resolved.
Failure: {}

I am also using the v0 of API, since my application is running in php5.6. As mentioned in your reply, I have removed the - in customerId and still no luck.

Google Ads API Forum Advisor

unread,
Feb 2, 2022, 3:14:33 PM2/2/22
to adwor...@googlegroups.com
Hi,

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

With regards to your concern, I would recommend you please use our latest version v9. If you are still facing any issue, could you please provide us with the complete logs (request and response with request-id) via the Reply privately to the author option?

Thanks,
Google Logo
Nirmita Patel
Google Ads API Team
 


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