Thanks Anthony, one more questions. I am trying to get the cpc bid from the 
mutate job response. and i am using the following code:


for result in result_response['SimpleMutateResult']['results']:
   print(result.AdGroupCriterion.biddingStrategyConfiguration.bids[0].bid.
microAmount)

but the above code sometimes gives the cpm bid instead of cpcbid because 
the object "bids[0]" is sometimes cpc and other times cpm. How do i change 
the above code to get cpc bid always?.. below is the response object and 
the code i tried, which did not work and thre an error.

         
biddingStrategyConfiguration = 
            (BiddingStrategyConfiguration){
               biddingStrategyType = "MANUAL_CPC"
               biddingStrategySource = "CAMPAIGN"
               biddingScheme = 
                  (ManualCpcBiddingScheme){
                     BiddingScheme.Type = "ManualCpcBiddingScheme"
                     enhancedCpcEnabled = False
                  }
               bids[] = 
                  (CpmBid){
                     Bids.Type = "CpmBid"
                     bid = 
                        (Money){
                           ComparableValue.Type = "Money"
                           microAmount = 250000
                        }
                     cpmBidSource = "ADGROUP"
                  },
                  (CpcBid){
                     Bids.Type = "CpcBid"
                     bid = 
                        (Money){
                           ComparableValue.Type = "Money"
                           microAmount = 3600000
                        }


                     cpcBidSource = "CRITERION"
                  },

*sometimes bids[0] is cpc and other times its cpm.. how to refer to cpcbid 
in the object bids[]?*

i tried:


   print(result.AdGroupCriterion.biddingStrategyConfiguration.bids['CpcBid'
].bid.microAmount)

AttributeError: 'BiddingStrategyConfiguration' object has no attribute 
'CpcBid'






On Monday, September 28, 2015 at 1:12:45 PM UTC-5, Anthony Madrigal wrote:
>
> Hi,
>
> Fortunately, the Partial Failure 
> <https://developers.google.com/adwords/api/docs/guides/partial-failure> 
> is always set to true when using the MutateJobService. By setting this 
> flag 
> <https://developers.google.com/adwords/api/docs/guides/bestpractices#partial_failure>,
>  
> you will not have *all *of your requests fail when only one or a few of 
> them fail. 
>
> For future reference, you can set the Partial Failure flag to true by 
> setting it in the *googleads.yaml *file. 
>
> Cheers,
> Anthony
> AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/33777aaa-7e57-4a5e-9b10-42b96a8b63fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to