Hi,

I see that my colleague already posted a reply to your other post. Let's 
continue the discussion there to avoid duplication.

Please try not to post the same issue under multiple posts. This makes it 
difficult for others to find the ultimate solution for the issue.

Thanks,
Josh, AdWords API Team

On Thursday, July 24, 2014 7:12:27 PM UTC-4, Sean Kennedy wrote:
>
> Hi Josh,
>
> This was somewhat helpful in that it showed me I was sending operations 
> structured improperly to the mutate(), but I am still not able to 
> successfully pass in operations correctly. 
>
> See my post here: Re: BulkMutate Failure 
> <https://groups.google.com/forum/embed/?place=forum/adwords-api&showsearch=true&showpopout=true&parenturl=https%3A%2F%2Fdevelopers.google.com%2Fadwords%2Fapi%2Fcommunity%2F%3Fplace%3Dprofile%252Fadwords-api%252FAPn2wQeHqbZUKVDoOQ530YwB3ie4B94eSi0Z5HSBfj4G9x07GBK8WzM9-RPaGxpbwlMMPoADdtoj%26place%3Dforum%252Fadwords-api%26showsearch%3Dtrue%26showpopout%3Dtrue%26parenturl%3Dhttps%253A%252F%252Fdevelopers.google.com%252Fadwords%252Fapi%252Fcommunity%252F#!profile/adwords-api/APn2wQeHqbZUKVDoOQ530YwB3ie4B94eSi0Z5HSBfj4G9x07GBK8WzM9-RPaGxpbwlMMPoADdtoj/adwords-api/kHwIoUfSPUY/J-Ktw5Ov_dUJ>
> . 
>
> Let me know what you find.
>
> Thanks.
>
> On Wednesday, July 23, 2014 5:31:33 PM UTC-5, Josh Radcliff (AdWords API 
> Team) wrote:
>>
>> 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