Hi,

Im using google ads api REST in an angular + node app.

I can modify final_urls from google ads but not expanded_text_ad 
properties. I tried several paths and I cant achieve it.

This is part of my code in node with the endpoint and payload object:

    const url = 'https://googleads.googleapis.com/v6/customers/' + 
dataIn.customerId + '/ads:mutate';

    let data = { 
      "operations": [
        { 
          "updateMask": "final_urls, expanded_text_ad.description",
          "update": {
            "resourceName": dataIn.advert['ad']['resourceName'],
            "final_urls": dataIn.advert['ad']['finalUrls'],
            "expanded_text_ad": {
              "description": 
dataIn.advert['ad']['expandedTextAd']['description']
            } 
          } 
        } 
      ] 
    };

This is the error:
{"code":400,"message":"Request contains an invalid 
argument.","status":"INVALID_ARGUMENT","details":[{"@type":"type.googleapis.com/google.ads.googleads.v6.errors.GoogleAdsFailure","errors":[{"errorCode":{"fieldMaskError":"FIELD_NOT_FOUND"},"message":"The
 
field mask contained an invalid field: ' 
expanded_text_ad.description'.","location":{"fieldPathElements":[{"fieldName":"operations","index":0}]}}]}]}

I read this documentation about fieldMask but i dont know what im doing 
wrong:
https://github.com/protocolbuffers/protobuf/blob/master/php/src/Google/Protobuf/FieldMask.php

Can you help me?

PD: I know that client libraries generates fieldMasks path but i cant use 
them.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/0e3c8563-cc1c-4dea-a5da-6fa076361fafn%40googlegroups.com.

Reply via email to