Hi Simo,
Each mutateOperation has its own enclosure and is added inside the brackets,
you can put in multiple campaign criterion without issue. I tested the below
sample and it works:
--data '{
"mutateOperations": [
{
"campaignBudgetOperation": {
"create": {
"resourceName": "customers/{CID}/campaignBudgets/-1",
"name": "My Campaign Budget",
"deliveryMethod": "STANDARD",
"amountMicros": 5000000,
"explicitlyShared": false
}
}
},
{
"campaignOperation": {
"create": {
"resourceName": "customers/{CID}/campaigns/-2",
"status": "ENABLED",
"advertisingChannelType": "SEARCH",
"geoTargetTypeSetting":{
"positiveGeoTargetType": "PRESENCE_OR_INTEREST"
},
"networkSettings": {
"targetGoogleSearch": true,
"targetSearchNetwork": true,
"targetContentNetwork": true,
"targetPartnerSearchNetwork": false
},
"name": "My campaign",
"campaignBudget": "customers/{CID}/campaignBudgets/-1",
"manualCpc": {
"enhancedCpcEnabled": true
},
"startDate": "2022-11-25",
"endDate": "2022-11-30"
}
}
},
{
"campaignCriterionOperation": {
"create": {
"campaign":"customers/{CID}/campaigns/-2",
"location":{
"geoTargetConstant": "geoTargetConstants/9050637"
}
}
}
},
{
"campaignCriterionOperation": {
"create": {
"campaign":"customers/{CID}/campaigns/-2",
"location":{
"geoTargetConstant": "geoTargetConstants/9050703"
}
}
}
}
],
"responseContentType": "MUTABLE_RESOURCE"
}
'
You can also create many campaigns without issue in the same request, just
using a different negative number as temporary resourceName so that criteria
for each campaign can be created with campaign creation. Feel free to get back
to us.
Regards,
Aryeh Baker
Google Ads API Team
ref:_00D1U1174p._5004Q2MlBpO: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
"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/R34Ji000000000000000000000000000000000000000000000R555E1009VuHd0BoTrCPHNAQjLdSIg%40sfdc.net.