Hi there, 
I built a function which check if my AdwordsMCC is valid , here is my 
function : 

 public string IsAdwordsMCCValid(string mcc)
        {
            bool isAuthenticated = CheckAdwordsAuthentication();
            if (!isAuthenticated)
            {
                return AdwordsErrors.OAuthNull.ToString();
            }
            AdWordsUser tempUser = adWordsUser;
            (tempUser.Config as AdWordsAppConfig).ClientCustomerId = mcc;
            CampaignService campaignService = 
(CampaignService)tempUser.GetService(
             AdWordsService.v201509.CampaignService);

            Selector selector = new Selector();
            selector.fields = new string[] {
        "Id", "Name"
      };

            try
            {
                campaignService.get(selector); 
                ModifyMCC(mcc.Trim());
                return "success";
            }
            catch (Exception e)
            {
            }
            return "not valid";
        }

When i reach the row ' campaignService.get(selector); '  i get an exception 
"The request failed with HTTP status 404: Not Found.".
is there anything i need to change in this row    '   CampaignService 
campaignService = 
(CampaignService)tempUser.GetService(AdWordsService.v201509.CampaignService); 
 ' ?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/00899b8b-ee29-4439-8f05-727290396225%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • AdWords API v20... adcomsw
    • Re: AdWord... 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum

Reply via email to