Danial, with your help i have resolved this issue.
When i looked better in response XML i found that each adgroup have 3 entries, and i was looking just for HighEndMobile (ID = 3001) <entries> <campaignId>35768944</campaignId> <adGroupId>977693464</adGroupId> <criterion xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="Platform"> <id>30000</id> <type>PLATFORM</type> <Criterion.Type>Platform</Criterion.Type> </criterion> </entries> <entries> <campaignId>35768944</campaignId> <adGroupId>977693464</adGroupId> <criterion xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="Platform"> <id>30001</id> <type>PLATFORM</type> <Criterion.Type>Platform</Criterion.Type> </criterion> <bidModifier>0.0</bidModifier> </entries> <entries> <campaignId>35768944</campaignId> <adGroupId>977693464</adGroupId> <criterion xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="Platform"> <id>30002</id> <type>PLATFORM</type> <Criterion.Type>Platform</Criterion.Type> </criterion> </entries> So i have returned 0.0 and in AdWords Editor that is -100% I have used this formula to translate API values to those from AdWords Editor $value = - (1 - round($modifier->bidModifier, 2)) * 100; // possible values for bid modifier (adwords editor = API value) -10% = 0.9 -90% = 0.1 -100% = 0 100% = 2 200% = 3 300% = 4 Basically i think that this issue happened because in official PHP AdWords API located here: https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201406/AdvancedOperations/GetAdGroupBidModifiers.php There is bad condition $value = 'none'; if (!empty($modifier->bidModifier)) { $value = $modifier->bidModifier; } There shoud be used is_numeric instead of !empty, since 0.0 looks like empty, but it's actually -100%, and that should be treated as well. Small issue but it took me in wrong direction. Hopefully now everything should be ok. Thanks again for your help. On Friday, July 18, 2014 11:05:40 AM UTC+2, Nesha wrote: > > We are using 3 different tools to get Adwords data: > - AdWords Editor > - AdWords Web Site > - AdWords API (PHP version) > > And there is an issue to get "Mobile Bid Adjustment" using API or Web Site. > > In AdWords Editor here is sample adgroup with value -100% > > > <https://lh5.googleusercontent.com/-lJiL3JH4LQY/U8jirL2ML5I/AAAAAAAAIE0/Loo-076p1LY/s1600/bid.jpg> > > > Now with Adwords API I am trying to fetch that info using > AdGroupBidModifierService with latest available API (v201406) > https://developers.google.com/adwords/api/docs/guides/adgroup-bid-modifiers > > Here is API response for adgroup with "Mobile Bid Adjustment" = -100% > > AdGroupBidModifier Object > ( > [campaignId] => 35768944 > [adGroupId] => 977693464 > [criterion] => Platform Object > ( > [platformName] => > [id] => 30000 > [type] => PLATFORM > [CriterionType] => Platform > [_parameterMap:Criterion:private] => Array > ( > [Criterion.Type] => CriterionType > ) > > ) > > [bidModifier] => > [bidModifierSource] => > ) > > As you can see, there is no -100% value for bidModifier that I have in > AdWords Editor. > How i can get this adgroup "Mobile Bid Adjustment" value using API ? > I am not sure is this available via API at the moment. > > Thanks, > Nenad Milosavljevic > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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.