Network

18 views
Skip to first unread message

etienne....@admobio.com

unread,
Dec 4, 2015, 1:24:40 PM12/4/15
to AdWords API Forum
Hi,

I try to find a way to filter results to only have the campaigns that appear on both the search network and the network display at the same time.

I tried several things but I can not find how to specify this.

Do you know how to do that?

The current formula displays the campaign that are on both networks but separately, I need to have a single result for campaigns that are on both networks at the same time.

Thanks for your help.

This is what I have for now:

// Date range
$dateRange
= sprintf('%d,%d', date('Ymd', strtotime('-90 day')), date('Ymd', strtotime('-1 day')));
 
// Select
$reportQuery
= 'SELECT CampaignName, CampaignId, AdNetworkType1 FROM CAMPAIGN_PERFORMANCE_REPORT WHERE AdNetworkType1 IN [SEARCH,CONTENT] DURING '.$dateRange;

Anthony Madrigal

unread,
Dec 4, 2015, 4:13:33 PM12/4/15
to AdWords API Forum
Hi,

In AdWords API, campaigns that are have both search and display networks are shown as Search networks. In order to determine if it's a search campaign or a search and display campaign, you will need to select the NetworkSetting of a campaign. Campaigns that have both network settings will have the targetSearchNetwork and targetContentNetwork set to TRUE.

Cheers,
Anthony
AdWords API Team
Reply all
Reply to author
Forward
0 new messages