AdWords API Using TargetingIdeaSelector without the Client Library (PHP)
I have been searching for answers and testing my code for days, but still don't have it working. This article is a great start for information about using the v200909 Google AdWords API without the Client Library, but it's hard to translate the sample code to other API functions: http://code.google.com/p/google-api-adwords-php/wiki/NoClientLibrary I'm working with our analytics team to extract some keyword data (alternate keyword variations and monthly search estimates) and would rather not install the whole library. Seems like a lot of extra code and files for such limited use of the API. Please let me know if this thought is incorrect. Here is my PHP code making the request (the SOAP error output is below): ?php error_reporting(E_STRICT | E_ALL); require_once('AuthToken.php'); class Paging { function Paging($startIndex = 0, $numberResults = 10) { $this-startIndex = $startIndex; $this-numberResults = $numberResults; } } class TargetingIdeaSelector { function TargetingIdeaSelector($searchParameters) { $this-searchParameters = array($searchParameters); $this-ideaType = KEYWORD; $this-requestType = IDEAS; $this-paging = new Paging(); } } class RelatedToKeywordSearchParameter { function RelatedToKeywordSearchParameter($keywords) { $this-keywords = $keywords; } } class Keyword { function Keyword($text, $matchType) { $this-text = $text; $this-matchType = $matchType; } } // Provide AdWords login information. $email = 'INSERT_LOGIN_EMAIL_HERE'; $password = 'INSERT_PASSWORD_HERE'; $client_email = 'INSERT_CLIENT_LOGIN_EMAIL_HERE'; $userAgent = 'INSERT_COMPANY_NAME: AdWords API PHP Code Example'; $developerToken = 'INSERT_DEVELOPER_TOKEN_HERE'; $applicationToken = 'INSERT_APPLICATION_TOKEN_HERE'; // Create authToken $authToken = new AuthToken($email, $password, 'adwords', 'PHP Sample Code', 'GOOGLE'); // Set SOAP and XML settings. To send requests to production environment $wsdl = 'https://adwords.google.com/api/adwords/o/v200909/ TargetingIdeaService?wsdl'; $namespace = 'https://adwords.google.com/api/adwords/o/v200909'; $options = array( 'features' = SOAP_SINGLE_ELEMENT_ARRAYS, 'encoding' = 'utf-8'); // Get the TargetingIdeaService $targetingIdeaService = new SoapClient($wsdl, $options); // Set headers $headers = new SoapHeader($namespace, 'RequestHeader', array( 'authToken' = $authToken-GetAuthToken(), 'clientEmail' = $client_email, 'userAgent' = $userAgent, 'developerToken' = $developerToken, 'applicationToken' = $applicationToken)); $targetingIdeaService-__setSoapHeaders($headers); try { // Get related keywords $keywords = array(new Keyword(mars cruise, BROAD)); $selector = new TargetingIdeaSelector(new RelatedToKeywordSearchParameter($keywords)); $response = $targetingIdeaService-get(array(selector = $selector)); // for Output Testing //print_r($selector); //exit; // Display related keywords. if (isset($response-entries)) { foreach ($response-entries as $targetingIdea) { $keyword = $targetingIdea-data[0]-value-value; print 'Keyword with text ' . $keyword-text . ' and match type ' . $keyword-matchType . \ was found.\n; } } else { print No related keywords were found.\n; } } catch (Exception $e) { print_r($e); } ? SoapFault exception: SoapFault exception: [soap:Server] Unmarshalling Error: Unable to create an instance of com.google.ads.api.services.targetingideas.v200909.jaxbgen.SearchParameter in /var/www/vhosts/nonbot.com/httpdocs/tools/_dev/google-api_kwd.php: 68 Stack trace: #0 [internal function]: SoapClient-__call('get', Array) #1 /var/www/vhosts/nonbot.com/httpdocs/tools/_dev/google- api_kwd.php(68): SoapClient-get(Array) #2 {main} THANK YOU! -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
AdWords API Re: Perl API Support.
I have a question that I can't seem to find the answer to in the FAQ or on the forums. Maybe I just haven't looked into the right places yet, but since this is a particularly frustrating response, I'll ask here. Why? I know when v13 is sunsetting, but what I can't seem to figure out is why Google is making us support two versions of the same code in the first place? Why not leave v13 alone until v2009 has functional up-to- date client libraries... or at least, hey, until v2009 actually has all of its services complete and in production? Is there really that much of a problem with leaving v13 around? -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
AdWords API Re: EntityNotFound.INVALID_ID
Concerining my last message I finally found bug on my site , sorry for problem On 16 Mar, 16:09, mariek marek.byt...@gmail.com wrote: I also confirm having problem with ruby lib On 16 Mar, 00:20, Morten Blinksbjerg Nielsen morten.blinksbjerg.niel...@gmail.com wrote: I'm still having problems. I use the PHP library, and I've just upgraded to version 2.0.1. My code is based on examples/AddAds.php. Basicly I just changes $adGroupId to match one of my groups. I can create campains and groups, but not ads. Hope someone can help :-) Let me know what more info you'll need if any? SoapFault Object ( [message:protected] = [EntityNotFound.INVALID_ID @ operations[0].operand.adGroupId; trigger:'AdGroupId: 1268524965'] -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
AdWords API API Access
Hi, I want to access the adwords API. The getting started guide says that I need to create a My client Center (MCC) first. I tried doing that but got an error on the third step. so my gmail address got registered but did not go through the complete process. I tried registering for MCC again but got an error saying that the gmail address is already registered. The guide then says: If you already have an MCC account, you can sign up for the AdWords API directly from the My Account tab. Click on API Center and follow the instructions to apply for AdWords API access I'm able to login to adwords.google.com but am not able to see API Center under My Accounts. How do I enable API for my account. Thanks, Terance. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
AdWords API AdGroupAd service mutate doesn't accept the data
Up to now I've successfully implemented Campaign and AdGroup services. AdGroupAd service however doesn't accept my ads. The mutate method tells that all fields are empty, while they are not. Here is the XML posted: SOAP-ENV:Envelope xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/ envelope/ xmlns:ns1=https://adwords.google.com/api/adwords/cm/ v200909 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;SOAP- ENV:Header...headers.../SOAP-ENV:HeaderSOAP- ENV:Bodyns1:mutatens1:operationsns1:operatorADD/ ns1:operatorns1:operandns1:adGroupId375396524/ ns1:adGroupIdns1:ad xsi:type=ns1:TextAddescription1Test TextAd Description/description1description2Second Line/ description2urlhttp://example.com/urldisplayUrlhttp:// example.com/displayUrlheadlineT1268826548 headline/headline/ ns1:ad/ns1:operand/ns1:operations/ns1:mutate/SOAP-ENV:Body/ SOAP-ENV:Envelope Here is the XML reponse: soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/ envelope/soap:HeaderResponseHeader xmlns=https:// adwords.google.com/api/adwords/cm/v200909requestId.../ requestIdoperations1/operationsresponseTime165/ responseTimeunits40/units/ResponseHeader/ soap:Headersoap:Bodysoap:Faultfaultcodesoap:Server/ faultcodefaultstring[AdError.EMPTY_FIELD @ operations[0].operand.ad.url, AdError.EMPTY_FIELD @ operations[0].operand.ad.displayUrl, AdError.EMPTY_FIELD @ operations[0].operand.ad.headline, AdError.EMPTY_FIELD @ operations[0].operand.ad.description1, AdError.EMPTY_FIELD @ operations[0].operand.ad.description2]/ faultstringdetailApiExceptionFault xmlns=https:// adwords.google.com/api/adwords/cm/ v200909message[AdError.EMPTY_FIELD @ operations[0].operand.ad.url, AdError.EMPTY_FIELD @ operations[0].operand.ad.displayUrl, AdError.EMPTY_FIELD @ operations[0].operand.ad.headline, AdError.EMPTY_FIELD @ operations[0].operand.ad.description1, AdError.EMPTY_FIELD @ operations[0].operand.ad.description2]/ messageApplicationException.TypeApiException/ ApplicationException.Typeerrors xmlns:xsi=http://www.w3.org/2001/ XMLSchema-instance xsi:type=AdErrorfieldPathoperations[0].operand.ad.url/ fieldPathtrigger/triggerApiError.TypeAdError/ ApiError.TypereasonEMPTY_FIELD/reason/errorserrors xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:type=AdErrorfieldPathoperations[0].operand.ad.displayUrl/ fieldPathtrigger/triggerApiError.TypeAdError/ ApiError.TypereasonEMPTY_FIELD/reason/errorserrors xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:type=AdErrorfieldPathoperations[0].operand.ad.headline/ fieldPathtrigger/triggerApiError.TypeAdError/ ApiError.TypereasonEMPTY_FIELD/reason/errorserrors xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:type=AdErrorfieldPathoperations[0].operand.ad.description1/ fieldPathtrigger/triggerApiError.TypeAdError/ ApiError.TypereasonEMPTY_FIELD/reason/errorserrors xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:type=AdErrorfieldPathoperations[0].operand.ad.description2/ fieldPathtrigger/triggerApiError.TypeAdError/ ApiError.TypereasonEMPTY_FIELD/reason/errors/ ApiExceptionFault/detail/soap:Fault/soap:Body/soap:Envelope What's wrong? -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
AdWords API Re: Perl API Support.
On Mar 16, 6:24 pm, AdWords API Advisor adwordsapiadvi...@google.com wrote: Hi Rick We are aware that the Perl client library is out of date, and we are actively working on updating it to take full advantage of the v200909 version of the API. We encourage AdWords API Perl developers to contribute to the open source project and help to accelerate the process, but we want you to understand that this work will not be completed prior to the April 22 sunset of most v13 services. We recommend that developers either migrate their applications to another language and client library (such as PHP, Python, etc.) or continue the development of their own implementation in Perl. A complete list of the AdWords API client libraries is available here: http://code.google.com/apis/adwords/docs/clients.html Best, - Eric Koleda, AdWords API Team Recently blogged about this decision over at: http://jjnapiorkowski.vox.com/library/post/google-do-no-evil-to-perl.html I hope we can work together to address this problem. I really don't think use a language other then Perl or write your own bindings is a very productive solution. I hope we can do better. On Mar 8, 1:50 pm, Rick google...@ppcassurance.com wrote: We've been using the perl api for v13, and are trying to use the v2009 api. However, the perl api appears broken, and we're just not getting any response from google about when, or even if, it will be fixed. What will happen on April 22, then? Will the v13 calls be turned off, in spite of the fact that the v2009 api is broken? If google is not going to actually support perl, is there any consensus on what api they actually support best so we can migrate to that language? Rick -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
AdWords API Re: AdGroupAd service mutate doesn't accept the data
The problem was that headline, url, displayurl, description1 and description2 should be also in the ns1 namespace. SOAP-ENV:Envelope xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/ envelope/ xmlns:ns1=https://adwords.google.com/api/adwords/cm/ v200909 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;SOAP- ENV:Header...headers.../SOAP-ENV:HeaderSOAP- ENV:Bodyns1:mutatens1:operationsns1:operatorADD/ ns1:operatorns1:operandns1:adGroupId375396524/ ns1:adGroupIdns1:ad xsi:type=ns1:TextAdns1:description1Test TextAd Description/description1ns1:description2Second Line/ description2ns1:urlhttp://example.com/urlns1:displayUrlhttp:// example.com/displayUrlns1:headlineT1268826548 headline/ headline/ ns1:ad/ns1:operand/ns1:operations/ns1:mutate/SOAP-ENV:Body/ SOAP-ENV:Envelope On Mar 17, 4:08 pm, Maxim Krizhanovsky darha...@gmail.com wrote: Up to now I've successfully implemented Campaign and AdGroup services. AdGroupAd service however doesn't accept my ads. The mutate method tells that all fields are empty, while they are not. Here is the XML posted: SOAP-ENV:Envelope xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/ envelope/ xmlns:ns1=https://adwords.google.com/api/adwords/cm/ v200909 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;SOAP- ENV:Header...headers.../SOAP-ENV:HeaderSOAP- ENV:Bodyns1:mutatens1:operationsns1:operatorADD/ ns1:operatorns1:operandns1:adGroupId375396524/ ns1:adGroupIdns1:ad xsi:type=ns1:TextAddescription1Test TextAd Description/description1description2Second Line/ description2urlhttp://example.com/urldisplayUrlhttp:// example.com/displayUrlheadlineT1268826548 headline/headline/ ns1:ad/ns1:operand/ns1:operations/ns1:mutate/SOAP-ENV:Body/ SOAP-ENV:Envelope Here is the XML reponse: soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/ envelope/soap:HeaderResponseHeader xmlns=https:// adwords.google.com/api/adwords/cm/v200909requestId.../ requestIdoperations1/operationsresponseTime165/ responseTimeunits40/units/ResponseHeader/ soap:Headersoap:Bodysoap:Faultfaultcodesoap:Server/ faultcodefaultstring[AdError.EMPTY_FIELD @ operations[0].operand.ad.url, AdError.EMPTY_FIELD @ operations[0].operand.ad.displayUrl, AdError.EMPTY_FIELD @ operations[0].operand.ad.headline, AdError.EMPTY_FIELD @ operations[0].operand.ad.description1, AdError.EMPTY_FIELD @ operations[0].operand.ad.description2]/ faultstringdetailApiExceptionFault xmlns=https:// adwords.google.com/api/adwords/cm/ v200909message[AdError.EMPTY_FIELD @ operations[0].operand.ad.url, AdError.EMPTY_FIELD @ operations[0].operand.ad.displayUrl, AdError.EMPTY_FIELD @ operations[0].operand.ad.headline, AdError.EMPTY_FIELD @ operations[0].operand.ad.description1, AdError.EMPTY_FIELD @ operations[0].operand.ad.description2]/ messageApplicationException.TypeApiException/ ApplicationException.Typeerrors xmlns:xsi=http://www.w3.org/2001/ XMLSchema-instance xsi:type=AdErrorfieldPathoperations[0].operand.ad.url/ fieldPathtrigger/triggerApiError.TypeAdError/ ApiError.TypereasonEMPTY_FIELD/reason/errorserrors xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:type=AdErrorfieldPathoperations[0].operand.ad.displayUrl/ fieldPathtrigger/triggerApiError.TypeAdError/ ApiError.TypereasonEMPTY_FIELD/reason/errorserrors xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:type=AdErrorfieldPathoperations[0].operand.ad.headline/ fieldPathtrigger/triggerApiError.TypeAdError/ ApiError.TypereasonEMPTY_FIELD/reason/errorserrors xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:type=AdErrorfieldPathoperations[0].operand.ad.description1/ fieldPathtrigger/triggerApiError.TypeAdError/ ApiError.TypereasonEMPTY_FIELD/reason/errorserrors xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:type=AdErrorfieldPathoperations[0].operand.ad.description2/ fieldPathtrigger/triggerApiError.TypeAdError/ ApiError.TypereasonEMPTY_FIELD/reason/errors/ ApiExceptionFault/detail/soap:Fault/soap:Body/soap:Envelope What's wrong? -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
AdWords API Is it possible to create a clck-to-play video ad through the v2009 API?
I have been working on migrating code from v13 to v2009. One of the things that I did with v13 was create Video Ads. The code couldn't actually upload a video (this had to be done through the AdWords web UI), but once there was a video, I could use the API to create video ads that referenced that video. Looking through the v2009 docs, it is not immediately apparent how to do this anymore. I don't see an equivalent to the old AdService.getMyVideos() call. I also am not sure how I would actually create a video ad using v2009, if I did have a way to get the existing videos. I believe I would create a TemplateAd, and set its template ID to a magic number representing click-to-play, and figure out which TemplateElements were needed, etc. I haven't found an example of doing this. I am certainly willing to start experimenting, but before I dive in, I wanted to check if it is possible to do this (create click-to-play video ads) using the v2009 API. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
AdWords API Search Volume discrepency between KeywordTool and API
Hi - I have noticed that the values I am returned when retrieving the search volume (TARGETED_MONTHLY_SEARCHES and GLOBAL_MONTHLY_SEARCHES) is wildly different from the values I see when querying from within the KeywordTool. Is it perhaps that I'm not constructing my TargetingIdeaSelector correctly (I am using the Java client library)? I am setting IdeaType = KEYWORD RequestType = STATS LocalCode = US For example, if I issue a request for 'ipod', the API returns a GLOBAL_MONTHLY_SEARCHES of 9,140,000 while the KeywordTool shows 124,000,000. What might I be doing wrong? Thanks! -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
AdWords API Are others seeing this downtime alert?
System downtime - March 18, 2010 10:00 AM through March 18, 2010 2:00 PM Pacific Time. It seemed like an unusual time to do maintenance since they are usually on Saturdays. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
AdWords API dateRange in AdGroupService
Hi team, I am trying to get aall AdGroups criterion information for a given campaign ID or adGroupID for selected period. I am getting results but they are alltime results rather than selected date range. I am using the following lines of code for date range. $daterange=new DateRange(); $daterange-min='2010-01-01'; $daterange-max='2010-01-31'; $selector = new AdGroupSelector(); $selector-statsSelector=$daterange; $adGroupService = $user-GetAdGroupService('v200909'); $page = $adGroupService-get($selector); I tired $selector-statsSelector-dateRange=new DateRange('2010-01-01','2010-01-31'); and $selector-statsSelector-dateRange=new DateRange('20100101','20100131'); then I got error as Creating default object from empty value in C:\AppServ\www \aw_api_php_lib_1.2.1\examples\v200909\GetAllAdGroups.php on line 61 Please give me guidance. Thanks, Raj -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
AdWords API clientEmail and other data in header
Hello, I am dealing with some v13 code and I am trying to learn and migrate that code. I have seen that certain data ie. email, password, clientEmail was accessible from the service object. Take an instance of the AdGroupService in V13. This object exposes those fields however in the new V200909 api the service instances do not contain that information anymore (I'm using the .NET client libraries). How/Where do I find that information? -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
AdWords API AdWords Downtime: March 20th, 10am-2pm PDT
We'll be performing routine system maintenance on Saturday, March 20th from approximately 10:00am to 2:00pm PDT. You won't be able to access AdWords or the API during this time frame, but your ads will continue to run as normal. Best, - Eric Koleda, AdWords API Team -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
AdWords API AdWordsUser instantiation very slow first time v200909
Hi, I am using AdWordsUser object to pass in header related info. The problem is that first time when I am instantiating the object and pass in the soapheader dictionary, it takes about 15 seconds. I was wondering if I can speed it up somehow. AdWordsUser user; user = new AdWordsUser(GetHeaders(soapHeader)); - This line takes 15 seconds to execute. private Dictionarystring, string GetHeaders(SOAPHeader _soapHeader) { Dictionarystring, string headers = new Dictionarystring, string(); headers.Add(email, _soapHeader.Email); headers.Add(password, _soapHeader.Password); headers.Add(useragent, _soapHeader.UserAgent); headers.Add(developerToken, _soapHeader.DeveloperToken); headers.Add(clientCustomerId, _soapHeader.CustomerId); return headers; } -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
AdWords API Audiences (uservertical) support in v2009
Hi, What are the support for audiences in V2009? In V13 all soap requests fails on an adgroup if it contains an audience. Will they show up as uservertical:x or using their real name. Can we get a reference data file in the sample libraries similar to the categories.csv file. Thanks -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
AdWords API Re: Perl API Support.
Hi All, To help you get started using and updating the client library, we've made sure that the current code is up to date with most of the services from v200909 of the API. The only services that are missing from this build are InfoService, BulkMutateJobService, and TargetingIdeaService. These services require further patches to the SOAP module in order to support multiple namespaces. For example, some of the obejcts in the InfoService are shared with cm/ and thus defined with https://adwords.google.com/api/adwords/cm/ namespace, others are unique to this service and are defined under https://adwords.google.com/api/adwords/info/ namespace. We hope to implement these patches with your help. The latest version of the code can be found at: http://code.google.com/p/google-api-adwords-perl/. Note that the client library requires patched version of the SOAP::WSDL module, thus make sure to follow instructions in the README file: http://code.google.com/p/google-api-adwords-perl/source/browse/trunk/README Best, - Eric Koleda, AdWords API Team On Mar 17, 10:48 am, john napiorkowski jjn1...@gmail.com wrote: On Mar 16, 6:24 pm, AdWords API Advisor adwordsapiadvi...@google.com wrote: Hi Rick We are aware that the Perl client library is out of date, and we are actively working on updating it to take full advantage of the v200909 version of the API. We encourage AdWords API Perl developers to contribute to the open source project and help to accelerate the process, but we want you to understand that this work will not be completed prior to the April 22 sunset of most v13 services. We recommend that developers either migrate their applications to another language and client library (such as PHP, Python, etc.) or continue the development of their own implementation in Perl. A complete list of the AdWords API client libraries is available here: http://code.google.com/apis/adwords/docs/clients.html Best, - Eric Koleda, AdWords API Team Recently blogged about this decision over at:http://jjnapiorkowski.vox.com/library/post/google-do-no-evil-to-perl I hope we can work together to address this problem. I really don't think use a language other then Perl or write your own bindings is a very productive solution. I hope we can do better. On Mar 8, 1:50 pm, Rick google...@ppcassurance.com wrote: We've been using the perl api for v13, and are trying to use the v2009 api. However, the perl api appears broken, and we're just not getting any response from google about when, or even if, it will be fixed. What will happen on April 22, then? Will the v13 calls be turned off, in spite of the fact that the v2009 api is broken? If google is not going to actually support perl, is there any consensus on what api they actually support best so we can migrate to that language? Rick -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
AdWords API Re: v2009: Unable to get a list of ad groups for a given campaign id
Indeed that was the solution. I figured that a bit after I posted but did not update this thread. But thanks for your response. On Mar 9, 1:35 pm, AdWords API Advisor adwordsapiadvi...@google.com wrote: Hi, You aren't specifying a clientEmail or clientCustomerId field in your header, and the authToken used is generated for an MCC account that can't contain any campaigns. Please ensure you are setting the headers correctly and try your request again. Best, - Eric Koleda, AdWords API Team On Mar 8, 1:53 pm,abhijatabhijatupadh...@gmail.com wrote: 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:developerTokendev_token/ns1:developerToken ns1:userAgentAdWords API Reseller Java Client Library - v7.0.0R1 - user_agent/ns1:userAgent ns1:validateOnlyfalse/ns1:validateOnly /ns1:RequestHeader /soapenv:Header soapenv:Body get xmlns=https://adwords.google.com/api/adwords/cm/ v200909 selector campaignId33290390/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 requestIdffc004a9bc60a504b5f4678044f0ed99/requestId operations1/operations responseTime271/responseTime units1/units /ResponseHeader /soap:Header soap:Body soap:Fault faultcodesoap: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.TypeApiException/ ApplicationException.Type errors xsi:type=EntityNotFound xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; fieldPathselector/fieldPath triggerCampaignId: 33290390/trigger ApiError.TypeEntityNotFound/ApiError.Type reasonINVALID_ID/reason /errors /ApiExceptionFault /detail /soap:Fault /soap:Body /soap:Envelope -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
AdWords API Re: UNEXPECTED_INTERNAL_API_ERROR
Eric, Sorry about the delayed response. We recently went live with V200909 and still seeing the issue. We have enabled logging and will provide you the logs as soon as possible. We also have a retry mechanism to try for 3 times with a 10 sec wait between each retry. Chandra On Mar 3, 8:15 pm, AdWords API Advisor adwordsapiadvi...@google.com wrote: Hi Chandra, Do you have the SOAP XML request and response that demonstrates this problem? Best, - Eric On Mar 2, 11:36 am, Chandra Bhandaru chandra.bhand...@gmail.com wrote: Eric, I stopped seeing this error for a while and now it started back again. The recent occurrence was when I tried to set AdParams in Sandbox. Let me know if you need any more information from me. Chandra On 10 Feb, 11:45, AdWords API Advisor adwordsapiadvi...@google.com wrote: Hi Chandra, There should be a fix going out for this problem this week, but UNEXPECTED_INTERNAL_API_ERRORs can have many causes and yours may be different. Best, - Eric On Feb 9, 4:41 pm, Chandra Bhandaru chandra.bhand...@gmail.com wrote: Hi, Any update on this? I still the InternalApiError.UNEXPECTED_INTERNAL_API_ERRORoccasionally on sandbox. Chandra On Jan 25, 10:28 am, AdWords API Advisor adwordsapiadvi...@google.com wrote: Hi, The core engineering team is still actively working on a resolution to this problem, but at this time I don't have any information on when it would become available. Best, - Eric Koleda, AdWords API Team On Jan 25, 3:56 am, Nicklas nicklas.nils...@keybroker.com wrote: Hi Eric, We have testet varies sizes from a 100 up to a 1000 and we have encountered the same problems with 100 operations as for a 1000. This seems the be happening randomly. I know that you are working on this problem, but when can we expect this to be fixed? Regards, Nicklas On 22 Jan, 22:51, AdWords API Advisor adwordsapiadvi...@google.com wrote: Hi Nicklas, Other users are seeing success with around 1000 operations per request: http://groups.google.com/group/adwords-api/browse_thread/thread/6a44d... Best, - Eric On Jan 22, 4:10 am, Nicklas nicklas.nils...@keybroker.com wrote: Hi Eric, Are there any updates on the UNEXPECTED_INTERNAL_API_ERROR in production? Is there any workaround for this error? Your talking about using smaller batches, how small do you recommend? Thanks, Nicklas On 5 Jan, 23:49, AdWords API Advisor adwordsapiadvi...@google.com wrote: Hi Ralph, I've done some more research, and there does appear to be an increase in these types of errors. I've alerted the core engineering team and they are looking into the issue. In the past there have been problems updating large numbers of criteria at once, and a temporary workaround was to send smaller batches of criteria. I'll update this thread when I have more information. Best, - Eric Koleda, AdWords API Team On Jan 5, 7:37 am, Ralph Heimburger 1stpo...@gmail.com wrote: I got another one Mon 01/04/2010 16:30:49.93 (EST). For some reason the 16:30 PM seems repetitive for this proble, aw_api\AdGroupCriterionService.pyc, line 130, in Mutate aw_api\WebService.pyc, line 342, in CallMethod aw_api\WebService.py, line 190, in __ManageSoap aw_api.Errors.GoogleInternalError: InternalApiError.UNEXPECTED_INTERNAL_API_ERROR@ -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
AdWords API Disapproved and Zero Impression Ad's
Hello, Is there any way to get the disapproved Ad's through api (v13 report or v200906)? The only way that i see, is returning all of the ads, and check one by one if one of them is disapproved, but with this way, i will pay a lot of API units. Another question is: Can i get the ad's with zero impression through api report? regards, Thiago. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
AdWords API Re: Disapproved and Zero Impression Ad's
Still about the ad's.. How can i know how long ago the ad was created? regards, Thiago. On 17 mar, 18:10, tsmthi...@gmail.com tsmthi...@gmail.com wrote: Hello, Is there any way to get the disapproved Ad's through api (v13 report or v200906)? The only way that i see, is returning all of the ads, and check one by one if one of them is disapproved, but with this way, i will pay a lot of API units. Another question is: Can i get the ad's with zero impression through api report? regards, Thiago. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
AdWords API Re: migrating v13 WebService code to v2009 (in CFML)
Hi Matt, Can you post more information about the error message you are receiving? Which endpoint URL are you using? Best, - Eric Koleda, AdWords API Team On Mar 13, 7:51 pm, Matthew McGinty mcgin...@gmail.com wrote: I'm looking here:http://code.google.com/apis/adwords/v2009/docs/callguide.html#keyword... and trying to update my v13 code to v2009. My v13 code has worked fine for a long time in CFML and looks like this: cfset var ws = createObject(webservice, https://adwords.google.com/ api/adwords/v13/KeywordToolService?wsdl) cfset addSoapRequestHeader(ws, , email, Variables._googleUsername) cfset addSoapRequestHeader(ws, , useragent, Variables._googleApplicationName) cfset addSoapRequestHeader(ws, , password, Variables._googlePassword) cfset addSoapRequestHeader(ws, , developerToken, Variables._googleDeveloperToken) cfset addSoapRequestHeader(ws, , applicationToken, Variables._googleApplicationToken) cfset resultWs = ws.getKeywordsFromSite(siteURL, Arguments.includeLinkedPages, Variables._languages, Variables._countries) cfset result.groups = resultWs.getGroups() cfset result.keywords = extractSiteKeywords( resultWs.getKeywords() ) cfreturn result I don't understand the format of the (v2009) selector as it is shown at the link above. Can anyone offer some clues as to what my updated CFML code should look like in terms of the selector? I've tried: = cfset resultWs = ws.get(RelatedToUrlSearchParameter, #ListToArray(siteURL)#, includeLinkedPages, Variables._languages, Variables._countries) = and many other permutations, but always get an error stating that a Web service operation get with parameters ... (a listing of the params I'm sending) does not exist. What do I pass to the get() method/function to get it to work? Matt McGinty -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
AdWords API Re: Search Query Report not working since ~5 days
Hi Daniel, I haven't heard of any other cases of this happening. Can you double check that the crossClient parameter is set to true on the DefinedReportJob? Best, - Eric Koleda, AdWords API Team On Mar 15, 10:26 am, Daniel d...@ads2people.de wrote: Hi! Since about 5 days i can't get a Search Query Report for all of our clients trough the API. I did not changed the code or something else on the routine, however i only get a XML Report with the grandtotal line (all values are 0). If i try to generate the Searxh Query Report trough the Adwords Webinterface, everything is fine. I'm working with the Java Library ... Hope somebody can fix this. Greetings from Germany, Daniel -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
AdWords API Re: Order of result returned by TargetingIdeaService
Hi, When using the selector in STATS mode the results should be in the same order as in the request. However, for flexibility purposes you may want to include the KEYWORD attribute in your results and simply use that value when analyzing the results. Best, - Eric Koleda, AdWords API Team On Mar 15, 4:07 pm, bluesman anoop.kulka...@gmail.com wrote: Just want to confirm that the index of the result corresponds to the input. Our tests hitting the sandbox return the results in the same order as they are sent to the get function so wondering if there are any situations where the order might not be preserved. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
AdWords API Re: creating criterion, linking criteria to adgroup and campaign
Hi Simon, The purpose of the CampaignCriterion is to allow you to add negative keywords or placements to a campaign, as is available in the AdWords web interface. Best, - Eric Koleda, AdWords API Team On Mar 16, 12:41 am, Simon simon.kitch...@airnz.co.nz wrote: Ok, I've figured out some answers. Although the CampaignCriterion and AdGroupCriterion classes look rather like they are building an N:N relation forcampaign-criterion and adgroup-criterion respectively, they are not. Instead, a criterion belongs to either a CampaignCriterion or AdGroupCriterion, and is created when its owner is ADDed. It is therefore not possible to link the *same* criterion object to multiple AdGroup objects; a new one is created for each adgroup. And an AdParam is really attached to an AdGroupCriterion; the AdParam key is (groupid, criterionid) which is the same as the key for an AdGroupCriterion. I'd still appreciate some info on the purpose of CampaignCriterion -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
AdWords API Re: pausing campaigns
Hi Kevin, To address your questions: 1) This question is about the Adwords project, not specifically the API. Try looking in the AdWords Help Center: http://adwords.google.com/support/aw/?hl=en 2) Ditto. 3) Traffic estimation takes into account the history of an account, so it must be run at the AdWords account level. Best, - Eric Koleda, AdWords API Team On Mar 15, 6:53 pm, Kevin kevin.matchcr...@gmail.com wrote: Hi, I have some questions: 1. Is it true that pausing a campaign would cause it to lose history, such as Quality Score? And is it the same for adgroup? 2. What are the differences between pausing a campaign and pausing all the adgroups under that campaign? 3. Why we can't use estimateKeywordList() at the MCC level similar to checkKeywordTraffic()? Please help. Thanks, -Kevin -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
AdWords API Re: AdParam
Hi, I just tried this using the PHP client library and it worked fine. $adParam2 = new AdParam($adGroupId, $keywordId, '£40', 2); My PHP file is saved as UTF-8, so the pound sign is automatically being encoded correctly. If you are working in another encoding can specify the unicode code point entity of the character and use the html_entity_decode() method to convert it. $adParam2 = new AdParam($adGroupId, $keywordId, html_entity_decode('#x00A3;40', ENT_NOQUOTES, 'UTF-8'), 2); Best, - Eric On Mar 16, 5:06 am, Andy andyrussel...@googlemail.com wrote: Well, I'm trying to post using the php adwords api from Google. When trying to post a £ sign i get the error: xa3...' is not a valid utf-8 string So, the only ones I can post is pound; or £. But even then im not sure how they will come out when the advert is displayed... On Mar 4, 12:03 pm, Kemal dis...@gmail.com wrote: It could be that the system would allow for symbols w/ only certain type of encoding (I'm guessing UTF-8) and not others (like 8859-1) Just a thought. Cheers! Kemal On Mar 4, 3:20 am, AdWords API Advisor adwordsapiadvi...@google.com wrote: Hi Andy, I was able to send the unencoded pound sign successfully in my request. Do you have the SOAP XML request and response that demonstrates this problem? Best, - Eric Koleda, AdWords API Team On Mar 3, 7:04 am, Andy andyrussel...@googlemail.com wrote: Hi, I am having trouble posting a GBP £ sign as the currency symbol for an ad paramater. If i try to send the HTML encoded character pound; i get a error responce of: operations[0].operand.insertionText; trigger:'pound;230', If i try to send a non encoded £ sign i get the following: SOAP-ERROR: Encoding: string '\xa3...' is not a valid utf-8 string in The dollar sign posts ok, but im in the UK and its not too useful. ;-) Is this a known problem or am i missing something here..? -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
AdWords API Report service returning wrong results for March 12, 2010?
Hi, Did anyone get wrong results from the report service for March 12, 2010 (or any other date for that matter)? Currently the following is happening for reports for March 12, 2010 (regardless of the requested time frame) and only for one customerId: We're scheduling a DefinedReportJob to retrieve daily cost, impression, etc data. While the data was actually OK after collecting it between the 13th and 15th (returning the exact same cost), starting on the 16th the data for the 12th suddenly started to get out of control. Cost data is still increasing for the 12th and has now reached about 5 times the amount originally returned. The Adwords UI still shows the same number we got until the 15th, but when we call the service we seem to get those weird numbers. Turns out we got 4 additional rows on the 16th and 3 on the 17th (for the 12th). The data for all those rows look really suspicious too: The all have a very high number of impressions, no clicks and a fairly high cost. The company is not running any campaigns that involves cost per impression and out of the over 600,000 rows returned over the past 6 months for that customer only the 7 rows added in during the last 2 days showed these characteristics... It seems something is wrong with the service since the UI and the service return different results. We're running the reports against API v200909. Any ideas? Volker -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
AdWords API Re: creating criterion, linking criteria to adgroup and campaign
The purpose of the CampaignCriterion is to allow you to add negative keywords or placements to a campaign, as is available in the AdWords web interface. Thanks for your reply, Eric. Unfortunately it isn't what I was looking for. It's clear from the API that this adds a Criterion to a Campaign. My question was: what *effect* does this have? Here's my best *guess*: Adding a CampaignCriterion (to associate a Criterion with a Campaign) has the same effect as adding an AdGroupCriterion with the same Criterion values for each AdGroup in the Campaign. Note, however, that it is not possible to create AdParam objects for a CampaignCriterion; if AdParams are needed then an AdGroupCriterion must be explicitly used. Have I got it right? Thanks, Simon -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
AdWords API Question with CaptchaRequired error code with ClientLogin authentication API
We use the ClientLogin RESTful API for authentication (http:// code.google.com/apis/accounts/docs/AuthForInstalledApps.html) for Google Adwords API v200909. We have a question when the response for this authentication request contains CaptchaRequired error code. In this event, will the account get unclocked by itself (without we having to unlock manually using the CaptchaToken and CaptchaUrl) after a while? If so, how long does it take to unlock automatically? Please let us know. Thanks! -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
AdWords API Getting Campaign statistics with the 200909 API
So, the migration guide for the 200909 API says to replace this call: campaign_service.GetCampaignStats(campaign_id, '2009-01-01', '2009-01-31') use this: selector = { 'ids': [campaign_id], 'statsSelector': { 'dateRange': { 'max': '20090131', 'min': '20090101' } } } campaign_service.Get(selector) GetCampaignStats used to return a StatsRecord with these fields: averagePosition, clicks, conversionRate, conversions, cost, id, and impressions All I get from the campaign_service.Get(selector) call (this is using suds in Python): selector = ga.factory.create('CampaignSelector') selector.ids.append(campagain[some valid id]) selector.statsSelector.dateRange.min = '20100301' selector.statsSelector.dateRange.max = '20100331' print ga.service.get(selector) is: (CampaignPage){ totalNumEntries = 0 Page.Type = CampaignPage totalBudget = (Budget){ period = DAILY amount = (Money){ ComparableValue.Type = Money microAmount = 0 } deliveryMethod = STANDARD } } I see that the CampaignService has an object named Stats which has all the aforementioned fields, but there is no indication on how to retrieve that object for a campaign. How do I do a call that will retrieve a Stats object, and thus the information I need? The documentation is very unclear here. By the way, if I try to use ga.service.Get(...), suds reports: Method not found: 'CampaignService.CampaignServiceInterfacePort.Get' In fact, in the wsdl file, on line 3352 (CampaignService.wsdl for 200909), the operation is defined as: wsdl:operation name=get (lower case 'G'). Same for 'mutate.' It would seem the documentation is incorrect in this case. Thanks! j -- Joshua Kugler Part-Time System Admin/Programmer http://www.eeinternet.com PGP Key: http://pgp.mit.edu/ ID 0x73B13B6A -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
AdWords API Re: EntityNotFound.INVALID_ID
Hi Morten, Can you confirm that this ad group id is valid? Can you confirm that you are using the correct credentials? Best, - Eric On Mar 15, 7:20 pm, Morten Blinksbjerg Nielsen morten.blinksbjerg.niel...@gmail.com wrote: I'm still having problems. I use the PHP library, and I've just upgraded to version 2.0.1. My code is based on examples/AddAds.php. Basicly I just changes $adGroupId to match one of my groups. I can create campains and groups, but not ads. Hope someone can help :-) Let me know what more info you'll need if any? SoapFault Object ( [message:protected] = [EntityNotFound.INVALID_ID @ operations[0].operand.adGroupId; trigger:'AdGroupId: 1268524965'] -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
AdWords API Re: Adword API import
Hi Hudar, We are also looking into enabling OAuth for the AdWords API, but at this time we recommend using the ClientLogin API. Best, - Eric Koleda, AdWords API Team On Mar 16, 5:20 pm, Peer Jakobsen (AdWords API Guru) peer.jakob...@gmail.com wrote: You can access an adwords account in 2 ways through the API 1. Get their account linked to your MCC and use the clientEmail or accountid to access the account (no need for password) 2. Use a login/password directly (no need to link into your MCC) Cheers -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
AdWords API Re: How can use code Get Site By Topic
Hi, To use the AdWords API you need an AdWords account and you have to register to use the API. Best, - Eric Koleda, AdWords API Team On Mar 16, 8:23 am, kobold3012 duytrung3...@gmail.com wrote: I'm student, i have exercise to get sites by topic, now i found in code.google.com this code by link :http://code.google.com/p/adwords- api-dotnet-samples/source/browse/trunk/src/GetSitesByTopics.cs , but in this code i haven't understand this fragment: private static String email = INSERT_LOGIN_EMAIL_HERE; private static String password = INSERT_PASSWORD_HERE; private static String clientEmail = INSERT_CLIENT_LOGIN_EMAIL_HERE; private static String useragent = INSERT_COMPANY_NAME: AdWords API DotNet Sample Code; private static String developerToken = INSERT_DEVELOPER_TOKEN_HERE; private static String applicationToken = INSERT_APPLICATION_TOKEN_HERE; - variable email : this is my email? - variable clientEmail: it's too my email? - variable password: password for this email? - variable useragent, developerToken, applicationToken: what are they??, how i can get them? I'm waitting for answer! Thank you very much! -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
Re: AdWords API Getting Campaign statistics with the 200909 API
On Wednesday 17 March 2010, Joshua J. Kugler elucidated thus: All I get from the campaign_service.Get(selector) call (this is using suds in Python): (CampaignPage){ totalNumEntries = 0 Page.Type = CampaignPage totalBudget = (Budget){ period = DAILY amount = (Money){ ComparableValue.Type = Money microAmount = 0 } deliveryMethod = STANDARD } } OK, I from a v13 API call that I don't have any campaigns available to me...so, that answers part of my question, BUT when I specify an id in getCampaign (v13) it tells me I can't access that campaign. When I do that for v200909, it just returns zero records and doesn't tell me why. Not very friendly. :) I see that the CampaignService has an object named Stats which has all the aforementioned fields, but there is no indication on how to retrieve that object for a campaign. How do I do a call that will retrieve a Stats object, and thus the information I need? OK, so I understand now that if results are returned, they'll include a Stats object...got it. In fact, in the wsdl file, on line 3352 (CampaignService.wsdl for 200909), the operation is defined as: wsdl:operation name=get (lower case 'G'). Same for 'mutate.' It would seem the documentation is incorrect in this case. Sigh...I could have sworn the docs were saying Get, but I guess not. They are saying GetSomething for the old calls when the correct call is getSomething, though. :) So, a couple of questions answered, one still outstanding. :) j -- Joshua Kugler Part-Time System Admin/Programmer http://www.eeinternet.com PGP Key: http://pgp.mit.edu/ ID 0x73B13B6A -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
AdWords API Re: AuthenticationError.CLIENT_EMAIL_INVALID
Hi Jeff, Can you post the value of the requestId header that comes back in the SOAP XML response when you get this error? Best, - Eric On Mar 16, 2:05 pm, Achal Rastogi semr...@gmail.com wrote: Hi Eric, I just upgraded our java client lib to 7.1.0. It resolved the memory issue but I am still seeing a lot of AuthenticationError.CLIENT_EMAIL_INVALID errors which failed our bid update. Any suggestion on a workaround? thanks Jeff On Mar 15, 7:17 am, AdWords API Advisor adwordsapiadvi...@google.com wrote: Hi Jeff, We recently pushed out an update that should help resolve these types of errors. Please run your test again and let us know if you run into any problems. Best, - Eric Koleda, AdWords API Team On Mar 12, 6:29 pm, jeff hl5...@gmail.com wrote: got the error below during bid value update while we were stress testing api 2009 migration. weird thing is it is intermittent for the same email/account. Caused by: AuthenticationError.CLIENT_EMAIL_INVALID@ ; trigger:'sam +go...@... we simply propagate the email to the credentials map like this: credentials.put(clientId, clientMail); any idea on what might be wrong? thanks Jeff -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
AdWords API Re: Issue Updating TextAd
Hi Pete, Peer is correct, only the status of an ad can be updated. There is simple way to remember what's mutable and what's not for ads and criteria: the outer object is mutable, the inner object isn't. AdGroupAd { // mutable Ad // not mutable } AdGroupCrierion { //mutable Criterion // not mutable } Best, - Eric Koleda, AdWords API Team On Mar 16, 5:15 pm, Peer Jakobsen (AdWords API Guru) peer.jakob...@gmail.com wrote: Only the status property can be updated on ads. If you want to update the other properties then you have to delete and recreate. Cheers -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
AdWords API Re: mutate and errors
Hi, For failed requests, the SOAP fault will include an ApiException, which will include an array of ApiErrors, one for each error that occurred. The ApiError contains a fieldPath, which will indicate which operation and possibly which specific field caused the error. You can parse this information and handle the problems accordingly. http://code.google.com/apis/adwords/v2009/docs/reference/CampaignService.ApiException.html Best, - Eric Koleda, AdWords API Team On Mar 16, 5:40 pm, SW ga...@structuredweb.com wrote: Hi, Peer Thank you for the quick answer. The api throws an error when try to mutate a list of operations. Do I have to parse the errors to find out which ones failed or there is other method/way to get the failed operations? Thank you again On Mar 16, 5:22 pm, Peer Jakobsen (AdWords API Guru) peer.jakob...@gmail.com wrote: The whole request will be ignored (nothing will get updated). You can then set exemption requests on the failed operations and then resend the whole operation array or you can remove the operations that failed from the array and resend it. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
AdWords API Re: Keyword CPC in v2009
Hi, The TrafficEstimatorService is not yet available in the v2009 version of the API. For now we recommend using the v13 version of this service for getting traffic estimates. Best, - Eric On Mar 16, 6:37 pm, iGods camer...@igods.com wrote: chiming in late in the game... has this functionality been restored to the API in v2009? thanks. On Feb 26, 8:36 am, AdWords API Advisor adwordsapiadvi...@google.com wrote: Hi, The TargetingIdeaService does not return estimated CPC values. This can be done using the TrafficEstimatorService, which hasn't yet been migrated to v2009. Best, - Eric Koleda, AdWords API Team On Feb 25, 4:49 am, Evgeniy Bogdanov bogda...@tagan.ru wrote: Hi. I didn't found the way to get Cost-per-Click values for keyword as it does estimateKeywordList in v13. Is where any method to get this data in v2009? -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
AdWords API Re: Help parsing ApiException
Hi Ram, The subclasses of ApiError contains the reason. For example, DateError has a reason field: http://code.google.com/apis/adwords/v2009/docs/reference/CampaignService.DateError.html To get the index of the operation you need to parse the OGNL value in the fieldPath. A simple way to get the operation index is to use a regular expression like ^operations\[(\d+)\]. Best, - Eric Koleda, AdWords API Team On Mar 16, 9:35 pm, Ram raghuram@gmail.com wrote: I am trying to parse the ApiException returned by v2009 APIs and match the errors to appropriate operation index. I can manually parse the faultString and figure out which operations have errors, but I am trying to build a generic Java routine that works for all types of errors. I understand OGNL can help with this but doesn't seem to work well for my requirements. What i want to do is, in Java, build a map of operation index and a list of errors returned for that operation. It would have been great if I could get the reason and operationIndex directly from ApiError class. Any pointers and help is appreciated. Thanks, Ram -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
AdWords API Re: Using TargetingIdeaSelector without the Client Library (PHP)
Hi, In general we recommend using the AdWords API PHP client library, since it simplifies some of the more complicated interactions with the API. It's difficult to determine what the problem is without seeing the generated SOAP XML request and response, can you capture this? Or perhaps the requestId header from the response? Best, - Eric Koleda, AdWords API Team On Mar 16, 7:31 pm, CodeCrapht r...@ryanadami.com wrote: I have been searching for answers and testing my code for days, but still don't have it working. This article is a great start for information about using the v200909 Google AdWords API without the Client Library, but it's hard to translate the sample code to other API functions: http://code.google.com/p/google-api-adwords-php/wiki/NoClientLibrary I'm working with our analytics team to extract some keyword data (alternate keyword variations and monthly search estimates) and would rather not install the whole library. Seems like a lot of extra code and files for such limited use of the API. Please let me know if this thought is incorrect. Here is my PHP code making the request (the SOAP error output is below): ?php error_reporting(E_STRICT | E_ALL); require_once('AuthToken.php'); class Paging { function Paging($startIndex = 0, $numberResults = 10) { $this-startIndex = $startIndex; $this-numberResults = $numberResults; } } class TargetingIdeaSelector { function TargetingIdeaSelector($searchParameters) { $this-searchParameters = array($searchParameters); $this-ideaType = KEYWORD; $this-requestType = IDEAS; $this-paging = new Paging(); } } class RelatedToKeywordSearchParameter { function RelatedToKeywordSearchParameter($keywords) { $this-keywords = $keywords; } } class Keyword { function Keyword($text, $matchType) { $this-text = $text; $this-matchType = $matchType; } } // Provide AdWords login information. $email = 'INSERT_LOGIN_EMAIL_HERE'; $password = 'INSERT_PASSWORD_HERE'; $client_email = 'INSERT_CLIENT_LOGIN_EMAIL_HERE'; $userAgent = 'INSERT_COMPANY_NAME: AdWords API PHP Code Example'; $developerToken = 'INSERT_DEVELOPER_TOKEN_HERE'; $applicationToken = 'INSERT_APPLICATION_TOKEN_HERE'; // Create authToken $authToken = new AuthToken($email, $password, 'adwords', 'PHP Sample Code', 'GOOGLE'); // Set SOAP and XML settings. To send requests to production environment $wsdl = 'https://adwords.google.com/api/adwords/o/v200909/ TargetingIdeaService?wsdl'; $namespace = 'https://adwords.google.com/api/adwords/o/v200909'; $options = array( 'features' = SOAP_SINGLE_ELEMENT_ARRAYS, 'encoding' = 'utf-8'); // Get the TargetingIdeaService $targetingIdeaService = new SoapClient($wsdl, $options); // Set headers $headers = new SoapHeader($namespace, 'RequestHeader', array( 'authToken' = $authToken-GetAuthToken(), 'clientEmail' = $client_email, 'userAgent' = $userAgent, 'developerToken' = $developerToken, 'applicationToken' = $applicationToken)); $targetingIdeaService-__setSoapHeaders($headers); try { // Get related keywords $keywords = array(new Keyword(mars cruise, BROAD)); $selector = new TargetingIdeaSelector(new RelatedToKeywordSearchParameter($keywords)); $response = $targetingIdeaService-get(array(selector = $selector)); // for Output Testing //print_r($selector); //exit; // Display related keywords. if (isset($response-entries)) { foreach ($response-entries as $targetingIdea) { $keyword = $targetingIdea-data[0]-value-value; print 'Keyword with text ' . $keyword-text . ' and match type ' . $keyword-matchType . \ was found.\n; } } else { print No related keywords were found.\n; }} catch (Exception $e) { print_r($e); } ? SoapFault exception: SoapFault exception: [soap:Server] Unmarshalling Error: Unable to create an instance of com.google.ads.api.services.targetingideas.v200909.jaxbgen.SearchParameter in /var/www/vhosts/nonbot.com/httpdocs/tools/_dev/google-api_kwd.php: 68 Stack trace: #0 [internal function]: SoapClient-__call('get', Array) #1 /var/www/vhosts/nonbot.com/httpdocs/tools/_dev/google- api_kwd.php(68): SoapClient-get(Array) #2 {main} THANK YOU! -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 Re: Clarifications needed on ClientLogin API and AuthenticationError for v200909
Hi, To address your questions: a) Auth tokens expire after 2 weeks, or when a user changes the password on their account. b) The reason returned for an expired auth token is LOGIN_COOKIE_INVALID, which isn't immediately obvious. We are working on improving the documentation to make this more clear. Best, - Eric Koleda, AdWords API Team On Mar 16, 9:00 pm, SEM sem...@gmail.com wrote: We use the ClientLogin RESTful API for authentication (http:// code.google.com/apis/accounts/docs/AuthForInstalledApps.html) for Google Adwords API v200909. As recommended, we plan on caching the authtoken returned by the ClientLogin API for subsequent use in AdWords API calls. A few questions arise with regards to this implementation: a. What are the criteria that cause an authtoken to change? e.g. expiration after a set duration of time, user manually changed his login credentials, etc. b. Subsequently, after an authtoken changes, when we attempt to use a previously cached value, we would probably get an AuthenticationError via a SOAP response. The various reasons for this as enumerated (as perhttp://code.google.com/apis/adwords/v2009/docs/reference/AdGroupAdSer...) are... AUTHENTICATION_FAILED CLIENT_CUSTOMER_ID_IS_REQUIRED CLIENT_EMAIL_REQUIRED CLIENT_CUSTOMER_ID_INVALID CLIENT_EMAIL_INVALID CLIENT_EMAIL_FAILED_TO_AUTHENTICATE CUSTOMER_NOT_FOUND GOOGLE_ACCOUNT_DELETED GOOGLE_ACCOUNT_COOKIE_INVALID FAILED_TO_AUTHENTICATE_GOOGLE_ACCOUNT GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH LOGIN_COOKIE_REQUIRED NOT_ADS_USER OAUTH_TOKEN_INVALID OAUTH_TOKEN_EXPIRED OAUTH_TOKEN_DISABLED OAUTH_TOKEN_REVOKED OAUTH_TOKEN_HEADER_INVALID LOGIN_COOKIE_INVALID FAILED_TO_RETRIEVE_LOGIN_COOKIE USER_ID_INVALID Unfortunately, the documentation isn't very clear about what causes each of these failure reasons to occur. e.g. if the token is invalidated by Google after a set period of time, which of the following AuthenticationError.Reason would we get: AUTHENTICATION_FAILED? OAUTH_TOKEN_INVALID? OAUTH_TOKEN_EXPIRED? LOGIN_COOKIE_INVALID? FAILED_TO_RETRIEVE_LOGIN_COOKIE? We need this information to determine whether we should 'automatically retry' a ClientLogin request with the original login credentials (and follow it up with the failed SOAP request) or whether the process should be aborted. Any help on this is appreciated. Thank you! -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
AdWords API [JAVA] validation code on campaign still returns null
Hi, I've written some code to validate campaigns before submitting them to the google platform. That was working but this morning the mutate function still return null. Here's the code: - try { [...] //Campaign VALIDATION service CampaignServiceInterface campaignServiceInterface = (CampaignServiceInterface)user.getValidationService(AdWordsService.V200909.CAMPAIGN_SERVICE); Campaign campaign = new Campaign(); campaign.setName(...); [...] CampaignOperation operation = new CampaignOperation(); operation.setOperand(campaign); operation.setOperator(Operator.ADD); //The return value here is always null CampaignReturnValue result = campaignServiceInterface.mutate(new CampaignOperation[] {operation}); campaignId = result.getValue()[0].getId(); // No policy violations found, finishing without exception. } catch (ApiException e) { [...] - Hope someone could help. Thanks -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
AdWords API Re: validation code on campaign still returns null
I can add that this case doesn't happen with the non-validation service (sandbox and production environments). Is there any problem with the validation service ? On Mar 18, 2:16 pm, Qmeapi qme...@gmail.com wrote: Hi, I've written some code to validate campaigns before submitting them to the google platform. That was working but this morning the mutate function still return null. Here's the code: - try { [...] //Campaign VALIDATION service CampaignServiceInterface campaignServiceInterface = (CampaignServiceInterface)user.getValidationService(AdWordsService.V200909.CAMPAIGN_SERVICE); Campaign campaign = new Campaign(); campaign.setName(...); [...] CampaignOperation operation = new CampaignOperation(); operation.setOperand(campaign); operation.setOperator(Operator.ADD); //The return value here is always null CampaignReturnValue result = campaignServiceInterface.mutate(new CampaignOperation[] {operation}); campaignId = result.getValue()[0].getId(); // No policy violations found, finishing without exception. } catch (ApiException e) { [...] - Hope someone could help. Thanks -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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