'Targeting method':'Location of presence' is not applied to new campaign

232 views
Skip to first unread message

Nikolay Tverdokhlebov

unread,
Mar 25, 2021, 4:22:33 PM3/25/21
to Google Ads Scripts Forum
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)

Screenshot_2021-03-26_02-16-20.png

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();
}
```

Google Ads Scripts Forum Advisor

unread,
Mar 26, 2021, 12:18:06 AM3/26/21
to adwords...@googlegroups.com
Hi Nikolay,

Thanks for reaching out. I am Harry from the Google Ads Scripts Team. Allow me to assist you on this.

Can you clarify that you would like to set Target or Exclude - Location options of your newly created/added Campaigns using the Bulk Upload through scripts? If yes, I regret to inform that these options are not supported still as of today. Please see Campaigns Bulk upload - supported entities for your reference.

In addition, a request has been filed in the past in this regard, but there hasn't been any updates since so allow me to make a follow up on your behalf upon your confirmation. 

Let me know if you questions or other concerns.


Thanks,
Google Logo
Harry Cliford Rivera
Google Ads Scripts Team
 


ref:_00D1U1174p._5004Q2EnIaC:ref

Nikolay Tverdokhlebov

unread,
Mar 26, 2021, 2:41:04 AM3/26/21
to Google Ads Scripts Forum
Dear Harry

First of all, thank you for your reply. I appreciate your time and attention.
I want to set up "Target" option.

You shared the valuable link with me. I searched for this information for a long time.

Please tell me, if there any method in GAS, which I can use to set up option I need

For example I can add location like this:

var campaign = campaignIterator.next();
    campaign.addLocation(2384, 1)
    campaign.excludeLocation(2388, 1)

And it would be Greate to have a method:

campaign.setTargetMethod("Location of presence");

Is there such a method?


пятница, 26 марта 2021 г. в 10:18:06 UTC+6, adsscriptsforumadvisor:

Google Ads Scripts Forum Advisor

unread,
Mar 26, 2021, 4:36:30 AM3/26/21
to adwords...@googlegroups.com
Hi Nikolay,

Unfortunately, there is no such method of setTargetMethod is supported for Campaigns in the Google Ads Scripts until this date. You can only add and exclude targeted locations for Campaigns. Just to reiterate, a request for setting Campaigns' Location options has already been raised in the past, but there hasn't been any updates in this regard. Kindly provide a sample use case to this feature so I could follow up this feature request to the rest of the team.

Nikolay Tverdokhlebov

unread,
Mar 26, 2021, 7:50:40 AM3/26/21
to Google Ads Scripts Forum
Do not worry
I will use your answer to explain to my boss that it is impossible.

Appreciate your attention to my problem.
Thank you

Have a nice day

пятница, 26 марта 2021 г. в 14:36:30 UTC+6, adsscriptsforumadvisor:

DB

unread,
Apr 5, 2021, 2:47:04 PM4/5/21
to Google Ads Scripts Forum
Hi Harry

Adding my request for supporting this feature as well.

Thanks

Google Ads Scripts Forum Advisor

unread,
Apr 6, 2021, 1:05:42 AM4/6/21
to adwords...@googlegroups.com
Hello, 

Sure, I'll follow up on the request for support of Location options in Campaign settings. Kindly follow our blog for updates and new releases in the meantime.

reid hommedahl

unread,
Sep 21, 2022, 8:34:42 PM9/21/22
to Google Ads Scripts Forum
Any update on supporting this feature?

Google Ads Scripts Forum

unread,
Oct 6, 2022, 5:36:19 AM10/6/22
to Google Ads Scripts Forum
Hi Reid,

Are you looking for ExcludedLocation or TargetedLocation, as these are the only features supported in the Google Ads scripts currently.

Regards,
Yasmin
Google Ads Scripts Team
Reply all
Reply to author
Forward
0 new messages