none
Bringing bids for all keywords in specific adgroup/campaign

    Question

  • Hello all,

    I wanted to bring all keywords with their related bids from specific campaign using BulkServiceManager with DataScope.ENTITY_PERFORMANCE_DATA flag.

    However I've learned from documentation that this flag is not supported starting from version 12:

    Bulk download of performance data is not supported after Bing Ads API Version 11. The EntityPerformanceData value of the DataScore value set is no longer supported in Bing Ads API Version 12, and will be removed from the service contract in a future version.

    My question is what is the fastest way to bring all (keyword, bid) pairs for specific campaign ?

    Would such query return also ad-group level bid in cases when keyword doesn't defines custom bid?

    Thanks ,

      Dima

    Tuesday, April 2, 2019 3:23 PM

All replies

  • If you are looking for the Bid field in Keyword records, just add Keywords to the list of download entities and add EntityData to the list of data scopes. You can optionally include campaigns and ad groups. For example:

    ArrayOfDownloadEntity entities = new ArrayOfDownloadEntity();
    entities.getDownloadEntities().add(DownloadEntity.CAMPAIGNS);
    entities.getDownloadEntities().add(DownloadEntity.AD_GROUPS);
    entities.getDownloadEntities().add(DownloadEntity.KEYWORDS);
    
    List<DataScope> dataScopes = new ArrayList<DataScope>();
    dataScopes.add(DataScope.ENTITY_DATA);
    
    DownloadParameters downloadParameters = new DownloadParameters();
    downloadParameters.setCampaignIds(null);
    downloadParameters.setDataScope(dataScopes);
    downloadParameters.setDownloadEntities(entities);
    downloadParameters.setFileType(DownloadFileType.CSV);
    downloadParameters.setLastSyncTimeInUTC(null); 
    downloadParameters.setResultFileDirectory(new File(FileDirectory));
    downloadParameters.setResultFileName(DownloadFileName);
    downloadParameters.setOverwriteResultFile(true);


    I hope this helps!

    Thursday, April 4, 2019 12:14 PM
    Owner