I am using google ads and I checked how the api is behaving with wrong 
data: there can be sync issues and its super important to ensure it is safe 
enough.

I was disappointed to see that even if I am using validate_only set to 
true, the api is sending an exception whenever I send a wrong resource path.

I would have expected validation errors for the wrong operation.

Here are the logs:
W, [2019-04-23T22:48:48.724065 #608]  WARN -- : CID: 1342647521, Host: 
googleads.googleapis.com:443, Method: 
/google.ads.googleads.v1.services.ExtensionFeedItemService/MutateExtensionFeedItems,
 
IsFault: yes
I, [2019-04-23T22:48:48.725862 #608]  INFO -- : Outgoing request: Headers: 
{"x-goog-api-client":"gl-ruby/2.5.1 gapic/1.1.1 gax/1.5.0 
grpc/1.19.0","developer-token":"SANITIZED","login-customer-id":"SANITIZED"} 
Payload: 
{"customerId":"SANITIZED","operations":[{"update":{"resourceName":"customers/1342647521/extensionFeedItems/117","sitelinkFeedItem":{"linkText":"Link
 
text 2","line1":"updated 
2","line2":"desc_line2-2","finalUrls":["http://www.effilab.com/link/path/2"]}},"updateMask":"sitelinkFeedItem.linkText,sitelinkFeedItem.line1,sitelinkFeedItem.line2,sitelinkFeedItem.finalUrls"},{"create":{"sitelinkFeedItem":{"linkText":"Link
 
text 
4","line1":"desc_line1-4","line2":"desc_line2-4","finalUrls":["http://www.effilab.com/link/path/4"]}}}],"validateOnly":true}
I, [2019-04-23T22:48:48.727453 #608]  INFO -- : Incoming response (errors): 
Error 1: 
{"errorCode":{"mutateError":"RESOURCE_NOT_FOUND"},"message":"Resource was 
not 
found.","trigger":{"stringValue":""},"location":{"fieldPathElements":[{"fieldName":"operations","index":},{"fieldName":"update"},{"fieldName":"resource_name"}]}}

What do you think?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ee3b7883-4f02-4f9b-8415-8856216d085b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • wrong e... benjamin
    • Re... benjamin
      • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
        • ... benjamin
          • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
            • ... benjamin
              • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
                • ... benjamin
                • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum

Reply via email to