Re: Creating an Account in the Sandbox
Hello Simon, The CreateAccountService is currently not supported in the sandbox. Please use one of the 5 generated accounts for your testing. -Danial, AdWords API Team. On Wednesday, April 4, 2012 4:52:31 PM UTC+4, baynezy wrote: I have initialised my sandbox OK and I have 5 auto generated accounts created. I am using .Net with the ClientLibrary fine but I am using this url as my basis http://googleadsdeveloper.blogspot.co.uk/2011/11/discover-adwords-v201109.html. I know it is java but it is virtually the same as my .Net code. When I run my version against the Sandbox I get an AuthorizationError.UNABLE_TO_AUTHORIZE when I call CreateAccountService.mutate(). I believe this is because the ClientCustomerId I am using is not is not the MCC. None of the auto-generated accounts are the MCC so really my question is how do I create an MCC account? If I am incorrect about the MCC account statement, then does someone know what I am doing wrong? Regards. Simon -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: OAuth - didn't see it mentioned so I thought I'd ask
Hi Kevin, Thanks for the update.It will be great if you can help me with code example for using OAuth 1.0a with Adwords I also wanted to know will it still require to link the customer account to our MCC account after migrating to OAuth authentication?? TIA, Vijayraj On Thursday, 5 April 2012 19:02:44 UTC+5:30, Kevin Winter wrote: Hi Vijayraj, We just released the stable version of the new java library: http://code.google.com/p/google-api-ads-java/ This rewritten library works with maven and supports OAuth 1.0a as an authentication mechanism. We're committing to full support of the new library at this time - it is no longer considered experimental and can be used in production code. - Kevin Winter AdWords API Team On Thursday, April 5, 2012 3:38:50 AM UTC-4, Vijayraj Chauhan wrote: Hi Kevin, Any update on this??? Does the Java client library support any other authentication other than ClientLogin? TIA, Vijayraj On Monday, 7 November 2011 21:04:06 UTC+5:30, Kevin Winter wrote: Hi Vijayraj, No, the Java client library does not support AuthSub (it's an older protocol like ClientLogin). Unfortunately, ClientLogin will be the only supported authentication until the rewritten java client library is ready. - Kevin Winter AdWords API Team -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: Suppressing SOAP messages from API calls
Hi, The Python Client Library has two flags that control logging. The first is the xml_log option, which causes SOAP messages to be logged to file, and the debug option, which increases the log level of everything by two. They can be specified when you instantiate your AdWordsClient, like here: http://code.google.com/p/google-api-ads-python/source/browse/trunk/adspygoogle/adwords/AdWordsClient.py#84 Or they may come in via your pkl, in which case you can re-run the config script to change the values. I believe that if you have XML logging turned off but debugging on it causes soap to get logged to console. Turning both debug and xml_log off should prevent soap from being logged at all. - Kevin Winter AdWords API Team On Tuesday, April 3, 2012 4:12:08 PM UTC-4, Sid wrote: Hi I'm updating max_cpc via the python API to my Adwords account. I would like to restrict the amount of console output so that I can email the output to myself in the cron and keep track of success/failures. However the size of SOAP messages is so large that my mail server is unable to mail the output to me. Are there specific flags I can use to suppress the console messages? Ideally I'd only like to be able to see what I explicitly print out in my code as the email content. Snippet from my code: for row in rows: ad_group_id = str(row[0]) criterion_id = str(row[1]) max_cpc = row[2] operations = [{ 'operator': 'SET', 'operand': { 'xsi_type': 'BiddableAdGroupCriterion', 'adGroupId': ad_group_id, 'criterion': { 'id': criterion_id, }, 'bids': { 'xsi_type': 'ManualCPCAdGroupCriterionBids', 'maxCpc': { 'amount': { 'microAmount': max_cpc } } } } }] try: ad_group_criteria = ad_group_criterion_service.Mutate(operations)[0] except Exception as e: print Failed to update bid (%s,%s,%s) for account %s Exception %s %(ad_group_id,criterion_id,max_cpc,input_account,e) print str(cursor.rowcount) + Bids updated for account -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: OAuth - didn't see it mentioned so I thought I'd ask
Hi Vijayraj, We've published an example showing how to do OAuth 1.0a with the new java library here: http://code.google.com/p/google-api-ads-java/source/browse/examples/adwords_axis/src/main/java/adwords/axis/v201109/misc/OAuthExample.java It depends on how you set it up. You can either authenticate as a user on the MCC, which gives you access to all accounts managed by that MCC, or you could authenticate to the individual client account (which naturally just gives you access to this account) and then you wouldn't need to link the account to an MCC. - Kevin Winter AdWords API Team On Friday, April 6, 2012 7:27:28 AM UTC-4, Vijayraj Chauhan wrote: Hi Kevin, Thanks for the update.It will be great if you can help me with code example for using OAuth 1.0a with Adwords I also wanted to know will it still require to link the customer account to our MCC account after migrating to OAuth authentication?? TIA, Vijayraj On Thursday, 5 April 2012 19:02:44 UTC+5:30, Kevin Winter wrote: Hi Vijayraj, We just released the stable version of the new java library: http://code.google.com/p/google-api-ads-java/ This rewritten library works with maven and supports OAuth 1.0a as an authentication mechanism. We're committing to full support of the new library at this time - it is no longer considered experimental and can be used in production code. - Kevin Winter AdWords API Team On Thursday, April 5, 2012 3:38:50 AM UTC-4, Vijayraj Chauhan wrote: Hi Kevin, Any update on this??? Does the Java client library support any other authentication other than ClientLogin? TIA, Vijayraj On Monday, 7 November 2011 21:04:06 UTC+5:30, Kevin Winter wrote: Hi Vijayraj, No, the Java client library does not support AuthSub (it's an older protocol like ClientLogin). Unfortunately, ClientLogin will be the only supported authentication until the rewritten java client library is ready. - Kevin Winter AdWords API Team -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: Getting Error The SoapListenerExtension class is not loaded. The most possible cause for this error is that you haven't registered Google.Api.Ads.Common.Lib.SoapListenerExtension as a soap extensi
Hi, Make sure you have this line in your App.config or Web.config add type=Google.Api.Ads.Common.Lib.SoapListenerExtension, Google.Ads.Common priority=1 group=0/ Did you just migrated to version = 14.0.0? Best, -David Torres - AdWords API Team On Tuesday, April 3, 2012 1:09:49 AM UTC-4, Pramod Patil wrote: Hi I am using newer version of Google.Api.Ads.AdWords.v201109. but I am getting error on red code line . would you please help to resolve this. Error : T*he SoapListenerExtension class is not loaded. The most possible cause for this error is that you haven't registered Google.Api.Ads.Common.Lib.SoapListenerExtension as a soap extension under configuration/system.web/webServices/soapExtensionTypes in your your App.config or Web.config.* Below is my code. Imports Google.Api.Ads.AdWords.Lib Imports Google.Api.Ads.AdWords.v13 Imports Google.Api.Ads.AdWords.v201109 Public Function getUser() As AdWordsUser Dim headers As New Dictionary(Of String, String) Dim SearchEngineDBObj As New SearchEngineDB(SQLConn) Dim SearchEngineObj As SearchEngine Dim emailObj As New FusionLibrary.Fusion.Campaign.eMail(192.168.2.205) SearchEngineObj = SearchEngineDBObj.populate(Google) If SearchEngineObj Is Nothing Then SearchID = 0 Return Nothing End If SearchID = SearchEngineObj.SearchID headers.Add(email, X) headers.Add(password, ) headers.Add(useragent, X) headers.Add(developerToken, XX) headers.Add(applicationToken, XX) headers.Add(clientCustomerId, XX 'headers.Add(AuthorizationMethod, ClientLogin) Try Dim AdWordsUserObj As New AdWordsUser(headers) Return AdWordsUserObj Catch ex As Exception Return Nothing End Try End Function Public Function updateCampaigns() As Integer Dim user As AdWordsUser user = getUser() If user Is Nothing Then Return 0 End If Dim CampaignServiceObj As CampaignService Dim page As CampaignPage Dim SearchEngineeCampaignDBObj As New SearchEngineCampaignDB(SQLConn) Dim secObj As SearchEngineCampaign Dim rtn As String CampaignServiceObj = user.GetService(AdWordsService.v201109.CampaignService) Try Dim selector As New Selector() selector.fields = New String() {Id, Name, Status} Dim orderByName As New OrderBy() orderByName.field = Name orderByName.sortOrder = SortOrder.ASCENDING Dim emailObj As New FusionLibrary.Fusion.Campaign.eMail(XX) Dim SearchEngineDBObj As New SearchEngineDB(SQLConn) Dim SearchEngineObj As SearchEngine SearchEngineObj = SearchEngineDBObj.populate(Google) If SearchEngineObj Is Nothing Then SearchID = 0 Return Nothing End If selector.ordering = New OrderBy() {orderByName} TryCast(user.Config, AdWordsAppConfig).ClientCustomerId = SearchEngineObj.UserName *page = CampaignServiceObj.get(selector)* Catch ex As Exception Return 0 End Try If page Is Nothing Then Return 0 End If If page.entries.Length = 0 Then Return 0 End If For Each CampaignObj As Google.Api.Ads.AdWords.v201109.Campaign In page.entries secObj = New SearchEngineCampaign secObj.SearchID = SearchID secObj.CampaignName = CampaignObj.name secObj.BudgetAmount = CampaignObj.budget.amount.microAmount / 100 secObj.Status = CampaignObj.status.ToString secObj.ID = CampaignObj.id rtn = SearchEngineeCampaignDBObj.findAdd(secObj) Next Return page.entries.Length - 1 End Function Thanks -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: Downloading keyword performance report for a particular day
I don't know much Python so I can't help with the code itself, but you need to set the dateRangeTypehttp://code.google.com/apis/adwords/docs/reference/latest/ReportDefinitionService.Selector.html#dateRangefield of your report definition to 'CUSTOM_DATE', then add set the dateRangehttp://code.google.com/apis/adwords/docs/reference/latest/ReportDefinitionService.Selector.html#dateRangefield of your selector to a valid DateRangehttp://code.google.com/apis/adwords/docs/reference/latest/ReportDefinitionService.DateRange.html . -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
Is partial failure supported for AdGroupAdService in v201109?
I would like to use the partial failure feature in v201109 AdGroupAdService. I see that AdGroupAdReturnValue has a partialFailureErrors attribute, which makes me suspect it is supported. However I am having trouble finding documentation to indicate if partial failure is really working for AdGroupAdService in v201109. I see lots of older posts saying it is only supported in other situations but nothing for AdGroupAdService. Where should I look in the documentation to find out the definitive answer? Jim -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: Help with keyword ideas
Il giorno mercoledì 4 aprile 2012 19:42:15 UTC+2, Angelo Santoro ha scritto: No help for me? :( Il giorno mercoledì 4 aprile 2012 19:42:15 UTC+2, Angelo Santoro ha scritto: No help for me? :( Il giorno mercoledì 4 aprile 2012 19:42:15 UTC+2, Angelo Santoro ha scritto: No help for me? :( Il giorno mercoledì 4 aprile 2012 19:42:15 UTC+2, Angelo Santoro ha scritto: No help for me? :( -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: AgeRange Gender undetermined Id
Hi Udy, I was able to exclude the undertermined age range (503999) without any errors. Is this a request against production or the sandbox? Best, - Eric Koleda, AdWords API Team On Thursday, April 5, 2012 8:18:50 AM UTC-4, u...@taykey.com wrote: any suggestions ? On Tuesday, April 3, 2012 2:53:53 PM UTC+3, u...@taykey.com wrote: Hi, When trying to add negative campaign criterion to exclude AgeRange with id 503999 (Undetermined) OR trying to add negative campaign criterion to exclude Gender with id 20 (Undetermined) results in: InternalApiError.UNEXPECTED_INTERNAL_API_ERROR in the adwords UI i saw that it is no possible to exclude Gender however it is possible to exclude Age. so i wonder if its not possible to do that with the api or am i doing something wrong ? Thanks !! Udy -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: Only get active keywords
Hi Neil, You can filter for just the active keywords by including a predicate for Status EQUALS ACTIVE. Best, - Eric Koleda, AdWords API Team On Thursday, April 5, 2012 9:16:15 AM UTC-4, Neil Kirk wrote: For example, here is a parameter that I tried to set: entries xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:type=BiddableAdGroupCriterion adGroupId715289155/adGroupId criterionUseBIDDABLE/criterionUse criterion xsi:type=Keyword id16494201/id typeKEYWORD/type Criterion.TypeKeyword/Criterion.Type textbulk sms/text matchTypeBROAD/matchType /criterion AdGroupCriterion.TypeBiddableAdGroupCriterion/AdGroupCriterion.Type stats networkSEARCH/network Stats.TypeStats/Stats.Type /stats /entries but it returns an error: ?xml version=1.0? soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; soap:Header ResponseHeader xmlns= https://adwords.google.com/api/adwords/cm/v201109; requestId0004bce84aefc2400a3464c71bbe/requestId serviceNameAdParamService/serviceName methodNamemutate/methodName operations1/operations responseTime111/responseTime units1/units /ResponseHeader /soap:Header soap:Body soap:Fault faultcodesoap:Server/faultcode faultstring[AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ operations[0].operand; trigger:'AdGroupId = 715289155, CriterionId = 16494201']/faultstring detail ApiExceptionFault xmlns= https://adwords.google.com/api/adwords/cm/v201109; message[AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ operations[0].operand; trigger:'AdGroupId = 715289155, CriterionId = 16494201']/message ApplicationException.TypeApiException/ApplicationException.Type errors xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:type=AdParamError fieldPathoperations[0].operand/fieldPath triggerAdGroupId = 715289155, CriterionId = 16494201/trigger errorStringAdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED/errorString ApiError.TypeAdParamError/ApiError.Type reasonINVALID_ADGROUP_CRITERION_SPECIFIED/reason /errors /ApiExceptionFault /detail /soap:Fault this happens to about 50% of my criterion, which is kinda wasteful in terms of API units. Any help would be massively appreciated. On Thursday, 5 April 2012 14:09:23 UTC+1, Neil Kirk wrote: Hi, I am setting paramaters for my keywords using the Perl API. When I get the keywords for a particular ad group, it retrieves all the keywords and so it trying to set parameters for a lot of keywords that it doesn't need to/is returning a lot of keywords that it doesn't need to. Is there any way to filter the get so that it returns only keywords that are in use? -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
Possible bug in AdGroupCriterionService
When adding a new criterion, the response contain a field called criterionUse. This field suppose to be set to BIDDABLE or NEGATIVE, but instead it is empty. Is there any other way to retrieve this information? -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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