Best Practices
Reporting
Consider running the KEYWORD_PERFORMANCE_REPORT and AD_PERFORMANCE_REPORT for one day at a time using the CUSTOM_DATE DateRangeType . Running these reports for larger date ranges will result in longer report processing times.
Downloading Account Structure
To download all objects in an account, perform a breadth-first traversal of the account tree, by first retrieving all campaigns for an account, all the ad groups for the campaigns, and all the keywords/ads for the ad groups.
Pagination
Setting page size to a sensible number like 500 will ensure fast response times. Example:
myResults = []
myIndex = 0
myPageSize= 500
CampaignSelector.paging.startIndex = myIndex
CampaignSelector.paging.numberResults = myPageSize
for (;;) {
CampaignPage = CampaginService.get(CampaignSelector)
if (CampaignPage.rval.entries){
push (Results , CampaignPage.rval.entries)
}
if ( myIndex >= CampaignPage .rval.totalNumEntries ){
break
}
myIndex += myPageSize
CampaignSelector.paging.startIndex = myIndex
}
Post is closed for comments.
Comments
0 comments