Can't set 'displaySelect' via the Python Adwords client

52 views
Skip to first unread message

Robert Kreuzer

unread,
Feb 11, 2015, 8:29:40 AM2/11/15
to adwor...@googlegroups.com
Hi,

I'm trying to create a 'Search network with Display Select'-campaign via the v201409 API. I'm using the official 'googleads' Python client library (Version 3.0.1).
Creating search-campaigns without displaySelect works fine but when I pass 'displaySelect': 'true' (with the correct networkSettings as described in http://googleadsdeveloper.blogspot.nl/2014/03/changes-required-for-creating-new.html) I get an error from lxml: TypeNotFound: Type not found: 'displaySelect'.
In my experience this usually means that I'm passing the parameter in the wrong place, here is my operand:

        operand = {
            'name': name,
            'status': status,
            'advertisingChannelType': campaign_type,
            'biddingStrategyConfiguration': {
                'biddingStrategyType': 'MANUAL_CPC',
            },
            'budget': {
                'budgetId': budget_id
            },
            'networkSetting': {
                'targetGoogleSearch': 'true',
                'targetSearchNetwork': 'false',
                'targetContentNetwork': 'true',
                'targetPartnerSearchNetwork': 'false',
            },
            'displaySelect': 'true'
        }

Does anyone see where it goes wrong?

Danial Klimkin

unread,
Feb 11, 2015, 8:39:42 AM2/11/15
to adwor...@googlegroups.com
Hello Robert,


As per the migration guide, display select field is no longer available:


Any campaign targeted to both Display and Search networks is enabled for displaySelect now.


-Danial, AdWords API Team.

Robert Kreuzer

unread,
Feb 11, 2015, 8:56:10 AM2/11/15
to adwor...@googlegroups.com
Hi Danial,

thanks for the quick reply, it works now indeed with the following networkSettings:

            network_setting = {
Reply all
Reply to author
Forward
0 new messages