Hi,

Thanks for your response, but i think that i cant do so much with this info:

"GoogleAdsGoogleadsV6Services__AdOperation": { "id": 
"GoogleAdsGoogleadsV6Services__AdOperation", "properties": { "update": { 
"$ref": "GoogleAdsGoogleadsV6Resources__Ad", "description": "Update 
operation: The ad is expected to have a valid resource name in this format: 
`customers/{customer_id}/ads/{ad_id}`" }, "updateMask": { "format": 
"google-fieldmask", "description": "FieldMask that determines which 
resource fields are modified in an update.", "type": "string" } }, "type": 
"object", "description": "A single update operation on an ad." },

I read this google groups 
thread https://www.mail-archive.com/adwords-api@googlegroups.com/msg83318.html 
where in fieldMask uses () to name all fields of a compound object. If I do 
this i dont receive an error response but the fields doesnt update:

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

    let data = {
      "operations": [
        {
          "updateMask": "finalUrls, expandedTextAd()",
          "update": {
            "resourceName": dataIn.advert['ad']['resourceName'],
            "finalUrls": dataIn.advert['ad']['finalUrls'],
            "expandedTextAd": {
              "description": 
dataIn.advert['ad']['expandedTextAd']['description'],
              "description2": 
dataIn.advert['ad']['expandedTextAd']['description2'],
              "headlinePart1": 
dataIn.advert['ad']['expandedTextAd']['headlinePart1'],
              "headlinePart2": 
dataIn.advert['ad']['expandedTextAd']['headlinePart2'],
              "headlinePart3": 
dataIn.advert['ad']['expandedTextAd']['headlinePart3']
            }
          }
        }
      ]
    };

Do you have any idea?

Thanks




El miércoles, 6 de enero de 2021 a las 6:58:49 UTC+1, adsapiforumadvisor 
escribió:

> Hi Antonio,
>
> Thank you for sending these details.
>
> You can try and review this documentation 
> <https://googleads.googleapis.com/$discovery/rest?version=v6> for more 
> information on how you can implement REST and include the necessary 
> fields/details for your request.
>
> Let me know if this helps.
>
> Best regards,
>
> [image: Google Logo] 
> Peter Laurence Napa Oliquino 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2AH7Zp:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/484f179f-0896-4ecf-a53a-f669cd229baen%40googlegroups.com.

Reply via email to