Some fields of the company are empty.

18 views
Skip to first unread message

Миша Васильев

unread,
Sep 4, 2018, 4:13:19 AM9/4/18
to AdWords API and Google Ads API Forum
Good afternoon! Some fields (biddingStrategyConfiguration, budget.amount) of the Сompany 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
        }

Dannison Yao (AdWords API Team)

unread,
Sep 4, 2018, 6:03:02 AM9/4/18
to AdWords API and Google Ads API Forum
Hi,

Could you please provide us the complete SOAP request and response logs via Reply privately to author so I could further investigate your issue? If you haven't enabled the SOAP logs yet, you can enable it by following this guide

Regards,
Dannison
AdWords API Team
Reply all
Reply to author
Forward
0 new messages