Hi everyone.
I am currently working on a python script to create campaigns, adgroups and ads and I need to create labels and assign those to campaigns.
I have created text labels but I can't find a way to attach a label to a campaign. I've tried the following code:
{'name':tup[0], 'status':'PAUSED', 'advertisingChannelType':'SEARCH', 'biddingStrategyConfiguration':
{'biddingStrategyType':'MANUAL_CPC',},
'budget':{'budgetId':tup[1]},
'labels':{'labelId':tup[2],},
'networkSetting':{'targetGoogleSearch':'true', 'targetSearchNetwork':'true', 'targetContentNetwork':'false', 'targetPartnerSearchNetwork':'false'},}
Of course I got an error: suds.TypeNotFound: Type not found: 'labelId'
I can't find any example where a campaign is created with a label id so is it even possible or do I have to create a campaign then assign it a label ?
And if you have the solution, a code example would be nice.
Thank you for your help.