Re: /v201302 InternalApiError.UNEXPECTED_INTERNAL_API_ERROR in SANDBOX
From what I see the update of the campaign details are fine the only issue is the budget. *What would be the correct way to update the campaign budget -* ** *I try to create a new one with the BudgetService but get a duplicate name error when trying to create a new one (one exists with the same name).* *Do I need to first delete the old budget and create a new one and then set it to the campaign or some kind of update of the budget?* By the way , the example code in Java for UpdateCampaign.java return errors regarding SHARED_BUDGET (in this code the budget is updated on the Campaign object like in previous versions of the API). Thanks. On Wednesday, April 17, 2013 9:06:14 PM UTC+2, assaf wrote: Hi, I get this error when trying to execute an update of a campaign name or budget? Is there a know issue with the test environment at the moment? Thanks. {https://adwords.google.com/api/adwords/cm/v201302}ApiExceptionFault:message[InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ com.google.ads.api.services.common.error.InternalApiError -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 --- You received this message because you are subscribed to the Google Groups AdWords API Forum group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: /v201302 InternalApiError.UNEXPECTED_INTERNAL_API_ERROR in SANDBOX
Hi Aasaf, Could you post a sanitized SOAP request and response log? I'll investigate this further. Cheers, Anash P. Oommen, AdWords API Advisor. On Thursday, April 18, 2013 12:36:14 AM UTC+5:30, assaf wrote: Hi, I get this error when trying to execute an update of a campaign name or budget? Is there a know issue with the test environment at the moment? Thanks. {https://adwords.google.com/api/adwords/cm/v201302}ApiExceptionFault:message[InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ com.google.ads.api.services.common.error.InternalApiError -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 --- You received this message because you are subscribed to the Google Groups AdWords API Forum group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: /v201302 InternalApiError.UNEXPECTED_INTERNAL_API_ERROR in SANDBOX
AdWordsServiceLogger.log(); // Get AdWordsUser from ~/adwords.properties. AdWordsUser user = new AdWordsUser(); // Get the CampaignService. CampaignServiceInterface campaignService = user.getService(AdWordsService.V201302.CAMPAIGN_SERVICE); BudgetServiceInterface budgetService = user.getService(AdWordsService.V201302.BUDGET_SERVICE); long campaignId = Long.parseLong(pMachineID); // Create campaign with updated budget. Campaign campaign = new Campaign(); campaign.setId(campaignId); campaign.setName(pMachineName); boolean biddingChanged = false; if (null != pMachineBiddingStrategy null != pOldMachineBiddingStrategy) { if (!pMachineBiddingStrategy.equals(pOldMachineBiddingStrategy)) { biddingChanged = true; } } AdServingOptimizationStatus optimStatus = null; // set optimization status if (null != pMachineOptimizationStatus) { if (pMachineOptimizationStatus.equals(OPTIMIZE)) { optimStatus = AdServingOptimizationStatus.OPTIMIZE; } if (pMachineOptimizationStatus.equals(CONVERSION_OPTIMIZE)) { optimStatus = AdServingOptimizationStatus.CONVERSION_OPTIMIZE; } if (pMachineOptimizationStatus.equals(ROTATE)) { optimStatus = AdServingOptimizationStatus.ROTATE; } campaign.setAdServingOptimizationStatus(optimStatus); } // Create the bids. BiddingStrategyConfiguration biddingConfig = new BiddingStrategyConfiguration(); if (null != pMachineBiddingStrategy) { if (pMachineBiddingStrategy.equals(ManualCPC)) { ManualCpcBiddingScheme manualCpc = new ManualCpcBiddingScheme(); manualCpc.setEnhancedCpcEnabled(false); biddingConfig.setBiddingScheme(manualCpc); } if (pMachineBiddingStrategy.equals(ManualCPM)) { ManualCpmBiddingScheme manualCpm = new ManualCpmBiddingScheme(); biddingConfig.setBiddingScheme(manualCpm); } if (pMachineBiddingStrategy.equals(BudgetOptimizer)) { BudgetOptimizerBiddingScheme budgetOptimizer = new BudgetOptimizerBiddingScheme(); biddingConfig.setBiddingScheme(budgetOptimizer); } if (pMachineBiddingStrategy.equals(PercentCPA)) { PercentCpaBiddingScheme percentCPA = new PercentCpaBiddingScheme(); biddingConfig.setBiddingScheme(percentCPA); } if (pMachineBiddingStrategy.equals(ConversionOptimizer)) { ConversionOptimizerBiddingScheme conversionOptimizer = new ConversionOptimizerBiddingScheme(); biddingConfig.setBiddingScheme(conversionOptimizer); } } campaign.setBiddingStrategyConfiguration(biddingConfig); if (null != pStatus pStatus.equals(ACTIVE)) { campaign.setStatus(CampaignStatus.ACTIVE); } if (null != pStatus pStatus.equals(PAUSED)) { campaign.setStatus(CampaignStatus.PAUSED); } // Create budget. Budget budget = new Budget(); Money m = new Money(); m.setMicroAmount(new Long(100 * pAmount)); budget.setAmount(m); budget.setName(campaign_before+campaignId+-budget+new Date().getTime()); if (null != pDeliveryMethod pDeliveryMethod.equals(ACCELERATED)) { budget.setDeliveryMethod(BudgetBudgetDeliveryMethod.ACCELERATED); } if (null != pDeliveryMethod pDeliveryMethod.equals(STANDARD)) { budget.setDeliveryMethod(BudgetBudgetDeliveryMethod.STANDARD); } budget.setPeriod(BudgetBudgetPeriod.DAILY); BudgetOperation budgetOperation = new BudgetOperation(); budgetOperation.setOperand(budget); budgetOperation.setOperator(Operator.ADD); // Add the budgetLong long budgetId = budgetService.mutate(new BudgetOperation[] {budgetOperation}).getValue(0).getBudgetId(); // Only the budgetId should be sent. Budget newbudget = new Budget(); newbudget.setBudgetId(budgetId); newbudget.setName(campaign_after+campaignId+-budget+new Date().getTime()); campaign.setBudget(newbudget); // Set the campaign network options to Search and Search Network. NetworkSetting networkSetting = new NetworkSetting(); // networkSetting.setTargetContentContextual(pTargetContentContextual); networkSetting.setTargetGoogleSearch(pTargetGoogleSearch); networkSetting.setTargetSearchNetwork(pTargetSearchNetwork); networkSetting.setTargetContentNetwork(pTargetContentNetwork); networkSetting.setTargetPartnerSearchNetwork(pTargetPartnerSearchNetwork); campaign.setNetworkSetting(networkSetting); // Create operations. CampaignOperation operation = new CampaignOperation(); operation.setOperand(campaign); operation.setOperator(Operator.SET); CampaignOperation[] operations = new CampaignOperation[] {operation}; // Update campaign. CampaignReturnValue result = campaignService.mutate(operations); When just trying to update the name and budget of the campaign I get the exception - AxisFault faultCode: {*http://schemas.xmlsoap.org/soap/envelope/}Server*http://schemas.xmlsoap.org/soap/envelope/%7DServer faultSubcode: faultString: [InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ com.google.ads.api.services.common.error.InternalApiError.lt;initgt;(InternalApiErro] faultActor: faultNode: faultDetail: {*https://adwords.google.com/api/adwords/cm/v201302}ApiExceptionFault*https://adwords.google.com/api/adwords/cm/v201302%7DApiExceptionFault:message[InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @
/v201302 InternalApiError.UNEXPECTED_INTERNAL_API_ERROR in SANDBOX
Hi, I get this error when trying to execute an update of a campaign name or budget? Is there a know issue with the test environment at the moment? Thanks. {https://adwords.google.com/api/adwords/cm/v201302}ApiExceptionFault:message[InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ com.google.ads.api.services.common.error.InternalApiError -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 --- You received this message because you are subscribed to the Google Groups AdWords API Forum group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.