Hi Jip,

You can have multiple operations in a single request by having multiple valid 
operation JSON objects in the "operations" field like this:

curl --request POST 
"https://googleads.googleapis.com/v${API_VERSION}/customers/${CUSTOMER_ID}/campaignCriteria:mutate";
 \
--header "Content-Type: application/json" \
--header "developer-token: ${DEVELOPER_TOKEN}" \
--header "login-customer-id: ${MANAGER_CUSTOMER_ID}" \
--header "Authorization: Bearer ${OAUTH2_ACCESS_TOKEN}" \
--data "{
'operations': [
  {
    'create': {
      'resourceName': 
'customers/${CUSTOMER_ID}/campaignCriteria/${CAMPAIGN_ID}~2084',
      'location': { 'geoTargetConstant': 'geoTargetConstants/2084' },
    },
  },
  {
    'create': {
      'resourceName': 
'customers/${CUSTOMER_ID}/campaignCriteria/${CAMPAIGN_ID}~1000',
      'language': { 'languageConstant': 'languageConstants/1000' },
    },
  }

],
}"


Regards,

Daniel
Google Ads API Team
ref:_00D1U1174p._5004Q2fpC2r: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 [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 
"Google Ads API and AdWords 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/B3mf3000000000000000000000000000000000000000000000RKOT9Y00QmC7PlFqSOekgHgRqyY_yg%40sfdc.net.
  • ho... Jip Veerbeek
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... Jip Veerbeek
        • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
          • ... Jip Veerbeek
            • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
              • ... Jip Veerbeek
                • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
                • ... Jip Veerbeek
                • ... Jip Veerbeek
                • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to