Is getConvertedClicks Being Removed?

151 views
Skip to first unread message

he...@mochamedia.co.uk

unread,
Jul 28, 2016, 4:45:01 AM7/28/16
to AdWords Scripts Forum
I use getConvertedClicks in my adwords scripts but since Google is removing Converted Clicks from the interface, does this mean this function will no longer work?

Previously I used getConversions() but this was replaced by getConvertedClicks.

Any help much appreciated. 

Jaren Callo (AdWords Scripts Team)

unread,
Jul 28, 2016, 4:55:16 AM7/28/16
to AdWords Scripts Forum
Hi,

There is no advisory about deprecation of getConvertedClicks so this is still functional. I will let you know once the news is out. But for now, your scripts will working as expected.

Thanks,
Jaren P. Callo
AdWords Scripts Team

Paweł Kumor

unread,
Aug 11, 2016, 4:21:58 PM8/11/16
to AdWords Scripts Forum
Hi,
Could you explain why there is inconsistency between reports and stats ?
I have also using getConvertedClicks() in my reports (because getConversions() is deprecated).
I wrote some test script and result is:
From report:
ConvertedClicks: 75
Conversions    : 127.0
From stats:
stats.getConvertedClicks(): 75.0
stats.getConversions(): 75.0

So it seems that now getConversions() is returning Converted Clicks and now I am wondering what will be returned by getConvertedClicks() after that change...

I have also read in https://support.google.com/adwords/answer/6372468?hl=en : "For now, you’ll still be able to see the “Converted clicks,” “Click conversion rate,” and “Value/converted click” columns in your reports. However, these reporting columns will be removed at a later date." What to do with my reports, should I rewrite my scripts and use reports instead of stats?
Or maybe you are going to undepreciate getConversions() ?

Anash Oommen

unread,
Aug 11, 2016, 4:28:17 PM8/11/16
to AdWords Scripts Forum
Hi Pawel,


Sometime in future, we'll sunset getConvertedClicks(), and update getConversions() to return Conversions (again!). For now, both these methods return ConvertedClicks.

Cheers,
Anash P. Oommen,
AdWords Scripts Team.

Rafael Vieira

unread,
Aug 23, 2016, 4:13:06 AM8/23/16
to AdWords Scripts Forum
Hi Anash, do you have an estimated date for getConversions() to return conversions again? For my particular script, returning ConvertedClicks isn't ideal, so I am anxious to see that changed! I read somewhere it would be in September, would you have a more accurate date?

Thank you,
Rafael

Tyler Sidell (AdWords Scripts Team)

unread,
Aug 23, 2016, 12:47:58 PM8/23/16
to AdWords Scripts Forum
Hi Rafael,

We understand that you are anxious but currently there is no ETA that can provide for getConversions() to return.  We will update our blog when this becomes available.

Thanks,
Tyler Sidell
AdWords Scripts Team

Tyler Sidell (AdWords Scripts Team)

unread,
Aug 23, 2016, 3:39:48 PM8/23/16
to AdWords Scripts Forum
Hi Rafael,

You could pull the conversions field from reports.  Below is an example snippet:
function main() {
 
var ss = 'SPREADSHEET_URL';
 
var sheet = SpreadsheetApp.openByUrl(ss);
 
var active = sheet.getActiveSheet();
 
var report = AdWordsApp.report('SELECT AllConversions, AllConversionValue, Conversions FROM AD_PERFORMANCE_REPORT DURING LAST_WEEK');
  report
.exportToSheet(active);
}

Thanks,
Tyler Sidell
AdWords Scripts Team

Rafael Vieira

unread,
Aug 25, 2016, 10:40:00 AM8/25/16
to AdWords Scripts Forum
Hello Tyler, thanks for your help. Unfortunately that did not work for me. I am using getConversions() to further calculate cost/conversion on my script. I am not using the parameter to plot the number of conversions on a google sheet. I am a beginner with scripts, so I am not sure if I am doing something wrong.

The script in question is quite long (381 lines) and the lines that are supposed to get the number of conversions are as follows:

        var cost = stats.getCost();
        var conversions = stats.getConversions();
        var CostPerConversion = (conversions == 0) ? 0 : cost/conversions;

I have tried replacing stats.getConversions(); with what you suggested but there was no conversion information returned.
What am I doing wrong?
Thanks again
Rafael

Tyler Sidell (AdWords Scripts Team)

unread,
Aug 25, 2016, 1:08:57 PM8/25/16
to AdWords Scripts Forum
Hi Rafael,

What I suggested would only work from a reporting perspective.  If you are using stats directly in your script, you cannot use getConversions().  We'll let you know if this function becomes available but please use getConvertedClicks() in the meantime.

Thanks,
Tyler Sidell
AdWords Scripts Team

Tyler Sidell (AdWords Scripts Team)

unread,
Aug 25, 2016, 2:31:44 PM8/25/16
to AdWords Scripts Forum
Hi Rafael,

Below is an example of an equivalent of getConversions().  Feel free to use it.

var campName = 'Campaign #9';

function main() {
  getConversions
(campName);
}

function getConversions(campName) {
 
var campaigns = AdWordsApp.campaigns().withCondition("Name CONTAINS_IGNORE_CASE '"+campName+"'").get();
 
while (campaigns.hasNext()) {
   
Logger.log('test');
   
var conversions = campaigns.next();
   
var conversionData = conversions.getStatsFor('THIS_WEEK_SUN_TODAY').getConvertedClicks();
   
Logger.log(conversionData);
 
}
}

Thanks,
Tyler Sidell
AdWords Scripts Team

Rafael Vieira

unread,
Aug 26, 2016, 12:06:57 PM8/26/16
to AdWords Scripts Forum
Thank you Tyler. I will try that.

Pranav Revankar

unread,
Sep 28, 2016, 2:59:16 AM9/28/16
to AdWords Scripts Forum
Hi Tyler,
So will this return the exact Conversions number (instead of Converted clicks)?

Tyler Sidell (AdWords Scripts Team)

unread,
Sep 28, 2016, 10:20:23 AM9/28/16
to AdWords Scripts Forum
Hi Pranav,

This would return the Converted Clicks.  Please in the future can you open a separate thread for better tracking purposes?

Thanks,
Tyler Sidell
AdWords Scripts Team

Pranav Revankar

unread,
Mar 28, 2017, 5:22:22 AM3/28/17
to AdWords Scripts Forum
getConvertedClicks() is finally removed from AdWords Scripts now.! 
Reply all
Reply to author
Forward
0 new messages