Hi,

Im new using google ads api with REST and im triying to mutate added 
keywords from ads console.

I can modify status because its in the same object of adGroupCriterion but 
keyword data its on an object keyword, keyword['text'] and 
keyword['matchType'].

How can i modify them?

This is my code

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

    let data = { 
      "operations": [
        { 
          "updateMask": "status",
          "update": {
            "resourceName": dataIn.adGroupCriterion['resourceName'],
            "status": dataIn.adGroupCriterion['status']
          } 
        } 
      ] 
    };

DOESNT WORK

    let data = {
      "operations": [
        {
          "updateMask": "*text*, *matchType*,status",
          "update": {
            "resourceName": dataIn.adGroupCriterion['resourceName'],
            *"text": dataIn.adGroupCriterion['keyword']['text'],*
*            "matchType": dataIn.adGroupCriterion['keyword']['matchType'],*
            "status": dataIn.adGroupCriterion['status']
          }
        }
      ]
    };

Thanks

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/b561152b-d0a7-456e-bdc1-a4f66b4fd2efn%40googlegroups.com.

Reply via email to