2 Network Types being returned from Campaign Performance Report (for single campaign Id)

107 views
Skip to first unread message

Daniel Lucash

unread,
Dec 20, 2017, 3:47:56 PM12/20/17
to AdWords Scripts Forum
I am currently having an issue when using AdWords Scripts to download a campaign performance report. My campaigns are listed as Search Only in the AdWords UI, but when I pull a report I am getting 2 network types for each campaign. (Search Network & Display Network) This is preventing us from accurately seeing what network the campaign in question is serving under. Is there an issue with Scripts or perhaps campaign setup?

Thanks!

-------------------------------------------------------

Thea Vega (AdWords Scripts Team)

unread,
Dec 21, 2017, 12:37:07 AM12/21/17
to AdWords Scripts Forum
Hi Daniel,

Using the Campaign Performance Report, it will return both Search and Search with Display Select campaign types (with fields AdNetworkType1 and AdNetworkType2). There is currently no way to get Search Network Only campaigns using reports. 

However, you may use the Campaign object to get Search Network only campaigns.  Please see below code snippet for this:

var campaigns = AdWordsApp.campaigns()
  
.withCondition("AdvertisingChannelType = SEARCH") // Type of campaign is set to SEARCH
  
.withCondition("TargetContentNetwork = FALSE") // TRUE = "Search Network with Display Select"; FALSE = "Search Network only"
  
.get();

while (campaigns.hasNext()) {
  
var campaign = campaigns.next();
  
Logger.log(campaign.getName());
}

Hope this helps. Let me know if this is what you're looking for.

Thanks,
Thea
AdWords Scripts Team

Daniel Lucash

unread,
Dec 21, 2017, 5:52:42 PM12/21/17
to AdWords Scripts Forum
Hi Thea,

I'm not sure I understand. My campaigns are not set up as Search with Display select. Yet the report is returning an AdNetworkType1 = Display Network with them as well as AdNetworkType1 = Search Network.

Using this Query:  AdWordsApp.report("SELECT CampaignId,AdvertisingChannelType,AdNetworkType1,AdNetworkType2 " +
                                 "FROM CAMPAIGN_PERFORMANCE_REPORT " +
                                 "WHERE CampaignStatus = 'ENABLED' " +
                                 "DURING 20170101,20171231",{includeZeroImpressions: true});

It returns: CampaignId={123456789={advertisingChannel=Search, adNetwork=Search Network},...}

And the report printed to a Spreadsheet returns:
CampaignIdAdvertisingChannelTypeAdNetworkType1AdNetworkType2
123456789SearchDisplay NetworkDisplay Network
123456789
SearchDisplay NetworkSearch partners
123456789
SearchDisplay NetworkGoogle search
123456789
SearchSearch NetworkDisplay Network
123456789
SearchSearch NetworkSearch partners
123456789
SearchSearch NetworkGoogle search

My Campaign is not extended with Display Select so why is it being returned that way? With the 30 minute run time AdWords allows I can not cycle through every group of campaigns and then match up the data that I need. I need to do via running a report.

Thanks!

Thea Vega (AdWords Scripts Team)

unread,
Dec 22, 2017, 1:07:40 AM12/22/17
to AdWords Scripts Forum
Hi Daniel,

Could you confirm if the campaign ID (123456789) you have attached is the campaign you are having issues with? If not, could you please give me the correct one via Reply privately to author?

Also, based on my understanding, the campaigns on your account are not set up as Search with Display Select but when generating reports, AdNetworkType1 = Display Network and AdNetworkType1 = Search Network is being returned. With this, could you give me your CID, script name, sample campaign that is Search Network only but returned Search with Display select, as well as spreadsheet access via Reply privately to author for further investigation?

However, please take note that as previously mentioned, there is currently no way to get Search Network Only campaigns using reports. Since there is a maximum execution time of 30 minutes for AdWords Scripts, you may split up your script into multiple instances with different subsets of campaigns or use labels to group the campaigns and see if you can use the previous code snippet I gave for a campaign selector based on your requirements.

Thea Vega (AdWords Scripts Team)

unread,
Jan 22, 2018, 3:58:50 AM1/22/18
to AdWords Scripts Forum
Hi All,

If you will encounter the same concern as this thread, as a summarized recommendation, reports are segmented when using AdNetworkType1 and AdNetworkType2 since the said fields' behavior is Segment. That being said, any data that are attributed in this network type will be returned segmented in the report, the same as in the AdWords UI view. See this documentation about Segmentation for more details. 

Instead of using reports, the CampaignSelector may be used to get all Search Network only campaigns. Filters such as AdvertisingChannelType and TargetContentNetwork may be used on the selector's withCondition() for it to return a specific campaign type (i.e. Search network only). Statistics may still be fetched by using the getStatsFor() function. See this example for reference on how to get a campaign's statistics.
Reply all
Reply to author
Forward
0 new messages