Dear friends
I am struggling with an issue. My team ask me to create a script to run Campaigns they created in Excel file. As I understand every week o our company make discount on some group of goods accompanied with ads campaign, and whatever....
And they make me to set automatically Location Targeting Option
Required: Presence: People in or regularly in your targeted locations
I have (unfortunately): Presence or interest: People in, regularly in, or who've shown interest in your targeted locations (recommended)
I have not found any option across documentation how to do that. And it seems to me that only option is to update campaign with newCsvUpload method.
BUT IT DOES NOT APPLY CHANGES ON THAT OPTION(
Can you advise me how to find solution. May be there is a mistake that i do not see?
Code of my func below
Take care of you.
Nikolay Tverdokhlebov
```
function createCampaigns() {
// See
https://developers.google.com/adwords/scripts/docs/features/bulk-upload // for the list of supported bulk upload templates and their column names.
var columns = [
//'Action',
'Campaign',
'Budget',
/*'Budget type',*/
'Networks',
//'Languages',
'Language',
'Location',
//'Language targeting',
//'Ad rotation',
'Bid Strategy type',
'Campaign type',
'Targeting method',
'Exclusion method',
'Campaign Status'
];
/*var columns = [
'Campaign', 'Budget', 'Bid Strategy type', 'Campaign type'
];*/
var upload = AdWordsApp.bulkUploads().newCsvUpload(
columns, {moneyInMicros: false});
// AdWords identify existing campaigns using its name. To create a new
// campaign, use a campaign name that doesn't exist in your account.
upload.append({
//'Action': 'Add',
'Campaign': 'Test Campaign 901',
'Budget': 4,
'Budget type':'Daily',
'Location':'Italy',
'Networks':'Display Network',
'Language':'it;es',
'Campaign type': 'Display',
'Ad rotation':'Optimize for clicks',
'Bid Strategy type': 'Maximize conversions',
'Targeting method':'Location of presence',
'Exclusion method':'Location of presence',
'Campaign Status':'Paused'
});
// Use upload.apply() to make changes without previewing.
Logger.log(upload);
upload.apply();
}
```