Hi Fellow Devs,

Below is my sample code to fetch the AdGroup Ad for a Shopping Campaign 
setup - 

   
 def fetch_ad_group_ad(ad_group_id)
      selector = {
        fields:     [
                     'Status',
                     'PromotionLine'
                    ],
        predicates: [
                     {field: 'AdGroupId', operator: 'EQUALS', values: [
ad_group_id]},
                     {field: 'AdType', operator: 'EQUALS', values: [
'PRODUCT_AD']}
                     ]
      }
      ad_group_ad_service.get(selector)
    end

The code works fine, however I do not get the PromotionLine which is marked 
as selectable in the documentation 
- 
https://developers.google.com/adwords/api/docs/reference/v201409/AdGroupAdService.ProductAd

Am I doing something wrong, also on a related note it is hard to figure out 
the predicate for the AdType without any example, the documentation says 
use xsi:type but that did not work (I ended up using AdType as shown above).



Thanks,
Rocky

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
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/5184b6ab-8aa5-4377-85bf-37e654394b9c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to