Apresentação tdc 2010 eric gomes - octavarium - ad words

  • View
    1.256

  • Download
    4

Embed Size (px)

DESCRIPTION

Automação de Campanhas de Links Patrocinados com a API do Google AdWords

Text of Apresentação tdc 2010 eric gomes - octavarium - ad words

Vendendo um produto ou servio

Automao de Campanhas de Links Patrocinados com a API do Google AdWords

InternetAcesso residencialcrescimento em nmero de internautas e tempo de uso

InternetBanda Larga no Brasilcrescimento de 30,4% entre 2008 e 2009

Publicidade OnlineInternet permanece sendo a mdia que mais cresce

Investimentos em publicidade no meio Internet no Q1 de 2010crescimento de 33% em relao a 2009

Publicidade OnlineGrandes portais brasileirosExemplos: UOL , Terra e iG

Publicidade OnlineBanners no UOL

Publicidade OnlineBanners no Terra

Publicidade OnlineBanners no iG

Publicidade do GoogleAdWords para anunciantesAdSense para proprietrios de sites

Rede de PesquisaSERP Search Engines Results PagesSegmentao por palavras-chave

Rede de PesquisaParceiros de Pesquisa

CPCCusto por Clique

PPC Pay per Click

Rede de PesquisaParceiros de Pesquisa

Rede de DisplayServios agregados

Rede de DisplayContexto da pgina

Segmentao por canais

CPC ou

CPM Custo por Mil

Google AdWordsPainel self-service do AdWords

Google AdWordsTDC 2010 no AdWords

Google AdWordsEstrutura AdWordsGerentes : Contas : Campanhas : Grupos de AnnciosAnncios, Palavras-Chave e Canais

API do AdWordsApplication Programming InterfaceDesenvolvimento de software integrado ao Google AdWords

Maior agilidade em campanhas grandes e complexasDe acordo com as regras de negcio do anunciante

Exemplosintegrao com estoque de produtos de lojas virtuaisbalanceamento do oramento entre campanhas de publicidadeatualizao de horrios para exibio de anncios

API do AdWordsWeb Services SOAP 1.1Simple Object Access ProtocolXML e HTTP

https://adwords.google.com/api/adwords/cm/https://adwords-sandbox.google.com/api/adwords/cm/

Bibliotecas-cliente em Java, PHP, Python, .NET, Perl e Ruby

Verses v13 (2008/2009), v200906, v200909 e v201003

API do AdWords Verses v2009 09 e v2010 03

API do AdWordsNvel de Campanhas e Grupos de Anncios

Web ServiceEntidadeAdGroupServiceGrupos de AnnciosAdGroupAdServiceGrupos de Anncios e AnnciosAdGroupCriterionServiceGrupos, Palavras-Chave e CanaisWeb ServiceEntidadeCampaignServiceCampanhasCampaignTargetServiceSegmentaes de CampanhasCampaignCriterionServiceCampanhas, Palavras-Chave e CanaisWeb Services e ClassesClasses de Campanhas

Web Services e Classes Classes de Grupos de Anncios

Operaesget e mutate

getutilizada para leiturarecebe filtro atravs de seletor na entradadevolve lista de objetos desejados como sada

mutateutilizada para criao, atualizao e remoorecebe lista de operaes na entradadevolve objetos alterados como sada

Operao getExemplo getAllCampaigns

// Get the CampaignService. CampaignServiceInterface campaignService = user.getService(AdWordsService.V201003.CAMPAIGN_SERVICE);

// Create selector. CampaignSelector selector = new CampaignSelector();

// Get all campaigns. CampaignPage page = campaignService.get(selector);

// Display campaigns. if (page.getEntries() != null) { for (Campaign campaign : page.getEntries()) { System.out.println("Campaign with name \"" + campaign.getName() + "\" and id \"" + campaign.getId() + "\" was found."); } } else { System.out.println("No campaigns were found."); }Operao mutateExemplo updateCampaign

// Get the CampaignService. CampaignServiceInterface campaignService = user.getService(AdWordsService.V201003.CAMPAIGN_SERVICE);

long campaignId = Long.parseLong(51898803");

// Create campaign with updated budget. Campaign campaign = new Campaign(); campaign.setId(campaignId);

// Create budget. Budget budget = new Budget(); budget.setDeliveryMethod(BudgetBudgetDeliveryMethod.ACCELERATED); campaign.setBudget(budget);

// 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);

// Display campaigns. if (result != null && result.getValue() != null) { for (Campaign campaignResult : result.getValue()) { System.out.println("Campaign with name \"" + campaignResult.getName() + "\", id \"" + campaignResult.getId() + "\", and budget delivery method \"" + campaignResult.getBudget().getDeliveryMethod() + "\" was updated."); } } else { System.out.println("No campaigns were updated."); }CampaignService

Leitura: CampaignPage get (CampaignSelector selector)

Criao, atualizao, remoo:CampaignReturnValue mutate (CampaignOperation[] operations)

OperadorDescrioADDUsado para adiesREMOVEUsado para remoes.SETUsado para atualizaesClasse Campaign

StatusACTIVEDELETEDPAUSEDServingStatusSERVINGNONEENDEDPENDINGSUSPENDEDBudgetDeliveryMethodSTANDARDACCELERATEDGrupos de AnnciosExemplo getAllAdGroups

// Get the AdGroupService. AdGroupServiceInterface adGroupService = user.getService(AdWordsService.V201003.ADGROUP_SERVICE);

long campaignId = Long.parseLong("51898803");

// Create selector. AdGroupSelector selector = new AdGroupSelector(); selector.setCampaignIds(new long[] {campaignId});

// Get all ad groups. AdGroupPage page = adGroupService.get(selector);

// Display ad groups. if (page.getEntries() != null) { for (AdGroup adGroup : page.getEntries()) { System.out.println("Ad group with name \"" + adGroup.getName() + "\" and id \"" + adGroup.getId() + "\" was found."); } } else { System.out.println("No ad groups were found."); }Grupos de AnnciosExemplo updateAdGroup

// Get the AdGroupService. AdGroupServiceInterface adGroupService = user.getService(AdWordsService.V201003.ADGROUP_SERVICE);

long adGroupId = Long.parseLong(1940071923");

// Create ad group with updated status. AdGroup adGroup = new AdGroup(); adGroup.setId(adGroupId); adGroup.setStatus(AdGroupStatus.PAUSED);

// Create operations. AdGroupOperation operation = new AdGroupOperation(); operation.setOperand(adGroup); operation.setOperator(Operator.SET);

AdGroupOperation[] operations = new AdGroupOperation[]{operation};

// Update ad group. AdGroupReturnValue result = adGroupService.mutate(operations);

// Display ad groups. if (result != null && result.getValue() != null) { for (AdGroup adGroupResult : result.getValue()) { System.out.println("Ad group with name \"" + adGroupResult.getName() + "\", id \"" + adGroupResult.getId() + "\", and status \"" + adGroupResult.getStatus() + "\" was updated."); } } else { System.out.println("No ad groups were updated."); }Palavras-ChaveExemplo getAllActiveAdGroupCriteria

// Get the AdGroupCriterionService. AdGroupCriterionServiceInterface adGroupCriterionService = user.getService(AdWordsService.V201003.ADGROUP_CRITERION_SERVICE);

long adGroupId = Long.parseLong("1940071923");

// Create selector. AdGroupCriterionSelector selector = new AdGroupCriterionSelector(); selector.setUserStatuses(new UserStatus[] {UserStatus.ACTIVE});

// Create id filter. AdGroupCriterionIdFilter idFilter = new AdGroupCriterionIdFilter(); idFilter.setAdGroupId(adGroupId); selector.setIdFilters(new AdGroupCriterionIdFilter[] {idFilter});

// Get all active ad group criteria. AdGroupCriterionPage page = adGroupCriterionService.get(selector);

// Display ad group criteria. if (page.getEntries() != null && page.getEntries().length > 0) { for (AdGroupCriterion adGroupCriterion : page.getEntries()) { if (adGroupCriterion instanceof BiddableAdGroupCriterion) { BiddableAdGroupCriterion biddableAdGroupCriterion = (BiddableAdGroupCriterion) adGroupCriterion; System.out.println("Ad group criterion with ad group id \"" + biddableAdGroupCriterion.getAdGroupId() + "\", criterion id \"" + biddableAdGroupCriterion.getCriterion().getId() + "\", type \"" + biddableAdGroupCriterion.getCriterion().getCriterionType() + "\", and user status \"" + biddableAdGroupCriterion.getUserStatus() + "\" was found."); } } } else { System.out.println("No ad group criteria were found."); }Palavras-ChaveExemplo updateAdGroupCriterion

// Get the AdGroupCriterionService. AdGroupCriterionServiceInterface adGroupCriterionService = user.getService(AdWordsService.V201003.ADGROUP_CRITERION_SERVICE);

long adGroupId = Long.parseLong("1940071923"); long criterionId = Long.parseLong("19326830763");

// Create ad group criterion with updated bid. Criterion criterion = new Criterion(); criterion.setId(criterionId);

BiddableAdGroupCriterion biddableAdGroupCriterion = new BiddableAdGroupCriterion(); biddableAdGroupCriterion.setAdGroupId(adGroupId); biddableAdGroupCriterion.setCriterion(criterion);

// Create bids. ManualCPCAdGroupCriterionBids bids = new ManualCPCAdGroupCriterionBids(); bids.setMaxCpc(new Bid(new Money(null, 1000000L))); biddableAdGroupCriterion.setBids(bids);

// Create operations. AdGroupCriterionOperation operation = new AdGroupCriterionOperation(); operation.setOperand(biddableAdGroupCriterion); operation.setOperator(Operator.SET);

AdGroupCriterionOperation[] operations = new AdGroupCriterionOperation[] {operation};

// Update ad group criteria. AdGroupCriterionReturnValue result = adGroupCriterionService.mutate(opera