Get Performance Max Placement Report and add placement exclusions

286 views
Skip to first unread message

Yannis Giovanos

unread,
Nov 30, 2022, 9:27:23 AM11/30/22
to Google Ads Scripts Forum
I'm trying something like this but it returns empty for a specific campaign.id

SELECT managed_placement_view.resource_name, metrics.active_view_impressions FROM managed_placement_view
WHERE campaign.id =123456"

How do I get the same report available in the Google Ads reporting UI which shows placements and impressions?

Also now that placement exclusions is rolling out what method to add placement exclusions through a script?

Thanks.

Yannis Giovanos

unread,
Dec 3, 2022, 10:07:05 AM12/3/22
to Google Ads Scripts Forum
Still waiting for an answer. The following works for display campaigns but returns nothing for Performance Max. 

 var report = AdsApp.report(
      "SELECT campaign.name, campaign.id, metrics.impressions, group_placement_view.display_name, group_placement_view.placement, group_placement_view.placement_type,  group_placement_view.resource_name " +
      "FROM group_placement_view " +    
      "WHERE campaign.id ="+config.C_ID+" " +
       " "
    );    

Please advise.

Google Ads Scripts Forum Advisor

unread,
Dec 5, 2022, 12:35:41 AM12/5/22
to adwords...@googlegroups.com

Hello,

I’m James from the Google Ads scripts support team. Thank you for reaching out to us.

Could you please provide us with the following items below via Reply privately to author option, so that we can further investigate the mentioned error message?

  • Google Ads account ID / CID
  • Scripts name
  • Sample CID that your trying to retrieve
  • Screenshot of the mentioned UI which shows placement and impression.

Regarding your other question, could you please clarify if you’re looking to add a new placement exclusion list through Google Ads scripts? If yes, then you may use the AdsApp.​ExcludedPlacementListBuilder.

Regards,

Google Logo
James Howell
Google Ads Scripts Team
 


ref:_00D1U1174p._5004Q2giIBd:ref

Yannis Giovanos

unread,
Dec 6, 2022, 11:33:18 AM12/6/22
to Google Ads Scripts Forum
It says I do not have permission to reply to author just public reply. 

The option is greyed out. 

Google Ads Scripts Forum Advisor

unread,
Dec 7, 2022, 12:42:34 AM12/7/22
to adwords...@googlegroups.com

Hello Yannis,

Kindly send us the requested items through this email alias <googleadsscr...@google.com> instead.

Regards,

Reply all
Reply to author
Forward
0 new messages