Is it possible to update location bid adjustments from a CSV import in a script.

127 views
Skip to first unread message

Jamie T

unread,
Feb 5, 2019, 9:41:19 AM2/5/19
to Google Ads Scripts Forum
I've written a script that pulls down the current location bid adjustments across all campaigns and then based on certain criteria will either reduce or increase the existing bid adjustments.

The changes are uploaded using the below:

var columns = ['Campaign','Location ID','Bid Modifier'];
  
  var upload = AdsApp.bulkUploads().newCsvUpload(columns)
  var uploadValues = sheet.getDataRange().getValues();
  
    
  for (i = 1; i < uploadValues.length; i++) {
    var campaign = uploadValues[i][0];
    var locationId = uploadValues[i][1];
    var newLocationAdjustment = uploadValues[i][6];    
    
    
    upload.append({ 
      'Campaign' : campaign,
      'Location ID' : locationId,
      'Bid Modifier' : newLocationAdjustment
    });    
    
    
  }
    
  
  upload.apply();  
  
  
}

However when the "CSV" is imported the change result column states "no changes" for all adjustments even though the new modifier that's being imported is different to the existing bid adjustment. Can anyone spot what might be going wrong?

Thanks!

googleadsscrip...@google.com

unread,
Feb 5, 2019, 3:59:41 PM2/5/19
to Jamie T via Google Ads Scripts Forum, Google Ads Scripts Forum
Hi Jamie,

Are you looking in the Scripts changes history? For bulk upload changes, please check Tools > Bulk Actions > Uploads.

If you have any more questions about your script, please let us know.

Regards,
Matt
Google Ads Scripts Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_scripts
    https://developers.google.com/google-ads/scripts/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--
-- You received this message because you are subscribed to the Google Groups AdWords Scripts Forum group. Please do not reply to this email. To post to this group or unsubscribe please visit https://developers.google.com/adwords/scripts/community.
---
You received this message because you are subscribed to the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-scripts+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/d25a4419-8bd6-43d5-852d-913a876eedbc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jamie Tomkins

unread,
Feb 6, 2019, 3:58:16 AM2/6/19
to Google Ads Scripts Forum on behalf of googleadsscripts-forumadvisor

Hi Matt,

 

Yeah I’ve taken a look in the bulk actions > uploads. There are preview files there that were uploaded by the script but the results are “No Changes”.

 

When I download the file with the results in there are rows for each campaign, location ID and new bid modifier but the result given is “# No changes” – I’ve copied in a screenshot of the spreadsheet below:

 

 

I don’t know if the CSV is formatted wrong with headers etc or the number formatting of the adjustment?

 

Any tips would be helpful!

 

Thanks,

 

Jamie

 



Jamie Tomkins
Performance Media Manager
Marketing - PPC
01244 421800- Ext.12129


Sykes Cottages Ltd, One City Place, Queens Road, Chester, Cheshire, CH1 3BQ, United Kingdom
Registration No: 4469189, VAT Registration No: 204 9794 88

To unsubscribe from this group and stop receiving emails from it, send an email to adwords-scrip...@googlegroups.com.

--

-- You received this message because you are subscribed to the Google Groups AdWords Scripts Forum group. Please do not reply to this email. To post to this group or unsubscribe please visit https://developers.google.com/adwords/scripts/community.
---

You received this message because you are subscribed to a topic in the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-scripts/rKoYPtjrqbM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-scrip...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/ug1g8nppco000000o3no8g00050316y6cmj4cpp6ko30c1g68qj2chj%40mail.gmail.com.

googleadsscrip...@google.com

unread,
Feb 6, 2019, 3:28:08 PM2/6/19
to Google Ads Scripts Forum on behalf of Jamie T
Hi Jamie,

It appears that 'location ID' is not a supported bulk upload entity. Please see this page for a list of supported bulk upload entities.

Regards,
Matt 
Google Ads Scripts Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_scripts
    https://developers.google.com/google-ads/scripts/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

On 02/06/19 03:57:58 adwords...@googlegroups.com wrote:

Hi Matt,

 

Yeah I’ve taken a look in the bulk actions > uploads. There are preview files there that were uploaded by the script but the results are “No Changes”.

 

When I download the file with the results in there are rows for each campaign, location ID and new bid modifier but the result given is “# No changes” – I’ve copied in a screenshot of the spreadsheet below:

 

 

I don’t know if the CSV is formatted wrong with headers etc or the number formatting of the adjustment?

 

Any tips would be helpful!

 

Thanks,

 

Jamie

 



Jamie Tomkins
Performance Media Manager
Marketing - PPC
01244 421800- Ext.12129


Sykes Cottages Ltd, One City Place, Queens Road, Chester, Cheshire, CH1 3BQ, United Kingdom
Registration No: 4469189, VAT Registration No: 204 9794 88

To unsubscribe from this group and stop receiving emails from it, send an email to adwords-scripts+unsubscribe@googlegroups.com.

--
-- You received this message because you are subscribed to the Google Groups AdWords Scripts Forum group. Please do not reply to this email. To post to this group or unsubscribe please visit https://developers.google.com/adwords/scripts/community.
---
You received this message because you are subscribed to a topic in the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-scripts/rKoYPtjrqbM/unsubscribe.

To unsubscribe from this group and all its topics, send an email to adwords-scripts+unsubscribe@googlegroups.com.

--
-- You received this message because you are subscribed to the Google Groups AdWords Scripts Forum group. Please do not reply to this email. To post to this group or unsubscribe please visit https://developers.google.com/adwords/scripts/community.
---
You received this message because you are subscribed to the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-scripts+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/7ef48b43b25641a7a461287d56bc8cd4%40sykescottages.co.uk.
Reply all
Reply to author
Forward
0 new messages