Display Placement Data is Wrong

42 views
Skip to first unread message

Arben Kqiku

unread,
Jun 23, 2021, 11:18:58 AM6/23/21
to Google Ads Scripts Forum
Hi,

I am running a script, but the data I get from the script is different than the data that I get from the Google Ads console. So, I want to get placement statistics from the 2021-01-01 until the 2021-06-23, for the placement 'opex360.com':

function main() {
  
  var startDate = "20210101";
  var endDate = "20210623";
  
  var placementSelector = AdsApp.display().placements().forDateRange(startDate, endDate).withCondition("PlacementUrl CONTAINS 'opex360.com'").get();
  
  while(placementSelector.hasNext()){
    
    var currentPlacement = placementSelector.next();
 
    Logger.log(currentPlacement.getCampaign().getName());
    Logger.log(currentPlacement.getAdGroup().getName());
    Logger.log(currentPlacement.getUrl());
    Logger.log(currentPlacement.getStatsFor(startDate, endDate).getImpressions());
    Logger.log(currentPlacement.getStatsFor(startDate, endDate).getClicks());
    Logger.log(currentPlacement.getStatsFor(startDate, endDate).getCtr());
    
  }    
  
}

This is the data I get from the script:

Screenshot 2021-06-23 at 17.10.46.png



As you can see, I only get the data for one campaign and one ad group. If I apply the same filters (date range, campaign name, placement name) in the Google Ads console, this is what I get:

Screenshot 2021-06-23 at 17.10.05.png

First of all, I have 4 rows instead of only 1 that I get from the script. Also, the only row that I get from the script, the one in green, is wrong, since it says 20 impressions, and the script says 5 impressions.

Why is there data missing from the script? Why is the only data point in common wrong?

As an alternative, I could use the "Placement Performance Report", but the AdWords will be deprecated on the 27th of April 2022, so, I would prefer to avoid this alternative.

Thank you for your help!

Best regards,
Arben



Google Ads Scripts Forum Advisor

unread,
Jun 24, 2021, 2:07:18 AM6/24/21
to adwords...@googlegroups.com
Hi Arben,

Thanks for reaching out. Harry here, from the Google Ads Scripts Team.

Kindly provide your CID and name of your script so that I can take a look closer at the issue at hand. You may send them here or privately via the reply to author option. Note that you may need to join the Google Group for you to use this option.
 
If this option is not available at your end still, you may send it through our email (googleadsscr...@google.com) instead.

Thanks,
Google Logo
Harry Cliford Rivera
Google Ads Scripts Team
 


ref:_00D1U1174p._5004Q2Iy5i4:ref

Google Ads Scripts Forum Advisor

unread,
Jun 25, 2021, 5:40:22 AM6/25/21
to adwords...@googlegroups.com
Hi Arben,

Thanks for providing the requested details. Allow me to reach out to the rest of the team for further investigation regarding the issue at hand and get back to you once as soon as I have more information.

Arben Kqiku

unread,
Jun 25, 2021, 7:15:15 AM6/25/21
to Google Ads Scripts Forum on behalf of adsscripts
Great,

Thanks Harry!

Best regards,

Arben Kqiku
Digital & Data Manager
Location Route Cantonale 116b, 1025 Saint-Sulpice, Switzerland    





--
-- 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/C9Tm1mJ07Jo/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/3s0Qi000000000000000000000000000000000000000000000QV947500nKTvALFyRyyrmfEr1ShEjQ%40sfdc.net.

Arben Kqiku

unread,
Jun 29, 2021, 3:05:51 AM6/29/21
to Google Ads Scripts Forum
Hey Harry,

Any update on this?

Thanks!

Google Ads Scripts Forum Advisor

unread,
Jun 29, 2021, 5:28:32 AM6/29/21
to adwords...@googlegroups.com
Hi Arben,

There is none yet. I will follow up with the team to see if there's any progress with the issue at hand and update you accordingly.

Google Ads Scripts Forum Advisor

unread,
Dec 1, 2022, 11:06:06 PM12/1/22
to adwords...@googlegroups.com

Hi Arben,

 

This is Yasmin from the Google Ads scripts team.

 

Just circling back here, could you please confirm if you are still encountering the issue?

 

Regards,

 

 

Google Logo
Yasmin Gabrielle
Google Ads Scripts Team
 


ref:_00D1U1174p._5004Q2Iy5i4:ref
Reply all
Reply to author
Forward
0 new messages