Hi,

The add_keywords_in_bulk.py 
<https://github.com/googleads/googleads-python-lib/blob/master/examples/adwords/v201406/campaign_management/add_keywords_in_bulk.py>
 example 
shows how to submit and monitor MutateJobService 
<https://developers.google.com/adwords/api/docs/reference/v201406/MutateJobService>
 requests 
using Python.

Note as well that all *mutate* methods allow you to pass an *array* of 
operations, so you can, for example, add *multiple* AdSchedule criteria 
<https://developers.google.com/adwords/api/docs/reference/v201406/CampaignCriterionService.AdSchedule>
 to 
one or more campaigns in a *single* request by simply passing multiple 
*CampaignCriterionOperation*s in your mutate 
<https://developers.google.com/adwords/api/docs/reference/v201406/CampaignCriterionService#mutate>
 call.

Cheers,
Josh, AdWords API Team

On Tuesday, July 22, 2014 5:23:42 PM UTC-4, Sean Kennedy wrote:
>
> I'm trying to build a BulkMutate job using Python. Can someone point me in 
> the direction of some examples? 
>
> Is it simply adding a change like below to the array operations of 
> BulkMutate.mutate() object?
>
> for idx,dayofweek in enumerate(campaigns[camp_id][1]):
> #print intervals[idx % 3][0],intervals[idx % 3][1],intervals[idx % 
> 3][2],intervals[idx % 3][3], feed_data[campaigns[camp_id][0]][idx % 3+2]
> timeofday = {
> 'xsi_type': 'AdSchedule',
> 'startHour': intervals[idx % 3][0],
> 'startMinute': intervals[idx % 3][1],
> 'endHour': intervals[idx % 3][2],
> 'endMinute': intervals[idx % 3][3],
> 'id': dayofweek
> }
> campaign_criterion = {
> 'campaignId': camp_id,
> 'criterion': timeofday,
> 'bidModifier': feed_data[campaigns[camp_id][0]][idx % 3 + 2]
> }
> operations = [{
> 'operator': 'SET',
> 'operand': campaign_criterion}]
> service.mutate(operations)
>
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to