|
||||||
{
'campaignCriterionOperation':{
'create': {
'campaign': 'customers/${CUSTOMER_ID}/campaigns/-2',
'language': {
'languageConstant': 'languageConstants/1005'
}
}
}
}
I tried it and it worked. Feel free to get back to us.
Regards,
|
||||||
|
||||||
Hi Simo,
Thank you for your reply. Yes, you may try using googleAds:mutate method in order to send groups of operations with multiple types of resources. You can send many operations of different types to chain together a sequence of operations that should be carried out as a group. Note that the group of operations will all succeed if no operation fails or all fail if any single operation fails, and only resources that support atomic transactions are included, so this method can't replace all calls to individual services. Let us know how this goes on your end.
Regards,
|
||||||



|
||||||
--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,
|
||||||
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/tYXnk000000000000000000000000000000000000000000000QYUSML00ahi7ZxfjRTCyns0FmKDTPA%40sfdc.net.