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']
                }
            }
        )

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
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/50e481dc-2036-45f2-81f4-4317717582d1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • AdGroupBidModifi... Peter
    • Re: AdGroup... 'Vishal Vinayak (Adwords API Team)' via AdWords API Forum

Reply via email to