Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
primogenial
/
wp-content
/
plugins
/
google-listings-and-ads
/
src
/
API
/
Google
/
Query
:
AdsProductReportQuery.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php declare( strict_types=1 ); namespace Automattic\WooCommerce\GoogleListingsAndAds\API\Google\Query; defined( 'ABSPATH' ) || exit; /** * Class AdsProductReportQuery * * @package Automattic\WooCommerce\GoogleListingsAndAds\API\Google\Query */ class AdsProductReportQuery extends AdsReportQuery { /** * Set the initial columns for this query. */ protected function set_initial_columns() { $this->columns( [ 'id' => 'segments.product_item_id', 'name' => 'segments.product_title', ] ); } /** * Filter the query by a list of ID's. * * @param array $ids list of ID's to filter by. * * @return $this */ public function filter( array $ids ): QueryInterface { if ( empty( $ids ) ) { return $this; } return $this->where( 'segments.product_item_id', $ids, 'IN' ); } }