Hi,
Thank you for reaching out to the Google Ads Scripts Support team.
I would like to inform you that in order to fetch the location for the video ads, I would suggest you to refer to the available method 'targetedLocations()' under the '
AdsApp.VideoCampaignTargeting'. In order to do any video placement or exclude video placement you can refer to the '
AdsApp.VideoPlacementBuilder'. For more information related to video campaigns you can go through the
Google Ads Scripts documentation related to video campaigns.
If you would like to fetch the placement view using an GAQL query, you can use the
reporting option that is available in Google Ads Scripts. You can refer to the below sample example and can go through the
detail_placement_view_query_builder to add additional fields from the resource based on your requirement.
function main(){
let report = AdsApp.report(
"SELECT detail_placement_view.placement, detail_placement_view.placement_type, detail_placement_view.resource_name, detail_placement_view.target_url FROM detail_placement_view WHERE campaign.advertising_channel_type = 'VIDEO'");
let rows = report.rows();
while (rows.hasNext()) {
let row = rows.next();
console.log(row);
}
}
Feel free to get back in case of any further issues once the script is created by providing us with the below.
- Google Ads Account ID/CID
- Script Name
You can share the requested details via
Reply privately to the author option or a
direct private reply to this email.
