Good afternoon! Some fields (biddingStrategyConfiguration, budget.amount) 
of the Сompany 
<https://developers.google.com/adwords/api/docs/reference/v201806/CampaignService.Campaign>are
 
empty. 
I'm using the C # library v201806. 
*I get the company like this:*

public Campaign GetCampaign(long campaignId)
        {
            using (CampaignService campaignService = (CampaignService) 
_user.GetService(AdWordsService.v201806.CampaignService))
            {
                Selector selector = new Selector {
                    fields = (from f in Campaign.Fields.All select 
f.FieldName).ToArray(), // use all fields
                    predicates = new Predicate[]
                    {
                        new Predicate
                        {
                            field = Campaign.Fields.Id,
                            @operator = PredicateOperator.EQUALS,
                            values = new [] { campaignId.ToString() }
                        }
                    }
                };
                var findedCampaign = 
campaignService.get(selector).entries[0];
                return findedCampaign;
            }
        }

*I get company properties*

        public static void Export(Campaign campaign)
        {
            Console.WriteLine(campaign.id);
            Console.WriteLine(campaign.name);
            Console.WriteLine( ((UniversalAppCampaignSetting) 
campaign.settings[1]).appId );
            Console.WriteLine(campaign.budget.amount.microAmount); // -> 
amount = null
            Console.WriteLine( ((TargetCpaBiddingScheme) 
campaign.biddingStrategyConfiguration.biddingScheme).targetCpa); // 
biddingStrategyConfiguration = null
        }

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/aa54300b-5b38-4cd7-9dbc-ac5891a5f743%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... Миша Васильев
    • ... 'Dannison Yao (AdWords API Team)' via AdWords API and Google Ads API Forum

Reply via email to