AdWords API seed keyword help
Would appreciate any help you could provide with this issue. i am basically trying to develop a simple application to take a user's input of seed keyword from a php form and then passing that seed keyword into the example get keyword variations php file that makes the call to the google api. however, whenever i try to pass the form variable for the seed keyword directly from the POST into the actual xml, i get an error message. i have researched xml and php on google and cant seem to come up with anything useful. the error message isnt particularly helpful or specific. it is "Warning: Invalid argument supplied for foreach() in / home/outofbo1/public_html/GAW/My_write_keyword_variations.php on line 76". the xml code that i am using is based on code examples provided by google. i am using the code below as part of the php 'action' file for processing a simple form that asks the user what keyword they want to analyze. then i pass that value into the code as shown in example two below. example one below shows the (partial) code that works when i simply 'hard code' the keyword to test the functionality ('keyword manually entered here') example one: $request_xml = '' . '' . keyword manually entered here. '' . ''; $estimates = $estimator_service->call('checkKeywordTraffic', $request_xml); example two (code that doesnt work); $MyKeyword = $_POST["MyKeyword"] $request_xml = '' . '' . $MyKeyword . '' . ''; $estimates = $estimator_service->call('checkKeywordTraffic', $request_xml); i am thinking the issue is that you cant simple pass a variable's value into an xml statement but that i will have to take the form input, generate the entire $request_xml statement and then include that as a separate file. any ideas or did i confuse you with my horrible explanations as usual? :) thanks in advance, jay wilner --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en -~--~~~~--~~--~--~---
AdWords API Re: Query on adgroup creation
Hello, Ad groups fully support both Website and Keyword criteria. You can ad both types of criteria to ad groups with CPC bidding using the AdWords API. One thing to keep in mind is that you should make sure that your ad group has both a keywordMaxCpc and a siteMaxCpc value set if you're going to add both types of criteria to the ad group. A common source of frustration is trying to add a Website criterion to an ad group that does not have a siteMaxCpc attribute set, which currently results in a misleading error message. We've been thinking about putting together a blog post to go over exactly what needs to be done when combining Keywords and Websites in the same ad group, but the most important thing is to set both keywordMaxCpc and siteMaxCpc. I know our documentation team has gone through the AdWords API guide once before to reflect the fact that Website and Keyword criteria are both supported in the same ad group now, but I just checked again and I see some erroneous information is still up at http://code.google.com/apis/adwords/docs/developer/adwords_api_services.html I'll make sure that's brought to their attention. If there are any other references still there, let me know. Cheers, -Jeff Posnick, AdWords API Team On Oct 22, 2:10 pm, JVR <[EMAIL PROTECTED]> wrote: > Adword center allows a user to specify keywords while targeting a list > of sites on the content network (Placement targeting on the content > network). However, the API says that a given campaign can be either > website targeted or keyword targeted. > Is there a way to target a website for an ad and also provide a > set of keywords in v13 of the API? > > If not, when can this feature be expected in the API? > > Any help on this will be greatly appreciated. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en -~--~~~~--~~--~--~---
AdWords API Query on adgroup creation
Adword center allows a user to specify keywords while targeting a list of sites on the content network (Placement targeting on the content network). However, the API says that a given campaign can be either website targeted or keyword targeted. Is there a way to target a website for an ad and also provide a set of keywords in v13 of the API? If not, when can this feature be expected in the API? Any help on this will be greatly appreciated. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en -~--~~~~--~~--~--~---
AdWords API Re: One or more input elements failed validation.
Hello, There's been a recent change to the Sandbox environment to ensure that local business ads use mock images that are of the appropriate dimensions. The hope is that this will work around the issues that folks had with testing local business ad creation in the Sandbox. Can anyone who was experiencing trouble check and see whether they're now able to successfully check/create local business ads in the Sandbox? Cheers, -Jeff Posnick, AdWords API Team On Sep 23, 5:53 pm, Deifante Jay Walters <[EMAIL PROTECTED]> wrote: > Do you know if there exists a work around for this issue? It is my > current understanding that the company I represent will not be > provided production keys until our system is working in a test > environment. Our current application deals exclusively with Local > Business ads and I'm under the understanding that an image is required > by the api. > Please advise. thanks > > On Sep 19, 11:43 am, AdWords API Advisor > > <[EMAIL PROTECTED]> wrote: > > Hello, > > > I have the bug filed with the engineering team and it should get some > > attention, though issues with theSandboxusually are of a lower > > priority than issues that affect the Production environment. > > > I have a feeling that this might end up being related to the mocked- > > out Image service that's active in theSandboxenvironment: > > > http://www.google.com/apis/adwords/developer/adwords_api_sandbox.html... > > > In that if a 468x60 image is being used regardless of what is actually > > uploaded, it would make sense that the invalid image dimensions > > exception is being thrown. That being said, I can't confirm that for > > sure and I will post when I get some definitive information from the > > engineering team. > > > Cheers, > > -Jeff Posnick, AdWords API Team > > > On Sep 19, 1:36 pm, Deifante Jay Walters <[EMAIL PROTECTED]> wrote: > > > > hey, > > > > I'm wondering what has become of this issue. I'm currently > > > experiencing the same issue. I'm on the sand box and we don't have > > > production keys quite yet. > > > > On Sep 5, 12:34 am, veseo <[EMAIL PROTECTED]> wrote: > > > > > Hello, > > > > > We will probably test it someday next week and I will report the > > > > results, being successfull or not. Thanks for your help! > > > > > On Sep 4, 7:15 pm, AdWords API Advisor <[EMAIL PROTECTED]> > > > > wrote: > > > > > > Okay, great. If you can confirm that things are working in Production > > > > > I'll bring the discrepancy with theSandboxenvironment to the > > > > > attention of the engineering team. > > > > > > Cheers, > > > > > -Jeff Posnick, AdWords API Team > > > > > > On Sep 4, 2:51 am, veseo <[EMAIL PROTECTED]> wrote: > > > > > > > Hello, > > > > > > > Sorry for not clarifying that before, yes, I'm trying that inSandbox > > > > > > environment. I guess then really discrepancies between theSandboxand > > > > > > Production environments are causing the issues. Again, sorry for not > > > > > > clarifying that again and thanks for your help, I think we are close > > > > > > to "unraveling the mystery" :) > > > > > > > On Sep 3, 6:05 pm, AdWords API Advisor <[EMAIL PROTECTED]> > > > > > > wrote: > > > > > > > > Hello, > > > > > > > > Sorry for the delay in getting back to you. Unfortunately, we > > > > > > > can't > > > > > > > find any records of that request id in our Production logs--are > > > > > > > you > > > > > > > making your requests against theSandboxenvironment by any chance? > > > > > > > I > > > > > > > should have enquired about that earlier, because perhaps the > > > > > > > issues > > > > > > > you're running into are due to discrepancies between theSandboxand > > > > > > > Production environments. > > > > > > > > The sample requests I've been passing along work against the > > > > > > > Production environment, based on my tests. Can you ensure that > > > > > > > you're > > > > > > > trying them in Production? > > > > > > > > If there is a discrepancy between theSandboxand Production then > > > > > > > that is obviously something that we'll try to resolve, but it's a > > > > > > > different issue from what we were initially looking into. > > > > > > > > Cheers, > > > > > > > -Jeff Posnick, AdWords API Team > > > > > > > > On Aug 28, 2:59 am, veseo <[EMAIL PROTECTED]> wrote: > > > > > > > > > Hello, > > > > > > > > > Thanks for the answer. No luck using either customIcon nor > > > > > > > > stockIcon. > > > > > > > > I even (by mistake) tried using stockIcon with an > > > > > > > > element and > > > > > > > > it threw, as expected, "SimpleDeserializer encountered a child > > > > > > > > element, which is NOT expected, in something it was trying to > > > > > > > > deserialize" error. Here are two of the requests, > > > > > > > > > > > > > > > > soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next"; > > > > > > > > soapenv:mustUnderstand="0" > > > > > > > > xmlns="https://adwords.google.com/api/ > > > > > > > > adwords/v12">54fda046368de341df11f2bf42f3a9da > > > > > > > >
AdWords API Re: first page bid
Hello Tim, All of the changes to reports apply to both v12 and v13, including the new report types and the additional columns. So there isn't any difference between the current version of the v12 and v13 documentation for that page. The release notes mention that the new reports are available in v12: http://code.google.com/apis/adwords/docs/developer/releasenotes.html but I can confirm that the first page cpc and quality score columns are available in v12 as well, and the docs reflect that. Cheers, -Jeff Posnick, AdWords API Team On Oct 22, 10:51 am, timprepscius <[EMAIL PROTECTED]> wrote: > documentation bug.. > > So you go > to:http://code.google.com/apis/adwords/docs/developer/adwords_api_report... > > And it says in that upper right hand pull down "v13" > > Within that pull down it says "diffs" > But there are none! > > Oh well, there must have been _no_ changes between v12 and v13.. > > -tim > > On Oct 21, 4:10 am, Christian Krahn <[EMAIL PROTECTED]> wrote: > > > The new API version has been released and a new field "firstPageCpc" > > has been introduced. > > > Regards, > > Christian --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en -~--~~~~--~~--~--~---
AdWords API Re: Problems with Sandbox Testing
Hello Sachin, The code sample you pasted below is not from the Java client library. It's taken from the sample code that we make available to serve as a reference implementation and link to from the AdWords API documentation. If you're looking for standalone code that will work both in the Sandbox and Production environment with minimal changes, please try the Java client library, available at http://code.google.com/p/google-api-adwords-java/ To answer your specific question about namespaces, the namespace is identical (http://adwords.google.com/...) regardless of whether you're making a request to the Sandbox or Production environments. The only thing that differs is the URL of the SOAP endpoint that you're contacting. But if you use the Java client library then you normally would not have to worry about those details. Cheers, -Jeff Posnick, AdWords API Team On Oct 22, 5:44 am, Sachin <[EMAIL PROTECTED]> wrote: > I am facing a problem with Sandbox.. calls to the sandbox throws the > error that \\" The request did not contain a header named 'email. \\". > I have appended the main program that i m using to make the API calls > to Sandbox. > > I m not sure about the "namespace" that i have to use, as while > debugging i see the adwords namespace "adwords.google.com" hard-coded > in each of the calls in the source-code, thats provided along-with the > client library. > > I suppose these should point to "sandbox.google.com" as i wish to make > calls to Sandbox. Or is there is some other client library for sandbox > calls. > > These are the code samples i found confusing in the source code. > --- > 1. private java.lang.String AccountService_address = "https:// > adwords.google.com/api/adwords/v12/AccountService"; > > 2. _call.setOperationName(new javax.xml.namespace.QName("https:// > adwords.google.com/api/adwords/v12", "getAccountInfo")); > > > public class AdwordClient { > // Provide AdWords login information. > private static final String email = "[EMAIL PROTECTED]"; > private static final String password = "password"; > private static final String useragent = "ANY VALUE"; > private static final String clientEmail = "client_1"+email; > private static final String developerToken = email+"++INR"; > private static final String applicationToken = email+"++INR"; > private static final String namespace = "https:// > sandbox.google.com/api/adwords/v12"; > > public static void main(String[] args) { > try { > // Set up service connection. > AccountInterface service = new > AccountServiceLocator().getAccountService(); > > // Define SOAP headers. > ((Stub) service).setHeader(namespace, "email", email); > ((Stub) service).setHeader(namespace, "password", > password); > ((Stub) service).setHeader(namespace, "clientEmail", > clientEmail); > ((Stub) service).setHeader(namespace, "useragent", > useragent); > ((Stub) service).setHeader(namespace, "developerToken", > developerToken); > ((Stub) service).setHeader(namespace, "applicationToken", > applicationToken); > > // Get account info. > AccountInfo accountInfo = service.getAccountInfo(); > > // Display account info. > System.out.println("Account name is \"" > + accountInfo.getDescriptiveName() + "\", id is > \"" > + accountInfo.getCustomerId() + "\", and currency > code is \"" > + accountInfo.getCurrencyCode() + "\"."); > > } catch (Exception e) { > e.printStackTrace(); > } > } > > === > Please clarify my doubts. > > Thanks in Advance, > Sachin --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en -~--~~~~--~~--~--~---
AdWords API Re: getUnitCountForMethod returning 0
Hello Martin, I think you're misunderstanding the purpose of the getUnitCountForMethod() call; please see the docs at http://code.google.com/apis/adwords/docs/developer/InfoService.html#getUnitCountForMethod getUnitCountForMethod() will return the number of API units you've actually consumed making a specific API call over a period of time. It's not used as an estimate of how many units it would cost to make a hypothetical API call in the future. getAllCriteria() is priced at 1 API unit per criterion returned. You're obviously in a chicken-or-the-egg situation if you want to estimate how many units it would cost to call getAllCriteria(), as you'd either have to call getAllCriteria() or run a report to get that information... Cheers, -Jeff Posnick, AdWords API Team On Oct 22, 10:34 am, MartinHN <[EMAIL PROTECTED]> wrote: > Hi > > I want to get the price of CriterionService.getAllCriteria, to > determine if it is cheaper to schedule and download a report. > > If I call the InfoService.getUnitCountForMethod("CriterionService", > "getAllCriteria", dateFrom, dateTo) - I just get 0. I guess I have to > provide an AdGroup ID, or something - hwo can I do that? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en -~--~~~~--~~--~--~---
AdWords API Re: Placement CPC report error
Hello Igor, Someone else brought this up with the reports team recently, and they're planning on resolving the bug in a future release. I'm afraid that I can't provide any details about when that might occur. Please note that this is not an issue specific to reports scheduled with the AdWords API; if you schedule a report with the AdWords web interface you'll see the same erroneous maxCPC values for Placement/ Website criteria as well. Cheers, -Jeff Posnick, AdWords API Team On Oct 22, 6:34 am, IgorAG <[EMAIL PROTECTED]> wrote: > I faced a problem. > > Structure placement/keyword report and > Placement/Keyword Performance Report > return keyword default maxCPC > for placements with default bid > instead of default content bid. > > So I am not able to get right bids via Report service. > > Google AdWords UI displays right price. > Data in report XML are wrong. > > For example: > An AdGroup has default keyword price 0.22 and default content bid 0.33 > A placement inside this AdGroup doesn't have its own price and is > dispalyed in AdWords UI with current bid 0.33 > > A XML fragment from one report for this placement is: > > A XML fragment from second report for this placement is: > maxCpm="0"> > > v12 and v13 results are the same. > And I suppose this results not normal. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en -~--~~~~--~~--~--~---
AdWords API Re: first page bid
documentation bug.. So you go to: http://code.google.com/apis/adwords/docs/developer/adwords_api_report_keyword.html And it says in that upper right hand pull down "v13" Within that pull down it says "diffs" But there are none! Oh well, there must have been _no_ changes between v12 and v13.. -tim On Oct 21, 4:10 am, Christian Krahn <[EMAIL PROTECTED]> wrote: > The new API version has been released and a new field "firstPageCpc" > has been introduced. > > Regards, > Christian --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en -~--~~~~--~~--~--~---
AdWords API getUnitCountForMethod returning 0
Hi I want to get the price of CriterionService.getAllCriteria, to determine if it is cheaper to schedule and download a report. If I call the InfoService.getUnitCountForMethod("CriterionService", "getAllCriteria", dateFrom, dateTo) - I just get 0. I guess I have to provide an AdGroup ID, or something - hwo can I do that? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en -~--~~~~--~~--~--~---
AdWords API Re: keyword variations - negative keywords returned in output for this request
Jeff, It's fixed. Also, thank you for the great new release! Borcho On Oct 21, 10:49 am, AdWords API Advisor <[EMAIL PROTECTED]> wrote: > Hello Boris, > > Could you give it another try? I believe negative keywords should be > working as intended now. To test, I ran > > > > false > purses > Broad > > > true > leather > Broad > > false > en > US > > > and none of the results came back with the word "leather" in them. If > you have a counter-example of a getKeywordVariations() call that does > not appear to be working as expected right now, let me know. > > Cheers, > -Jeff Posnick, AdWords API Team > > On Oct 16, 10:46 am, AdWords API Advisor > > <[EMAIL PROTECTED]> wrote: > > Hello Boris, > > > I wanted to let you know that the engineering team has traced the > > source of the bug back to some faulty logic in the keyword variations > > code. They're planning on fixing it, but I am afraid I can't provide a > > timeline as to when that will go live. > > > Cheers, > > -Jeff Posnick, AdWords API Team > > > On Oct 2, 12:31 pm, borcho <[EMAIL PROTECTED]> wrote: > > > > Jeff, > > > > Thanks for your response. I retested the query using the out of the > > > box Apility library - same result. Let me know if you hear anything > > > from the engineers or need additional info. > > > > Best regards, > > > > Boris > > > > On Oct 2, 11:46 am, AdWords API Advisor <[EMAIL PROTECTED]> > > > wrote: > > > > > Hello Boris, > > > > > That doesn't look like the correct behavior to me. I'll open a bug > > > > about it and let you know what I hear back. > > > > > As an aside, you don't need to include the same language and country > > > > value multiple times. You can just list "en" and "US" once. That > > > > shouldn't be causing the behavior you're seeing, though. > > > > > Cheers, > > > > -Jeff Posnick, AdWords API Team > > > > > On Oct 1, 12:08 am, borcho <[EMAIL PROTECTED]> wrote: > > > > > > Hi, > > > > > > I am using KeywordVariations to request similar keywords and I get > > > > > some of thenegativekeywords in the result. For example, I submit the > > > > > request below and I get keywords such as "leather purses", "discount > > > > > leather purses". What am I doing wrong? Any help will be greatly > > > > > appreciated. > > > > > > false > > > >negative>pursesBroad > > > > seedKeywords>trueleather > > > > > pursesBroad > > > > seedKeywords>truesmall > > > > text>Broadtrue > > > >negative>coolBroad > > > > seedKeywords>truepatterns > > > > text>Broadtrue > > > >negative>discountBroad > > > > seedKeywords>trueen > > > > languages>enen > > > > languages>enen > > > > languages>enUS > > > > countries>USUS > > > > countries>USUS > > > > countries>US > > > > > > Boris --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en -~--~~~~--~~--~--~---
AdWords API Placement CPC report error
I faced a problem. Structure placement/keyword report and Placement/Keyword Performance Report return keyword default maxCPC for placements with default bid instead of default content bid. So I am not able to get right bids via Report service. Google AdWords UI displays right price. Data in report XML are wrong. For example: An AdGroup has default keyword price 0.22 and default content bid 0.33 A placement inside this AdGroup doesn't have its own price and is dispalyed in AdWords UI with current bid 0.33 A XML fragment from one report for this placement is: A XML fragment from second report for this placement is: v12 and v13 results are the same. And I suppose this results not normal. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en -~--~~~~--~~--~--~---
AdWords API Problems with Sandbox Testing
I am facing a problem with Sandbox.. calls to the sandbox throws the error that \\" The request did not contain a header named 'email. \\". I have appended the main program that i m using to make the API calls to Sandbox. I m not sure about the "namespace" that i have to use, as while debugging i see the adwords namespace "adwords.google.com" hard-coded in each of the calls in the source-code, thats provided along-with the client library. I suppose these should point to "sandbox.google.com" as i wish to make calls to Sandbox. Or is there is some other client library for sandbox calls. These are the code samples i found confusing in the source code. --- 1. private java.lang.String AccountService_address = "https:// adwords.google.com/api/adwords/v12/AccountService"; 2. _call.setOperationName(new javax.xml.namespace.QName("https:// adwords.google.com/api/adwords/v12", "getAccountInfo")); public class AdwordClient { // Provide AdWords login information. private static final String email = "[EMAIL PROTECTED]"; private static final String password = "password"; private static final String useragent = "ANY VALUE"; private static final String clientEmail = "client_1"+email; private static final String developerToken = email+"++INR"; private static final String applicationToken = email+"++INR"; private static final String namespace = "https:// sandbox.google.com/api/adwords/v12"; public static void main(String[] args) { try { // Set up service connection. AccountInterface service = new AccountServiceLocator().getAccountService(); // Define SOAP headers. ((Stub) service).setHeader(namespace, "email", email); ((Stub) service).setHeader(namespace, "password", password); ((Stub) service).setHeader(namespace, "clientEmail", clientEmail); ((Stub) service).setHeader(namespace, "useragent", useragent); ((Stub) service).setHeader(namespace, "developerToken", developerToken); ((Stub) service).setHeader(namespace, "applicationToken", applicationToken); // Get account info. AccountInfo accountInfo = service.getAccountInfo(); // Display account info. System.out.println("Account name is \"" + accountInfo.getDescriptiveName() + "\", id is \"" + accountInfo.getCustomerId() + "\", and currency code is \"" + accountInfo.getCurrencyCode() + "\"."); } catch (Exception e) { e.printStackTrace(); } } === Please clarify my doubts. Thanks in Advance, Sachin --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en -~--~~~~--~~--~--~---