Got it, Thank you soo much for your help 

On Monday, 3 January 2022 at 16:51:56 UTC+1 adsapi wrote:

> 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 
> <https://developers.google.com/google-ads/api/rest/reference/rest/v9/customers.googleAds/mutate?hl=en#temp-resource-names>
>  
> so that criteria for each campaign can be created with campaign creation. 
> Feel free to get back to us.
>
> Regards,
>  
> [image: Google Logo] 
> 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/c5fa40e3-8963-489c-8b95-8f2dd1e37376n%40googlegroups.com.
  • Re... simo mazraoui
    • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
      • ... simo mazraoui
        • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
          • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
            • ... simo mazraoui
              • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
                • ... simo mazraoui
    • ... Mhmoudahmdmohmmd homydt

Reply via email to