While trying to get a list of ad groups by campaign id using v2009 AdGroupService we get the following error response. EntityNotFound.INVALID_ID @ selector; trigger:'CampaignId: 33290390'.
Any pointers on where I might be going wrong? Here is some information that might be useful: ============================================== Client library version: adwords-api-reseller-7.0.0R1.jar (this is the reseller version of the client library) Code Snippet: ============= AdWordsUser user = new AdWordsUser(email, password, clientEmail, USER_AGENT, devToken, appToken); String baseUrl = "https://adwords.google.com"; AdGroupServiceInterface adGroupWS = user.getService(AdWordsService.V200909.ADGROUP_SERVICE, baseUrl); AdGroupSelector selector = new AdGroupSelector(); selector.setCampaignId(campaignId); AdGroupPage page = adGroupWS.get(selector); AdGroup[] adgroups = page.getEntries(); Where: ====== email: MCC email address password: MCC email address' password clientEmail: null USER_AGENT: our user agent devToken: our dev token appToken: our appToken SOAP Request: ============= <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/ envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http:// www.w3.org/2001/XMLSchema-instance"> <soapenv:Header> <ns1:RequestHeader soapenv:actor="http://schemas.xmlsoap.org/ soap/actor/next" soapenv:mustUnderstand="0" xmlns:ns1="https:// adwords.google.com/api/adwords/cm/v200909"> <ns1:authToken xmlns:ns1="https://adwords.google.com/api/ adwords/cm/v200909">******</ns1:authToken> <ns1:developerToken>dev_token</ns1:developerToken> <ns1:userAgent>AdWords API Reseller Java Client Library - v7.0.0R1 - user_agent</ns1:userAgent> <ns1:validateOnly>false</ns1:validateOnly> </ns1:RequestHeader> </soapenv:Header> <soapenv:Body> <get xmlns="https://adwords.google.com/api/adwords/cm/ v200909"> <selector> <campaignId>33290390</campaignId> </selector> </get> </soapenv:Body> </soapenv:Envelope> SOAP Response: ============== <?xml version="1.0" encoding="UTF-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <ResponseHeader xmlns="https://adwords.google.com/api/adwords/ cm/v200909"> <requestId>ffc004a9bc60a504b5f4678044f0ed99</requestId> <operations>1</operations> <responseTime>271</responseTime> <units>1</units> </ResponseHeader> </soap:Header> <soap:Body> <soap:Fault> <faultcode>soap:Server</faultcode> <faultstring>[EntityNotFound.INVALID_ID @ selector; trigger:'CampaignId: 33290390']</faultstring> <detail> <ApiExceptionFault xmlns="https://adwords.google.com/ api/adwords/cm/v200909"> <message>[EntityNotFound.INVALID_ID @ selector; trigger:'CampaignId: 33290390']</message> <ApplicationException.Type>ApiException</ ApplicationException.Type> <errors xsi:type="EntityNotFound" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <fieldPath>selector</fieldPath> <trigger>CampaignId: 33290390</trigger> <ApiError.Type>EntityNotFound</ApiError.Type> <reason>INVALID_ID</reason> </errors> </ApiExceptionFault> </detail> </soap:Fault> </soap:Body> </soap:Envelope> -- 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.
