Create a New Adgroup
POST
https://us-central1-appgregator.cloudfunctions.net/googleads/adgroups/
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
login-customer-id*
String
1894250756
client_id*
String
XXXX-XXXX.apps.googleusercontent.com
client_secret*
String
XXXX-XXXX
developer_token*
String
XXXX
x-api-key*
String
U2FsdG...
{
"status": true,
"count": 1
}
var axios = require('axios');
var data = JSON.stringify({
"adgroup_name": "adgroup 10"
});
var config = {
method: 'post',
url: 'https://us-central1-appgregator.cloudfunctions.net/googleads/adgroups?name=ft-4&connection_name=ga-06&customer_id=8171576147&campaign_id=19557665715',
headers: {
'login-customer-id': '1894250756',
'client_id': 'XXXX-XXXX.apps.googleusercontent.com',
'client_secret': 'XXXX-XXXX',
'developer_token': 'XXX',
'x-api-key': 'U2Fsd...',
'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