Update Campaign
PUT
https://us-central1-appgregator.cloudfunctions.net/googleads/campaigns/
Query Parameters
Name
Type
Description
name*
String
ft-4
connection_name*
String
ga-06
customer_id*
String
8171576147
campaign_id*
String
19557665715
Headers
Name
Type
Description
client_id*
String
XXXX-XXXX.apps.googleusercontent.com
client_secret*
String
XXXX-XXXX
login-customer-id*
String
1894250756
developer_token*
String
XXXX
x-api-key*
String
U2Fsd...
{
"resource_name": "customers/8171576147/campaigns/19557665715"
}
var axios = require('axios');
var data = JSON.stringify({
"campaign_name": "Website traffic-Display-27-1",
"status": 2
});
var config = {
method: 'put',
url: 'https://us-central1-appgregator.cloudfunctions.net/googleads/campaigns?name=ft-4&connection_name=ga-06&customer_id=8171576147&campaign_id=19608702146',
headers: {
'login-customer-id': '1894250756',
'client_id': 'XXX',
'client_secret': 'XXX',
'developer_token': 'XXX',
'x-api-key': 'XXX',
'Content-Type': 'application/json'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
Last updated