Wednesday, 27 April 2016

Re: Python - Campaign Report - advertisingChannelType question

Thank you Shwetha - this solved it perfectly, now I understand the predicate functionality on the entire reporting system.



On Tuesday, April 26, 2016 at 12:39:14 PM UTC-5, Shwetha Vastrad (AdWords API Team) wrote:
Hi Kevin,

To filter results associated with SEARCH campaigns, you would need to add a predicate to the selector in the report definition. The predicate should contain the field, operator and the value to filter on. 

For example, in Python, the selector for the report should look something like this:

selector = {
         'fields':[...],
         'dateRange':{'min':[startDate], 'max':[endDate]},
         'predicates': [
              {
                    'field': 'AdNetworkType1',
                    'operator': 'EQUALS',
                    'values': 'SEARCH'
              }
         ]
}

Also, Criteria Performance Report does not contain the field AdvertisingChannelType. You can use AdNetworkType1 and AdNetworkType2 instead. 

Regards,
Shwetha, AdWords API Team.

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups "AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/3d8ed78b-86b8-4a46-869b-0281be512083%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment