$command = qq(curl -X POST \\
https://googleads.googleapis.com/v5/customers/$customer/campaigns:mutate \\
-H 'Authorization: Bearer $access_token' \\
-H 'Content-Type: application/json' \\
-H 'developer-token: $DEVELOPER_TOKEN' \\
-H 'login-customer-id: $MANAGER_CUSTOMER_ID' \\
-d '{
"operations":
[
{
"updateMask": "name,status,campaignBudget,networkSettings(),servingStatus,biddingStrategyType,geoTargetTypeSetting()",
"update":
{
"resourceName": "customers/$customer/campaigns/$test4",
"id": "$test4",
"name": "test4",
"status": "PAUSED",
"campaignBudget": "customers/$customer/campaignBudgets/1216493989",
"networkSettings":
{
"targetGoogleSearch": true,
"targetSearchNetwork": true,
"targetContentNetwork": false,
"targetPartnerSearchNetwork": false
},
"servingStatus": "SERVING",
"biddingStrategyType": "TARGET_SPEND",
"geoTargetTypeSetting":
{
"positiveGeoTargetType": "PRESENCE"
}
}
}
]
}');
@result = qx{$command};
print "@result\n";