google-adwords-api 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/COPYING +201 -0
- data/ChangeLog +14 -0
- data/README +44 -14
- data/Rakefile +1 -1
- data/adwords_api.yml +0 -1
- data/examples/v200909/add_ad_group_criteria.rb +1 -1
- data/examples/v200909/perform_bulk_mutate_job.rb +1 -1
- data/examples/v201003/get_related_placements.rb +6 -9
- data/examples/v201003/perform_bulk_mutate_job.rb +1 -1
- data/examples/v201008/get_bulk_mutate_job.rb +1 -1
- data/examples/v201008/perform_bulk_mutate_job.rb +1 -1
- data/examples/v201101/add_mcc_report_definition.rb +4 -8
- data/examples/v201101/download_mcc_report.rb +47 -23
- data/examples/v201101/download_mcc_report_as_file.rb +118 -0
- data/examples/v201101/get_bulk_mutate_job.rb +1 -1
- data/examples/v201101/get_keyword_opportunities.rb +0 -0
- data/examples/v201101/perform_bulk_mutate_job.rb +1 -1
- data/lib/adwords_api.rb +4 -8
- data/lib/adwords_api/api_config.rb +1 -1
- data/lib/adwords_api/auth/v13_login_handler.rb +3 -6
- data/lib/adwords_api/extensions.rb +156 -25
- data/lib/adwords_api/v13/AccountService.rb +0 -0
- data/lib/adwords_api/v13/AccountServiceDriver.rb +6 -6
- data/lib/adwords_api/v13/AccountServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v13/AccountServiceWrapper.rb +2 -2
- data/lib/adwords_api/v13/ReportService.rb +0 -0
- data/lib/adwords_api/v13/ReportServiceDriver.rb +8 -8
- data/lib/adwords_api/v13/ReportServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v13/ReportServiceWrapper.rb +2 -2
- data/lib/adwords_api/v13/TrafficEstimatorService.rb +0 -0
- data/lib/adwords_api/v13/TrafficEstimatorServiceDriver.rb +5 -5
- data/lib/adwords_api/v13/TrafficEstimatorServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v13/TrafficEstimatorServiceWrapper.rb +2 -2
- data/lib/adwords_api/v200909/AdExtensionOverrideService.rb +0 -0
- data/lib/adwords_api/v200909/AdExtensionOverrideServiceDriver.rb +3 -3
- data/lib/adwords_api/v200909/AdExtensionOverrideServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v200909/AdExtensionOverrideServiceWrapper.rb +2 -2
- data/lib/adwords_api/v200909/AdGroupAdService.rb +239 -239
- data/lib/adwords_api/v200909/AdGroupAdServiceDriver.rb +3 -3
- data/lib/adwords_api/v200909/AdGroupAdServiceMappingRegistry.rb +120 -120
- data/lib/adwords_api/v200909/AdGroupAdServiceWrapper.rb +2 -2
- data/lib/adwords_api/v200909/AdGroupCriterionService.rb +0 -0
- data/lib/adwords_api/v200909/AdGroupCriterionServiceDriver.rb +3 -3
- data/lib/adwords_api/v200909/AdGroupCriterionServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v200909/AdGroupCriterionServiceWrapper.rb +2 -2
- data/lib/adwords_api/v200909/AdGroupService.rb +0 -0
- data/lib/adwords_api/v200909/AdGroupServiceDriver.rb +3 -3
- data/lib/adwords_api/v200909/AdGroupServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v200909/AdGroupServiceWrapper.rb +2 -2
- data/lib/adwords_api/v200909/AdParamService.rb +0 -0
- data/lib/adwords_api/v200909/AdParamServiceDriver.rb +3 -3
- data/lib/adwords_api/v200909/AdParamServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v200909/AdParamServiceWrapper.rb +2 -2
- data/lib/adwords_api/v200909/BulkMutateJobService.rb +0 -0
- data/lib/adwords_api/v200909/BulkMutateJobServiceDriver.rb +3 -3
- data/lib/adwords_api/v200909/BulkMutateJobServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v200909/BulkMutateJobServiceWrapper.rb +2 -2
- data/lib/adwords_api/v200909/CampaignAdExtensionService.rb +0 -0
- data/lib/adwords_api/v200909/CampaignAdExtensionServiceDriver.rb +3 -3
- data/lib/adwords_api/v200909/CampaignAdExtensionServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v200909/CampaignAdExtensionServiceWrapper.rb +2 -2
- data/lib/adwords_api/v200909/CampaignCriterionService.rb +0 -0
- data/lib/adwords_api/v200909/CampaignCriterionServiceDriver.rb +3 -3
- data/lib/adwords_api/v200909/CampaignCriterionServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v200909/CampaignCriterionServiceWrapper.rb +2 -2
- data/lib/adwords_api/v200909/CampaignService.rb +0 -0
- data/lib/adwords_api/v200909/CampaignServiceDriver.rb +3 -3
- data/lib/adwords_api/v200909/CampaignServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v200909/CampaignServiceWrapper.rb +2 -2
- data/lib/adwords_api/v200909/CampaignTargetService.rb +0 -0
- data/lib/adwords_api/v200909/CampaignTargetServiceDriver.rb +3 -3
- data/lib/adwords_api/v200909/CampaignTargetServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v200909/CampaignTargetServiceWrapper.rb +2 -2
- data/lib/adwords_api/v200909/GeoLocationService.rb +0 -0
- data/lib/adwords_api/v200909/GeoLocationServiceDriver.rb +2 -2
- data/lib/adwords_api/v200909/GeoLocationServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v200909/GeoLocationServiceWrapper.rb +2 -2
- data/lib/adwords_api/v200909/InfoService.rb +0 -0
- data/lib/adwords_api/v200909/InfoServiceDriver.rb +2 -2
- data/lib/adwords_api/v200909/InfoServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v200909/InfoServiceWrapper.rb +2 -2
- data/lib/adwords_api/v200909/TargetingIdeaService.rb +0 -0
- data/lib/adwords_api/v200909/TargetingIdeaServiceDriver.rb +3 -3
- data/lib/adwords_api/v200909/TargetingIdeaServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v200909/TargetingIdeaServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201003/AdExtensionOverrideService.rb +0 -0
- data/lib/adwords_api/v201003/AdExtensionOverrideServiceDriver.rb +3 -3
- data/lib/adwords_api/v201003/AdExtensionOverrideServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201003/AdExtensionOverrideServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201003/AdGroupAdService.rb +293 -293
- data/lib/adwords_api/v201003/AdGroupAdServiceDriver.rb +3 -3
- data/lib/adwords_api/v201003/AdGroupAdServiceMappingRegistry.rb +124 -124
- data/lib/adwords_api/v201003/AdGroupAdServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201003/AdGroupCriterionService.rb +0 -0
- data/lib/adwords_api/v201003/AdGroupCriterionServiceDriver.rb +3 -3
- data/lib/adwords_api/v201003/AdGroupCriterionServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201003/AdGroupCriterionServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201003/AdGroupService.rb +0 -0
- data/lib/adwords_api/v201003/AdGroupServiceDriver.rb +3 -3
- data/lib/adwords_api/v201003/AdGroupServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201003/AdGroupServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201003/AdParamService.rb +0 -0
- data/lib/adwords_api/v201003/AdParamServiceDriver.rb +3 -3
- data/lib/adwords_api/v201003/AdParamServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201003/AdParamServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201003/BidLandscapeService.rb +0 -0
- data/lib/adwords_api/v201003/BidLandscapeServiceDriver.rb +2 -2
- data/lib/adwords_api/v201003/BidLandscapeServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201003/BidLandscapeServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201003/BulkMutateJobService.rb +0 -0
- data/lib/adwords_api/v201003/BulkMutateJobServiceDriver.rb +3 -3
- data/lib/adwords_api/v201003/BulkMutateJobServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201003/BulkMutateJobServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201003/CampaignAdExtensionService.rb +0 -0
- data/lib/adwords_api/v201003/CampaignAdExtensionServiceDriver.rb +3 -3
- data/lib/adwords_api/v201003/CampaignAdExtensionServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201003/CampaignAdExtensionServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201003/CampaignCriterionService.rb +0 -0
- data/lib/adwords_api/v201003/CampaignCriterionServiceDriver.rb +3 -3
- data/lib/adwords_api/v201003/CampaignCriterionServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201003/CampaignCriterionServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201003/CampaignService.rb +0 -0
- data/lib/adwords_api/v201003/CampaignServiceDriver.rb +3 -3
- data/lib/adwords_api/v201003/CampaignServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201003/CampaignServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201003/CampaignTargetService.rb +0 -0
- data/lib/adwords_api/v201003/CampaignTargetServiceDriver.rb +3 -3
- data/lib/adwords_api/v201003/CampaignTargetServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201003/CampaignTargetServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201003/GeoLocationService.rb +0 -0
- data/lib/adwords_api/v201003/GeoLocationServiceDriver.rb +2 -2
- data/lib/adwords_api/v201003/GeoLocationServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201003/GeoLocationServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201003/InfoService.rb +0 -0
- data/lib/adwords_api/v201003/InfoServiceDriver.rb +2 -2
- data/lib/adwords_api/v201003/InfoServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201003/InfoServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201003/MediaService.rb +224 -224
- data/lib/adwords_api/v201003/MediaServiceDriver.rb +3 -3
- data/lib/adwords_api/v201003/MediaServiceMappingRegistry.rb +58 -58
- data/lib/adwords_api/v201003/MediaServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201003/ReportDefinitionService.rb +0 -0
- data/lib/adwords_api/v201003/ReportDefinitionServiceDriver.rb +4 -4
- data/lib/adwords_api/v201003/ReportDefinitionServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201003/ReportDefinitionServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201003/TargetingIdeaService.rb +0 -0
- data/lib/adwords_api/v201003/TargetingIdeaServiceDriver.rb +3 -3
- data/lib/adwords_api/v201003/TargetingIdeaServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201003/TargetingIdeaServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201008/AdExtensionOverrideService.rb +0 -0
- data/lib/adwords_api/v201008/AdExtensionOverrideServiceDriver.rb +3 -3
- data/lib/adwords_api/v201008/AdExtensionOverrideServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201008/AdExtensionOverrideServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201008/AdGroupAdService.rb +255 -255
- data/lib/adwords_api/v201008/AdGroupAdServiceDriver.rb +3 -3
- data/lib/adwords_api/v201008/AdGroupAdServiceMappingRegistry.rb +120 -120
- data/lib/adwords_api/v201008/AdGroupAdServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201008/AdGroupCriterionService.rb +0 -0
- data/lib/adwords_api/v201008/AdGroupCriterionServiceDriver.rb +3 -3
- data/lib/adwords_api/v201008/AdGroupCriterionServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201008/AdGroupCriterionServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201008/AdGroupService.rb +0 -0
- data/lib/adwords_api/v201008/AdGroupServiceDriver.rb +3 -3
- data/lib/adwords_api/v201008/AdGroupServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201008/AdGroupServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201008/AdParamService.rb +0 -0
- data/lib/adwords_api/v201008/AdParamServiceDriver.rb +3 -3
- data/lib/adwords_api/v201008/AdParamServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201008/AdParamServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201008/AlertService.rb +0 -0
- data/lib/adwords_api/v201008/AlertServiceDriver.rb +2 -2
- data/lib/adwords_api/v201008/AlertServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201008/AlertServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201008/BidLandscapeService.rb +0 -0
- data/lib/adwords_api/v201008/BidLandscapeServiceDriver.rb +2 -2
- data/lib/adwords_api/v201008/BidLandscapeServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201008/BidLandscapeServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201008/BulkMutateJobService.rb +0 -0
- data/lib/adwords_api/v201008/BulkMutateJobServiceDriver.rb +3 -3
- data/lib/adwords_api/v201008/BulkMutateJobServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201008/BulkMutateJobServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201008/CampaignAdExtensionService.rb +0 -0
- data/lib/adwords_api/v201008/CampaignAdExtensionServiceDriver.rb +3 -3
- data/lib/adwords_api/v201008/CampaignAdExtensionServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201008/CampaignAdExtensionServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201008/CampaignCriterionService.rb +0 -0
- data/lib/adwords_api/v201008/CampaignCriterionServiceDriver.rb +3 -3
- data/lib/adwords_api/v201008/CampaignCriterionServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201008/CampaignCriterionServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201008/CampaignService.rb +0 -0
- data/lib/adwords_api/v201008/CampaignServiceDriver.rb +3 -3
- data/lib/adwords_api/v201008/CampaignServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201008/CampaignServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201008/CampaignTargetService.rb +0 -0
- data/lib/adwords_api/v201008/CampaignTargetServiceDriver.rb +3 -3
- data/lib/adwords_api/v201008/CampaignTargetServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201008/CampaignTargetServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201008/CustomerSyncService.rb +0 -0
- data/lib/adwords_api/v201008/CustomerSyncServiceDriver.rb +2 -2
- data/lib/adwords_api/v201008/CustomerSyncServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201008/CustomerSyncServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201008/ExperimentService.rb +0 -0
- data/lib/adwords_api/v201008/ExperimentServiceDriver.rb +3 -3
- data/lib/adwords_api/v201008/ExperimentServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201008/ExperimentServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201008/GeoLocationService.rb +0 -0
- data/lib/adwords_api/v201008/GeoLocationServiceDriver.rb +2 -2
- data/lib/adwords_api/v201008/GeoLocationServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201008/GeoLocationServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201008/InfoService.rb +0 -0
- data/lib/adwords_api/v201008/InfoServiceDriver.rb +2 -2
- data/lib/adwords_api/v201008/InfoServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201008/InfoServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201008/MediaService.rb +203 -203
- data/lib/adwords_api/v201008/MediaServiceDriver.rb +3 -3
- data/lib/adwords_api/v201008/MediaServiceMappingRegistry.rb +54 -54
- data/lib/adwords_api/v201008/MediaServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201008/ReportDefinitionService.rb +0 -0
- data/lib/adwords_api/v201008/ReportDefinitionServiceDriver.rb +4 -4
- data/lib/adwords_api/v201008/ReportDefinitionServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201008/ReportDefinitionServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201008/ServicedAccountService.rb +0 -0
- data/lib/adwords_api/v201008/ServicedAccountServiceDriver.rb +2 -2
- data/lib/adwords_api/v201008/ServicedAccountServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201008/ServicedAccountServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201008/TargetingIdeaService.rb +0 -0
- data/lib/adwords_api/v201008/TargetingIdeaServiceDriver.rb +3 -3
- data/lib/adwords_api/v201008/TargetingIdeaServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201008/TargetingIdeaServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201008/TrafficEstimatorService.rb +0 -0
- data/lib/adwords_api/v201008/TrafficEstimatorServiceDriver.rb +2 -2
- data/lib/adwords_api/v201008/TrafficEstimatorServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201008/TrafficEstimatorServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201008/UserListService.rb +0 -0
- data/lib/adwords_api/v201008/UserListServiceDriver.rb +3 -3
- data/lib/adwords_api/v201008/UserListServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201008/UserListServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201101/AdExtensionOverrideService.rb +0 -0
- data/lib/adwords_api/v201101/AdExtensionOverrideServiceDriver.rb +3 -3
- data/lib/adwords_api/v201101/AdExtensionOverrideServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201101/AdExtensionOverrideServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201101/AdGroupAdService.rb +246 -246
- data/lib/adwords_api/v201101/AdGroupAdServiceDriver.rb +3 -3
- data/lib/adwords_api/v201101/AdGroupAdServiceMappingRegistry.rb +94 -94
- data/lib/adwords_api/v201101/AdGroupAdServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201101/AdGroupCriterionService.rb +0 -0
- data/lib/adwords_api/v201101/AdGroupCriterionServiceDriver.rb +3 -3
- data/lib/adwords_api/v201101/AdGroupCriterionServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201101/AdGroupCriterionServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201101/AdGroupService.rb +0 -0
- data/lib/adwords_api/v201101/AdGroupServiceDriver.rb +3 -3
- data/lib/adwords_api/v201101/AdGroupServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201101/AdGroupServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201101/AdParamService.rb +0 -0
- data/lib/adwords_api/v201101/AdParamServiceDriver.rb +3 -3
- data/lib/adwords_api/v201101/AdParamServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201101/AdParamServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201101/AlertService.rb +0 -0
- data/lib/adwords_api/v201101/AlertServiceDriver.rb +2 -2
- data/lib/adwords_api/v201101/AlertServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201101/AlertServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201101/BulkMutateJobService.rb +0 -13
- data/lib/adwords_api/v201101/BulkMutateJobServiceDriver.rb +3 -3
- data/lib/adwords_api/v201101/BulkMutateJobServiceMappingRegistry.rb +0 -20
- data/lib/adwords_api/v201101/BulkMutateJobServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201101/BulkOpportunityService.rb +0 -0
- data/lib/adwords_api/v201101/BulkOpportunityServiceDriver.rb +2 -2
- data/lib/adwords_api/v201101/BulkOpportunityServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201101/BulkOpportunityServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201101/CampaignAdExtensionService.rb +0 -0
- data/lib/adwords_api/v201101/CampaignAdExtensionServiceDriver.rb +3 -3
- data/lib/adwords_api/v201101/CampaignAdExtensionServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201101/CampaignAdExtensionServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201101/CampaignCriterionService.rb +0 -0
- data/lib/adwords_api/v201101/CampaignCriterionServiceDriver.rb +3 -3
- data/lib/adwords_api/v201101/CampaignCriterionServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201101/CampaignCriterionServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201101/CampaignService.rb +0 -0
- data/lib/adwords_api/v201101/CampaignServiceDriver.rb +3 -3
- data/lib/adwords_api/v201101/CampaignServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201101/CampaignServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201101/CampaignTargetService.rb +0 -13
- data/lib/adwords_api/v201101/CampaignTargetServiceDriver.rb +3 -3
- data/lib/adwords_api/v201101/CampaignTargetServiceMappingRegistry.rb +0 -20
- data/lib/adwords_api/v201101/CampaignTargetServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201101/ConversionTrackerService.rb +27 -0
- data/lib/adwords_api/v201101/ConversionTrackerServiceDriver.rb +3 -3
- data/lib/adwords_api/v201101/ConversionTrackerServiceMappingRegistry.rb +36 -0
- data/lib/adwords_api/v201101/ConversionTrackerServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201101/CustomerSyncService.rb +0 -0
- data/lib/adwords_api/v201101/CustomerSyncServiceDriver.rb +2 -2
- data/lib/adwords_api/v201101/CustomerSyncServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201101/CustomerSyncServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201101/DataService.rb +0 -0
- data/lib/adwords_api/v201101/DataServiceDriver.rb +3 -3
- data/lib/adwords_api/v201101/DataServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201101/DataServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201101/ExperimentService.rb +0 -0
- data/lib/adwords_api/v201101/ExperimentServiceDriver.rb +3 -3
- data/lib/adwords_api/v201101/ExperimentServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201101/ExperimentServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201101/GeoLocationService.rb +0 -0
- data/lib/adwords_api/v201101/GeoLocationServiceDriver.rb +2 -2
- data/lib/adwords_api/v201101/GeoLocationServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201101/GeoLocationServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201101/InfoService.rb +0 -0
- data/lib/adwords_api/v201101/InfoServiceDriver.rb +2 -2
- data/lib/adwords_api/v201101/InfoServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201101/InfoServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201101/MediaService.rb +203 -203
- data/lib/adwords_api/v201101/MediaServiceDriver.rb +3 -3
- data/lib/adwords_api/v201101/MediaServiceMappingRegistry.rb +54 -54
- data/lib/adwords_api/v201101/MediaServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201101/ReportDefinitionService.rb +0 -0
- data/lib/adwords_api/v201101/ReportDefinitionServiceDriver.rb +4 -4
- data/lib/adwords_api/v201101/ReportDefinitionServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201101/ReportDefinitionServiceWrapper.rb +16 -2
- data/lib/adwords_api/v201101/ServicedAccountService.rb +0 -0
- data/lib/adwords_api/v201101/ServicedAccountServiceDriver.rb +2 -2
- data/lib/adwords_api/v201101/ServicedAccountServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201101/ServicedAccountServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201101/TargetingIdeaService.rb +0 -0
- data/lib/adwords_api/v201101/TargetingIdeaServiceDriver.rb +3 -3
- data/lib/adwords_api/v201101/TargetingIdeaServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201101/TargetingIdeaServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201101/TrafficEstimatorService.rb +0 -0
- data/lib/adwords_api/v201101/TrafficEstimatorServiceDriver.rb +2 -2
- data/lib/adwords_api/v201101/TrafficEstimatorServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201101/TrafficEstimatorServiceWrapper.rb +2 -2
- data/lib/adwords_api/v201101/UserListService.rb +0 -0
- data/lib/adwords_api/v201101/UserListServiceDriver.rb +3 -3
- data/lib/adwords_api/v201101/UserListServiceMappingRegistry.rb +0 -0
- data/lib/adwords_api/v201101/UserListServiceWrapper.rb +2 -2
- metadata +205 -211
data/COPYING
ADDED
@@ -0,0 +1,201 @@
|
|
1
|
+
Apache License
|
2
|
+
Version 2.0, January 2004
|
3
|
+
http://www.apache.org/licenses/
|
4
|
+
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
6
|
+
|
7
|
+
1. Definitions.
|
8
|
+
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
11
|
+
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
13
|
+
the copyright owner that is granting the License.
|
14
|
+
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
16
|
+
other entities that control, are controlled by, or are under common
|
17
|
+
control with that entity. For the purposes of this definition,
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
19
|
+
direction or management of such entity, whether by contract or
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
22
|
+
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
24
|
+
exercising permissions granted by this License.
|
25
|
+
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
27
|
+
including but not limited to software source code, documentation
|
28
|
+
source, and configuration files.
|
29
|
+
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
31
|
+
transformation or translation of a Source form, including but
|
32
|
+
not limited to compiled object code, generated documentation,
|
33
|
+
and conversions to other media types.
|
34
|
+
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
36
|
+
Object form, made available under the License, as indicated by a
|
37
|
+
copyright notice that is included in or attached to the work
|
38
|
+
(an example is provided in the Appendix below).
|
39
|
+
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
46
|
+
the Work and Derivative Works thereof.
|
47
|
+
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
49
|
+
the original version of the Work and any modifications or additions
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
61
|
+
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
64
|
+
subsequently incorporated within the Work.
|
65
|
+
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
72
|
+
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
78
|
+
where such license applies only to those patent claims licensable
|
79
|
+
by such Contributor that are necessarily infringed by their
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
82
|
+
institute patent litigation against any entity (including a
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
85
|
+
or contributory patent infringement, then any patent licenses
|
86
|
+
granted to You under this License for that Work shall terminate
|
87
|
+
as of the date such litigation is filed.
|
88
|
+
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
91
|
+
modifications, and in Source or Object form, provided that You
|
92
|
+
meet the following conditions:
|
93
|
+
|
94
|
+
(a) You must give any other recipients of the Work or
|
95
|
+
Derivative Works a copy of this License; and
|
96
|
+
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
98
|
+
stating that You changed the files; and
|
99
|
+
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
102
|
+
attribution notices from the Source form of the Work,
|
103
|
+
excluding those notices that do not pertain to any part of
|
104
|
+
the Derivative Works; and
|
105
|
+
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
108
|
+
include a readable copy of the attribution notices contained
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
111
|
+
of the following places: within a NOTICE text file distributed
|
112
|
+
as part of the Derivative Works; within the Source form or
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
114
|
+
within a display generated by the Derivative Works, if and
|
115
|
+
wherever such third-party notices normally appear. The contents
|
116
|
+
of the NOTICE file are for informational purposes only and
|
117
|
+
do not modify the License. You may add Your own attribution
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
120
|
+
that such additional attribution notices cannot be construed
|
121
|
+
as modifying the License.
|
122
|
+
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
124
|
+
may provide additional or different license terms and conditions
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
128
|
+
the conditions stated in this License.
|
129
|
+
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
133
|
+
this License, without any additional terms or conditions.
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
135
|
+
the terms of any separate license agreement you may have executed
|
136
|
+
with Licensor regarding such Contributions.
|
137
|
+
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
140
|
+
except as required for reasonable and customary use in describing the
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
142
|
+
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
152
|
+
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
158
|
+
incidental, or consequential damages of any character arising as a
|
159
|
+
result of this License or out of the use or inability to use the
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
162
|
+
other commercial damages or losses), even if such Contributor
|
163
|
+
has been advised of the possibility of such damages.
|
164
|
+
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
168
|
+
or other liability obligations and/or rights consistent with this
|
169
|
+
License. However, in accepting such obligations, You may act only
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
174
|
+
of your accepting any such warranty or additional liability.
|
175
|
+
|
176
|
+
END OF TERMS AND CONDITIONS
|
177
|
+
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
179
|
+
|
180
|
+
To apply the Apache License to your work, attach the following
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
182
|
+
replaced with your own identifying information. (Don't include
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
184
|
+
comment syntax for the file format. We also recommend that a
|
185
|
+
file or class name and description of purpose be included on the
|
186
|
+
same "printed page" as the copyright notice for easier
|
187
|
+
identification within third-party archives.
|
188
|
+
|
189
|
+
Copyright 2011 Google Inc.
|
190
|
+
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
192
|
+
you may not use this file except in compliance with the License.
|
193
|
+
You may obtain a copy of the License at
|
194
|
+
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
196
|
+
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
200
|
+
See the License for the specific language governing permissions and
|
201
|
+
limitations under the License.
|
data/ChangeLog
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
0.1.2:
|
2
|
+
- Support for cross-client MCC reports.
|
3
|
+
- Documented library use for DoubleClick Ad Exchange Buyer API.
|
4
|
+
- Require google-ads-common 0.2.1 or later from now on.
|
5
|
+
|
6
|
+
0.1.1:
|
7
|
+
- Added support for BulkOpportunityService and CampaignTargetService.
|
8
|
+
- Added examples for the above services.
|
9
|
+
- Bugfix: pointed gem to the correct Google Code project.
|
10
|
+
- Bugfix: correctly handle some API exceptions.
|
11
|
+
- Bugfix: remove non-existent method in extensions.
|
12
|
+
|
13
|
+
0.1.0:
|
14
|
+
- First release.
|
data/README
CHANGED
@@ -1,11 +1,10 @@
|
|
1
|
-
= Google AdWords Client Library
|
1
|
+
= Google AdWords and DoubleClick Ad Exchange Buyer Client Library
|
2
2
|
|
3
3
|
Welcome to the next generation Google-developed Ruby client library for the
|
4
|
-
AdWords API!
|
4
|
+
AdWords and DoubleClick Ad Exchange Buyer API!
|
5
5
|
|
6
|
-
Please note that this is an early PREVIEW of the client library, under
|
7
|
-
development
|
8
|
-
still missing or being worked on.
|
6
|
+
Please note that this is an early PREVIEW of the client library, still under
|
7
|
+
development.
|
9
8
|
|
10
9
|
It contains full support for v13, v200909, v201003, v201008 and v201101, with
|
11
10
|
full stubs, and a simplified programming interface that lets you handle
|
@@ -17,15 +16,21 @@ library-generated objects.
|
|
17
16
|
|
18
17
|
== 1 - Installation:
|
19
18
|
|
20
|
-
google-adwords-api
|
19
|
+
google-adwords-api and google-adx-buyer-api are ruby gems.
|
20
|
+
See http://docs.rubygems.org/read/book/1
|
21
21
|
|
22
|
-
Install
|
22
|
+
Install them using the gem install command:
|
23
23
|
$ gem install --remote google-adwords-api
|
24
|
+
$ gem install --remote google-adx-buyer-api
|
25
|
+
|
26
|
+
Please note the google-adx-buyer-api gem contains only DoubleClick Ad Exchange
|
27
|
+
Buyer client library examples. You need the AdWords library in order to use it
|
28
|
+
which is installed automatically as a dependency.
|
24
29
|
|
25
30
|
The following gem libraries are required:
|
26
31
|
- soap4r v1.5.8
|
27
32
|
- httpclient v2.1.2 or greater
|
28
|
-
- google-ads-common v0.1.
|
33
|
+
- google-ads-common v0.2.1 or later.
|
29
34
|
|
30
35
|
|
31
36
|
== 2 - Using the client library:
|
@@ -47,9 +52,10 @@ Then:
|
|
47
52
|
|
48
53
|
adwords = AdwordsApi::Api.new
|
49
54
|
creates an Api object that will grant you access to all the services for all of
|
50
|
-
the currently supported vesions of the
|
55
|
+
the currently supported vesions of the APIs. It uses a config file in:
|
51
56
|
ENV['HOME']/adwords_api.yml to read all of your configurations.
|
52
|
-
There is an example
|
57
|
+
There is an example configuration file shipped with these libraries.
|
58
|
+
|
53
59
|
You can also pass API a manually constructed config hash like:
|
54
60
|
adwords = AdwordsApi::Api.new({
|
55
61
|
:authentication => {
|
@@ -70,7 +76,7 @@ Then, just specify which service you're looking to use, and which version:
|
|
70
76
|
|
71
77
|
and you should now be able to just use the API methods in the object you were
|
72
78
|
returned:
|
73
|
-
campaigns = campaign_srv.get({})
|
79
|
+
campaigns = campaign_srv.get({}) # Empty selector to get all
|
74
80
|
|
75
81
|
See the code in the examples directory for working examples you can build from.
|
76
82
|
|
@@ -95,7 +101,7 @@ The 'get' method, on the other hand, returns a ReportDefinitionPage object which
|
|
95
101
|
has an 'entries' and a 'total_num_entries' field. So, to access the return
|
96
102
|
values, you would do:
|
97
103
|
response = report_def_srv.get(selector)
|
98
|
-
num_entries = response[:
|
104
|
+
num_entries = response[:total_num_entries]
|
99
105
|
|
100
106
|
Essentially, all you have to do is follow Ruby conventions, and the library will
|
101
107
|
do the rest. All of the examples are written following this standard.
|
@@ -122,9 +128,9 @@ In order to use the sandbox, make sure that the 'environment' parameter under
|
|
122
128
|
It is often useful to see a trace of the raw SOAP XML being sent and received.
|
123
129
|
The quickest way of achieving this when debugging your application is by setting
|
124
130
|
the ADWORDSAPI_DEBUG environment variable to TRUE; e.g. in the bash shell:
|
125
|
-
$ export ADWORDSAPI_DEBUG=
|
131
|
+
$ export ADWORDSAPI_DEBUG=true
|
126
132
|
or from your Ruby code:
|
127
|
-
ENV['ADWORDSAPI_DEBUG'] = '
|
133
|
+
ENV['ADWORDSAPI_DEBUG'] = 'true'
|
128
134
|
|
129
135
|
This will output the SOAP XML to stderr, which will usually show up in your
|
130
136
|
terminal window.
|
@@ -148,6 +154,8 @@ The files will be named request_info and soap_xml, respectively.
|
|
148
154
|
|
149
155
|
= Docs for Developers
|
150
156
|
|
157
|
+
== Rake targets
|
158
|
+
|
151
159
|
$ rake getwsdl
|
152
160
|
to get the wsdl files
|
153
161
|
|
@@ -161,8 +169,21 @@ to package the gem and create a release
|
|
161
169
|
to run unit tests on the library
|
162
170
|
|
163
171
|
|
172
|
+
== Where do I submit bug reports and feature requests?
|
173
|
+
|
174
|
+
Bug reports and feature requests can be posted on the library page:
|
175
|
+
|
176
|
+
http://code.google.com/p/google-api-ads-ruby/issues
|
177
|
+
|
178
|
+
Questions can be asked on forum
|
179
|
+
|
180
|
+
http://groups.google.com/group/adwords-api
|
181
|
+
|
182
|
+
|
164
183
|
= Copyright/License Info
|
165
184
|
|
185
|
+
== Licence
|
186
|
+
|
166
187
|
Copyright 2011, Google Inc. All Rights Reserved.
|
167
188
|
|
168
189
|
Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -176,3 +197,12 @@ distributed under the License is distributed on an "AS IS" BASIS,
|
|
176
197
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
177
198
|
See the License for the specific language governing permissions and
|
178
199
|
limitations under the License.
|
200
|
+
|
201
|
+
== Authors
|
202
|
+
|
203
|
+
Authors:
|
204
|
+
api.sgomes (Sérgio Gomes)
|
205
|
+
api.dklimkin@gmail.com (Danial Klimkin)
|
206
|
+
|
207
|
+
Maintainer:
|
208
|
+
api.dklimkin@gmail.com (Danial Klimkin)
|
data/Rakefile
CHANGED
@@ -36,7 +36,7 @@ $GEM_NAME = 'google-adwords-api'
|
|
36
36
|
$API_NAME = 'AdWords API'
|
37
37
|
$CURRENT_VERSION = AdwordsApi::ApiConfig::CLIENT_LIB_VERSION
|
38
38
|
$PRODDIR = 'adwords_api'
|
39
|
-
$ADS_COMMON_VERSION = '~> 0.2.
|
39
|
+
$ADS_COMMON_VERSION = '~> 0.2.1'
|
40
40
|
|
41
41
|
# Configure module / namespace
|
42
42
|
$MODULE = AdwordsApi
|
data/adwords_api.yml
CHANGED
@@ -69,7 +69,7 @@ def add_ad_group_criteria()
|
|
69
69
|
|
70
70
|
# Add criteria.
|
71
71
|
response = ad_group_criterion_srv.mutate([kwd_operation, plc_operation])
|
72
|
-
if response and
|
72
|
+
if response and response[:value]
|
73
73
|
ad_group_criteria = response[:value]
|
74
74
|
puts "Added #{ad_group_criteria.length} criteria to ad group " +
|
75
75
|
"#{ad_group_id}."
|
@@ -190,7 +190,7 @@ if __FILE__ == $0
|
|
190
190
|
# To enable logging of SOAP requests, set the ADWORDSAPI_DEBUG environment
|
191
191
|
# variable to 'true'. This can be done either from your operating system
|
192
192
|
# environment or via code, as done below.
|
193
|
-
ENV['ADWORDSAPI_DEBUG'] = '
|
193
|
+
ENV['ADWORDSAPI_DEBUG'] = 'false'
|
194
194
|
|
195
195
|
begin
|
196
196
|
perform_bulk_mutate_job()
|
@@ -56,24 +56,21 @@ def get_related_placements()
|
|
56
56
|
}
|
57
57
|
}
|
58
58
|
|
59
|
-
# Perform request.
|
60
59
|
results = []
|
61
60
|
index = 0
|
62
|
-
|
61
|
+
begin
|
62
|
+
selector[:paging][:start_index] = index
|
63
|
+
# Perform request.
|
63
64
|
page = targeting_idea_srv.get(selector)
|
64
|
-
if page and
|
65
|
-
results += page[:entries]
|
66
|
-
end
|
67
|
-
break if page[:total_num_entries] <= index
|
65
|
+
results += page[:entries] if page and page[:entries]
|
68
66
|
index += results_per_page
|
69
|
-
|
70
|
-
end
|
67
|
+
end while index < page[:total_num_entries]
|
71
68
|
|
72
69
|
# Display results.
|
73
70
|
results.each do |result|
|
74
71
|
data = AdwordsApi::Utils.map(result[:data])
|
75
72
|
placement = data['PLACEMENT'][:value]
|
76
|
-
puts "
|
73
|
+
puts "Related content keywords found at URL \"%s\"" % placement[:url]
|
77
74
|
end
|
78
75
|
puts "Total urls found with content keywords related to keywords at " +
|
79
76
|
" \"#{url}\": #{results.length}."
|
@@ -190,7 +190,7 @@ if __FILE__ == $0
|
|
190
190
|
# To enable logging of SOAP requests, set the ADWORDSAPI_DEBUG environment
|
191
191
|
# variable to 'true'. This can be done either from your operating system
|
192
192
|
# environment or via code, as done below.
|
193
|
-
ENV['ADWORDSAPI_DEBUG'] = '
|
193
|
+
ENV['ADWORDSAPI_DEBUG'] = 'false'
|
194
194
|
|
195
195
|
begin
|
196
196
|
perform_bulk_mutate_job()
|
@@ -75,7 +75,7 @@ if __FILE__ == $0
|
|
75
75
|
# To enable logging of SOAP requests, set the ADWORDSAPI_DEBUG environment
|
76
76
|
# variable to 'true'. This can be done either from your operating system
|
77
77
|
# environment or via code, as done below.
|
78
|
-
ENV['ADWORDSAPI_DEBUG'] = '
|
78
|
+
ENV['ADWORDSAPI_DEBUG'] = 'false'
|
79
79
|
|
80
80
|
begin
|
81
81
|
get_all_bulk_mutate_jobs()
|
@@ -190,7 +190,7 @@ if __FILE__ == $0
|
|
190
190
|
# To enable logging of SOAP requests, set the ADWORDSAPI_DEBUG environment
|
191
191
|
# variable to 'true'. This can be done either from your operating system
|
192
192
|
# environment or via code, as done below.
|
193
|
-
ENV['ADWORDSAPI_DEBUG'] = '
|
193
|
+
ENV['ADWORDSAPI_DEBUG'] = 'false'
|
194
194
|
|
195
195
|
begin
|
196
196
|
perform_bulk_mutate_job()
|
@@ -20,6 +20,9 @@
|
|
20
20
|
# This example adds a cross client (MCC) report. To get ad groups, run
|
21
21
|
# get_all_ad_groups.rb. To get report fields, run get_report_fields.rb.
|
22
22
|
#
|
23
|
+
# Please note: This feature is still under development and may change before it
|
24
|
+
# is released.
|
25
|
+
#
|
23
26
|
# Tags: ReportDefinitionService.mutate
|
24
27
|
|
25
28
|
require 'rubygems'
|
@@ -34,12 +37,6 @@ def add_mcc_report_definition()
|
|
34
37
|
adwords = AdwordsApi::Api.new
|
35
38
|
report_def_srv = adwords.service(:ReportDefinitionService, API_VERSION)
|
36
39
|
|
37
|
-
# List of client logins to get report for ['abc@example.com', ...].
|
38
|
-
client_logins = []
|
39
|
-
|
40
|
-
# Prepare per-client selector.
|
41
|
-
client_selectors = client_logins.collect { |login| {:login => login} }
|
42
|
-
|
43
40
|
# Prepare for adding report definition.
|
44
41
|
operation = {
|
45
42
|
:operator => 'ADD',
|
@@ -53,8 +50,7 @@ def add_mcc_report_definition()
|
|
53
50
|
},
|
54
51
|
:date_range_type => 'LAST_MONTH',
|
55
52
|
:download_format => 'XML',
|
56
|
-
:cross_client => true
|
57
|
-
:client_selectors => client_selectors
|
53
|
+
:cross_client => true
|
58
54
|
}
|
59
55
|
}
|
60
56
|
|