Hi,
I wonder if there are any issues with using 'operator':'ADD' for adgroups that have a bid already? Just trying to find an easy way to update all adgroups without distinguishing them by whether they have an adgroup-level mobile modifier already. The code I run at the moment is provided below but it only seem to update adgroups with existing bid modifier.
Thanks,
Peter
def BuildAdGroupMobileModifierOperations(adgroups):
adgroup_operations = []
for ag_id, ag_data in adgroups.iteritems():
adgroup_operations.append(
{
'xsi_type': 'AdGroupBidModifierOperation',
'operator': 'SET',
'operand': {
'adGroupId': ag_id,
'criterion': {
'xsi_type': 'Platform',
'id': '30001' # Mobile criterion ID.
},
'bidModifier': ag_data['AdGroupMobileBidModifier']
}
}
)