google-adwords-api 0.15.2 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/ChangeLog +7 -0
- data/adwords_api.yml +3 -2
- data/examples/v201506/basic_operations/get_keywords.rb +4 -3
- data/examples/v201506/misc/{create_ad_words_session_without_properties_file.rb → use_runtime_config.rb} +2 -2
- data/lib/adwords_api.rb +1 -1
- data/lib/adwords_api/api_config.rb +0 -86
- data/lib/adwords_api/report_header_handler.rb +4 -4
- data/lib/adwords_api/version.rb +1 -1
- data/test/templates/v201502/basic_operations_get_campaigns.def +1 -1
- data/test/templates/v201502/{misc_use_oauth2_jwt.def → misc_use_oauth2_service_account.def} +2 -2
- data/test/templates/v201506/basic_operations_get_campaigns.def +1 -1
- data/test/templates/v201506/{misc_use_oauth2_jwt.def → misc_use_oauth2_service_account.def} +2 -2
- metadata +7 -160
- data/examples/v201409/account_management/create_account.rb +0 -92
- data/examples/v201409/account_management/get_account_changes.rb +0 -145
- data/examples/v201409/account_management/get_account_hierarchy.rb +0 -102
- data/examples/v201409/advanced_operations/add_ad_customizers.rb +0 -277
- data/examples/v201409/advanced_operations/add_ad_group_bid_modifier.rb +0 -105
- data/examples/v201409/advanced_operations/add_click_to_download_ad.rb +0 -137
- data/examples/v201409/advanced_operations/add_text_ad_with_upgraded_urls.rb +0 -137
- data/examples/v201409/advanced_operations/get_ad_group_bid_modifiers.rb +0 -106
- data/examples/v201409/advanced_operations/upload_offline_conversions.rb +0 -117
- data/examples/v201409/advanced_operations/use_shared_bidding_strategy.rb +0 -152
- data/examples/v201409/basic_operations/add_ad_groups.rb +0 -144
- data/examples/v201409/basic_operations/add_campaigns.rb +0 -143
- data/examples/v201409/basic_operations/add_keywords.rb +0 -118
- data/examples/v201409/basic_operations/add_text_ads.rb +0 -113
- data/examples/v201409/basic_operations/get_ad_groups.rb +0 -106
- data/examples/v201409/basic_operations/get_campaigns.rb +0 -101
- data/examples/v201409/basic_operations/get_campaigns_with_awql.rb +0 -93
- data/examples/v201409/basic_operations/get_keywords.rb +0 -112
- data/examples/v201409/basic_operations/get_text_ads.rb +0 -114
- data/examples/v201409/basic_operations/pause_ad.rb +0 -92
- data/examples/v201409/basic_operations/remove_ad.rb +0 -93
- data/examples/v201409/basic_operations/remove_ad_group.rb +0 -89
- data/examples/v201409/basic_operations/remove_campaign.rb +0 -91
- data/examples/v201409/basic_operations/remove_keyword.rb +0 -98
- data/examples/v201409/basic_operations/update_ad_group.rb +0 -89
- data/examples/v201409/basic_operations/update_campaign.rb +0 -90
- data/examples/v201409/basic_operations/update_keyword.rb +0 -110
- data/examples/v201409/campaign_management/add_campaign_labels.rb +0 -86
- data/examples/v201409/campaign_management/add_experiment.rb +0 -166
- data/examples/v201409/campaign_management/add_keywords_in_bulk.rb +0 -158
- data/examples/v201409/campaign_management/add_location_extension.rb +0 -125
- data/examples/v201409/campaign_management/get_all_disapproved_ads.rb +0 -101
- data/examples/v201409/campaign_management/get_all_disapproved_ads_with_awql.rb +0 -93
- data/examples/v201409/campaign_management/get_campaigns_by_label.rb +0 -112
- data/examples/v201409/campaign_management/promote_experiment.rb +0 -85
- data/examples/v201409/campaign_management/set_ad_parameters.rb +0 -122
- data/examples/v201409/campaign_management/set_criterion_bid_modifier.rb +0 -108
- data/examples/v201409/campaign_management/validate_text_ad.rb +0 -114
- data/examples/v201409/error_handling/handle_partial_failures.rb +0 -134
- data/examples/v201409/error_handling/handle_policy_violation_error.rb +0 -145
- data/examples/v201409/extensions/add_google_my_business_location_extensions.rb +0 -183
- data/examples/v201409/extensions/add_site_links.rb +0 -167
- data/examples/v201409/extensions/add_site_links_using_feeds.rb +0 -306
- data/examples/v201409/migration/migrate_to_extension_settings.rb +0 -392
- data/examples/v201409/migration/upgrade_ad_url.rb +0 -97
- data/examples/v201409/misc/create_ad_words_session_without_properties_file.rb +0 -94
- data/examples/v201409/misc/get_all_images_and_videos.rb +0 -108
- data/examples/v201409/misc/setup_oauth2.rb +0 -88
- data/examples/v201409/misc/upload_image.rb +0 -97
- data/examples/v201409/misc/use_oauth2_jwt.rb +0 -97
- data/examples/v201409/optimization/estimate_keyword_traffic.rb +0 -155
- data/examples/v201409/optimization/get_keyword_bid_simulations.rb +0 -100
- data/examples/v201409/optimization/get_keyword_ideas.rb +0 -130
- data/examples/v201409/remarketing/add_audience.rb +0 -122
- data/examples/v201409/remarketing/add_conversion_tracker.rb +0 -105
- data/examples/v201409/remarketing/add_rule_based_user_lists.rb +0 -171
- data/examples/v201409/reporting/download_criteria_report.rb +0 -87
- data/examples/v201409/reporting/download_criteria_report_with_awql.rb +0 -86
- data/examples/v201409/reporting/get_report_fields.rb +0 -79
- data/examples/v201409/reporting/parallel_report_download.rb +0 -171
- data/examples/v201409/shopping_campaigns/add_product_partition_tree.rb +0 -269
- data/examples/v201409/shopping_campaigns/add_product_scope.rb +0 -133
- data/examples/v201409/shopping_campaigns/add_shopping_campaign.rb +0 -131
- data/examples/v201409/shopping_campaigns/get_product_category_taxonomy.rb +0 -117
- data/examples/v201409/targeting/add_campaign_targeting_criteria.rb +0 -173
- data/examples/v201409/targeting/add_demographic_targeting_criteria.rb +0 -116
- data/examples/v201409/targeting/get_campaign_targeting_criteria.rb +0 -110
- data/examples/v201409/targeting/get_targetable_languages_and_carriers.rb +0 -94
- data/examples/v201409/targeting/lookup_location.rb +0 -112
- data/lib/adwords_api/v201409/ad_customizer_feed_service.rb +0 -38
- data/lib/adwords_api/v201409/ad_customizer_feed_service_registry.rb +0 -46
- data/lib/adwords_api/v201409/ad_group_ad_service.rb +0 -50
- data/lib/adwords_api/v201409/ad_group_ad_service_registry.rb +0 -46
- data/lib/adwords_api/v201409/ad_group_bid_modifier_service.rb +0 -42
- data/lib/adwords_api/v201409/ad_group_bid_modifier_service_registry.rb +0 -46
- data/lib/adwords_api/v201409/ad_group_criterion_service.rb +0 -46
- data/lib/adwords_api/v201409/ad_group_criterion_service_registry.rb +0 -46
- data/lib/adwords_api/v201409/ad_group_extension_setting_service.rb +0 -42
- data/lib/adwords_api/v201409/ad_group_extension_setting_service_registry.rb +0 -46
- data/lib/adwords_api/v201409/ad_group_feed_service.rb +0 -42
- data/lib/adwords_api/v201409/ad_group_feed_service_registry.rb +0 -46
- data/lib/adwords_api/v201409/ad_group_service.rb +0 -46
- data/lib/adwords_api/v201409/ad_group_service_registry.rb +0 -46
- data/lib/adwords_api/v201409/ad_param_service.rb +0 -38
- data/lib/adwords_api/v201409/ad_param_service_registry.rb +0 -46
- data/lib/adwords_api/v201409/adwords_user_list_service.rb +0 -38
- data/lib/adwords_api/v201409/adwords_user_list_service_registry.rb +0 -46
- data/lib/adwords_api/v201409/bidding_strategy_service.rb +0 -42
- data/lib/adwords_api/v201409/bidding_strategy_service_registry.rb +0 -46
- data/lib/adwords_api/v201409/budget_order_service.rb +0 -42
- data/lib/adwords_api/v201409/budget_order_service_registry.rb +0 -46
- data/lib/adwords_api/v201409/budget_service.rb +0 -42
- data/lib/adwords_api/v201409/budget_service_registry.rb +0 -46
- data/lib/adwords_api/v201409/campaign_ad_extension_service.rb +0 -38
- data/lib/adwords_api/v201409/campaign_ad_extension_service_registry.rb +0 -46
- data/lib/adwords_api/v201409/campaign_criterion_service.rb +0 -42
- data/lib/adwords_api/v201409/campaign_criterion_service_registry.rb +0 -46
- data/lib/adwords_api/v201409/campaign_extension_setting_service.rb +0 -42
- data/lib/adwords_api/v201409/campaign_extension_setting_service_registry.rb +0 -46
- data/lib/adwords_api/v201409/campaign_feed_service.rb +0 -42
- data/lib/adwords_api/v201409/campaign_feed_service_registry.rb +0 -46
- data/lib/adwords_api/v201409/campaign_service.rb +0 -46
- data/lib/adwords_api/v201409/campaign_service_registry.rb +0 -46
- data/lib/adwords_api/v201409/campaign_shared_set_service.rb +0 -38
- data/lib/adwords_api/v201409/campaign_shared_set_service_registry.rb +0 -47
- data/lib/adwords_api/v201409/constant_data_service.rb +0 -66
- data/lib/adwords_api/v201409/constant_data_service_registry.rb +0 -46
- data/lib/adwords_api/v201409/conversion_tracker_service.rb +0 -38
- data/lib/adwords_api/v201409/conversion_tracker_service_registry.rb +0 -46
- data/lib/adwords_api/v201409/customer_extension_setting_service.rb +0 -42
- data/lib/adwords_api/v201409/customer_extension_setting_service_registry.rb +0 -46
- data/lib/adwords_api/v201409/customer_feed_service.rb +0 -42
- data/lib/adwords_api/v201409/customer_feed_service_registry.rb +0 -46
- data/lib/adwords_api/v201409/customer_service.rb +0 -38
- data/lib/adwords_api/v201409/customer_service_registry.rb +0 -46
- data/lib/adwords_api/v201409/customer_sync_service.rb +0 -34
- data/lib/adwords_api/v201409/customer_sync_service_registry.rb +0 -47
- data/lib/adwords_api/v201409/data_service.rb +0 -54
- data/lib/adwords_api/v201409/data_service_registry.rb +0 -46
- data/lib/adwords_api/v201409/experiment_service.rb +0 -38
- data/lib/adwords_api/v201409/experiment_service_registry.rb +0 -46
- data/lib/adwords_api/v201409/feed_item_service.rb +0 -42
- data/lib/adwords_api/v201409/feed_item_service_registry.rb +0 -46
- data/lib/adwords_api/v201409/feed_mapping_service.rb +0 -42
- data/lib/adwords_api/v201409/feed_mapping_service_registry.rb +0 -46
- data/lib/adwords_api/v201409/feed_service.rb +0 -42
- data/lib/adwords_api/v201409/feed_service_registry.rb +0 -46
- data/lib/adwords_api/v201409/geo_location_service.rb +0 -34
- data/lib/adwords_api/v201409/geo_location_service_registry.rb +0 -46
- data/lib/adwords_api/v201409/label_service.rb +0 -42
- data/lib/adwords_api/v201409/label_service_registry.rb +0 -46
- data/lib/adwords_api/v201409/location_criterion_service.rb +0 -38
- data/lib/adwords_api/v201409/location_criterion_service_registry.rb +0 -46
- data/lib/adwords_api/v201409/managed_customer_service.rb +0 -50
- data/lib/adwords_api/v201409/managed_customer_service_registry.rb +0 -46
- data/lib/adwords_api/v201409/media_service.rb +0 -42
- data/lib/adwords_api/v201409/media_service_registry.rb +0 -46
- data/lib/adwords_api/v201409/mutate_job_service.rb +0 -42
- data/lib/adwords_api/v201409/mutate_job_service_registry.rb +0 -46
- data/lib/adwords_api/v201409/offline_conversion_feed_service.rb +0 -34
- data/lib/adwords_api/v201409/offline_conversion_feed_service_registry.rb +0 -46
- data/lib/adwords_api/v201409/report_definition_service.rb +0 -34
- data/lib/adwords_api/v201409/report_definition_service_registry.rb +0 -46
- data/lib/adwords_api/v201409/shared_criterion_service.rb +0 -38
- data/lib/adwords_api/v201409/shared_criterion_service_registry.rb +0 -47
- data/lib/adwords_api/v201409/shared_set_service.rb +0 -38
- data/lib/adwords_api/v201409/shared_set_service_registry.rb +0 -47
- data/lib/adwords_api/v201409/targeting_idea_service.rb +0 -34
- data/lib/adwords_api/v201409/targeting_idea_service_registry.rb +0 -46
- data/lib/adwords_api/v201409/traffic_estimator_service.rb +0 -34
- data/lib/adwords_api/v201409/traffic_estimator_service_registry.rb +0 -46
- data/test/templates/v201409/basic_operations_get_campaigns.def +0 -116
- data/test/templates/v201409/misc_use_oauth2_jwt.def +0 -131
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Yjg2ZTM4NWU3YTMxMWNhZjgxMGU5NDVlZjU1ZmU2ZmU0YWIwZTZlNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NWM0OWNiMmI3NTQzMTIxZWQ0MWY1ZjhjZmExMjZlM2ZlYzVkMTQxMQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YmEwZWViZWNjMzZjYTliYzczNTI3NTk3MzA4ZWM2NTVhNWQ4NmQ5NDk3YmJk
|
10
|
+
YmQyYTJjZGQ4ZjY5Mzk4NDVhNDc2NDA5ZjBlZDIxMWYzZDQ4NWM4NmQ4ZTBk
|
11
|
+
OGQ1OGRmYmZmMzc5ZDE2YmQ5Yzk1MGY2YjgwMzkwMTY4ZmMzMDI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YzEwYzVlNmIwNDU4NmFiYTQ1N2IzMDlkMmNiZmYxODk5ZWNlNjVhNTFhYmZi
|
14
|
+
NjllYjQ3MjVlMjA2YWY0ZGE2NjNiYjI5NmY4YzFhMmRkNGY0M2I0ZjYxMDdm
|
15
|
+
NzRiMGUyNTI5Mzg4ZGJjYzZhOGUyN2VhNTg3MDkzODhlZjNhZTE=
|
data/ChangeLog
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
0.16.0:
|
2
|
+
- Removed deprecated API version v201409.
|
3
|
+
- Changed OAUTH2 JWT references to OAUTH2 Service Account.
|
4
|
+
- Require google-ads-common 0.10.0 or later from now on.
|
5
|
+
- Allowing report headers to be defined as booleans (this restores previous
|
6
|
+
behavior).
|
7
|
+
|
1
8
|
0.15.2:
|
2
9
|
- Support and examples for v201502.
|
3
10
|
- Added support for including zero impression rows in reports via HTTP header.
|
data/adwords_api.yml
CHANGED
@@ -2,7 +2,8 @@
|
|
2
2
|
# This is an example configuration file for the AdWords API client library.
|
3
3
|
# Please fill in the required fields, and copy it over to your home directory.
|
4
4
|
:authentication:
|
5
|
-
# Authentication method, methods currently supported:
|
5
|
+
# Authentication method, methods currently supported:
|
6
|
+
# OAUTH2, OAUTH2_SERVICE_ACCOUNT.
|
6
7
|
:method: OAuth2
|
7
8
|
|
8
9
|
# Auth parameters for OAUTH2 method.
|
@@ -17,7 +18,7 @@
|
|
17
18
|
#:oauth2_access_type: INSERT_OAUTH2_ACCESS_TYPE_HERE
|
18
19
|
#:oauth2_approval_prompt: INSERT_OAUTH2_APPROVAL_PROMPT_HERE
|
19
20
|
|
20
|
-
# Auth parameters for
|
21
|
+
# Auth parameters for OAUTH2_SERVICE_ACCOUNT method. See:
|
21
22
|
# https://developers.google.com/accounts/docs/OAuth2ServiceAccount
|
22
23
|
#:oauth2_issuer: INSERT_OAUTH2_ISSUER_HERE
|
23
24
|
#:oauth2_secret: INSERT_OAUTH2_SECRET_HERE
|
@@ -39,7 +39,7 @@ def get_keywords(ad_group_id)
|
|
39
39
|
|
40
40
|
# Get all keywords for this ad group.
|
41
41
|
selector = {
|
42
|
-
:fields => ['Id', 'CriteriaType', 'KeywordText'],
|
42
|
+
:fields => ['Id', 'CriteriaType', 'KeywordMatchType', 'KeywordText'],
|
43
43
|
:ordering => [
|
44
44
|
{:field => 'Id', :sort_order => 'ASCENDING'}
|
45
45
|
],
|
@@ -60,10 +60,11 @@ def get_keywords(ad_group_id)
|
|
60
60
|
page = ad_group_criterion_srv.get(selector)
|
61
61
|
if page[:entries]
|
62
62
|
page[:entries].each do |keyword|
|
63
|
-
puts "Keyword ID %d, type '%s' and
|
63
|
+
puts "Keyword ID %d, type '%s', text '%s', and match type '%s'" %
|
64
64
|
[keyword[:criterion][:id],
|
65
65
|
keyword[:criterion][:type],
|
66
|
-
keyword[:criterion][:text]
|
66
|
+
keyword[:criterion][:text],
|
67
|
+
keyword[:criterion][:match_type]]
|
67
68
|
end
|
68
69
|
# Increment values to request the next page.
|
69
70
|
offset += PAGE_SIZE
|
@@ -24,7 +24,7 @@
|
|
24
24
|
require 'adwords_api'
|
25
25
|
require 'date'
|
26
26
|
|
27
|
-
def
|
27
|
+
def use_runtime_config(client_id, client_secret, refresh_token,
|
28
28
|
developer_token, client_customer_id, user_agent)
|
29
29
|
# AdwordsApi::Api will read a config file from ENV['HOME']/adwords_api.yml
|
30
30
|
# when called without parameters.
|
@@ -65,7 +65,7 @@ if __FILE__ == $0
|
|
65
65
|
client_customer_id = 'INSERT_CLIENT_CUSTOMER_ID_HERE'
|
66
66
|
user_agent = 'INSERT_USER_AGENT_HERE'
|
67
67
|
|
68
|
-
|
68
|
+
use_runtime_config(client_id, client_secret, refresh_token,
|
69
69
|
developer_token, client_customer_id, user_agent)
|
70
70
|
|
71
71
|
# Authorization error.
|
data/lib/adwords_api.rb
CHANGED
@@ -62,7 +62,7 @@ module AdwordsApi
|
|
62
62
|
def soap_header_handler(auth_handler, version, header_ns, default_ns)
|
63
63
|
auth_method = @config.read('authentication.method', :OAUTH2)
|
64
64
|
handler_class = case auth_method
|
65
|
-
when :OAUTH2, :
|
65
|
+
when :OAUTH2, :OAUTH2_SERVICE_ACCOUNT
|
66
66
|
AdsCommon::SavonHeaders::OAuthHeaderHandler
|
67
67
|
else
|
68
68
|
raise AdsCommon::Errors::AuthError,
|
@@ -45,49 +45,6 @@ module AdwordsApi
|
|
45
45
|
|
46
46
|
# Configure the services available to each version
|
47
47
|
@@service_config = {
|
48
|
-
:v201409 => [
|
49
|
-
:AdCustomizerFeedService,
|
50
|
-
:AdGroupAdService,
|
51
|
-
:AdGroupBidModifierService,
|
52
|
-
:AdGroupCriterionService,
|
53
|
-
:AdGroupExtensionSettingService,
|
54
|
-
:AdGroupFeedService,
|
55
|
-
:AdGroupService,
|
56
|
-
:AdParamService,
|
57
|
-
:AdwordsUserListService,
|
58
|
-
:BiddingStrategyService,
|
59
|
-
:BudgetOrderService,
|
60
|
-
:BudgetService,
|
61
|
-
:CampaignAdExtensionService,
|
62
|
-
:CampaignCriterionService,
|
63
|
-
:CampaignExtensionSettingService,
|
64
|
-
:CampaignFeedService,
|
65
|
-
:CampaignService,
|
66
|
-
:CampaignSharedSetService,
|
67
|
-
:ConstantDataService,
|
68
|
-
:ConversionTrackerService,
|
69
|
-
:CustomerExtensionSettingService,
|
70
|
-
:CustomerFeedService,
|
71
|
-
:CustomerService,
|
72
|
-
:CustomerSyncService,
|
73
|
-
:DataService,
|
74
|
-
:ExperimentService,
|
75
|
-
:FeedItemService,
|
76
|
-
:FeedMappingService,
|
77
|
-
:FeedService,
|
78
|
-
:GeoLocationService,
|
79
|
-
:LabelService,
|
80
|
-
:LocationCriterionService,
|
81
|
-
:ManagedCustomerService,
|
82
|
-
:MediaService,
|
83
|
-
:MutateJobService,
|
84
|
-
:OfflineConversionFeedService,
|
85
|
-
:ReportDefinitionService,
|
86
|
-
:SharedCriterionService,
|
87
|
-
:SharedSetService,
|
88
|
-
:TargetingIdeaService,
|
89
|
-
:TrafficEstimatorService
|
90
|
-
],
|
91
48
|
:v201502 => [
|
92
49
|
:AccountLabelService,
|
93
50
|
:AdCustomizerFeedService,
|
@@ -181,7 +138,6 @@ module AdwordsApi
|
|
181
138
|
:PRODUCTION => {
|
182
139
|
:oauth_scope => 'https://www.googleapis.com/auth/adwords',
|
183
140
|
:header_ns => 'https://adwords.google.com/api/adwords/cm/',
|
184
|
-
:v201409 => 'https://adwords.google.com/api/adwords/',
|
185
141
|
:v201502 => 'https://adwords.google.com/api/adwords/',
|
186
142
|
:v201506 => 'https://adwords.google.com/api/adwords/'
|
187
143
|
}
|
@@ -190,48 +146,6 @@ module AdwordsApi
|
|
190
146
|
# Configure the subdirectories for each version / service pair.
|
191
147
|
# A missing pair means that only the base URL is used.
|
192
148
|
@@subdir_config = {
|
193
|
-
# v201409
|
194
|
-
[:v201409, :AdCustomizerFeedService] => 'cm/',
|
195
|
-
[:v201409, :AdGroupAdService] => 'cm/',
|
196
|
-
[:v201409, :AdGroupBidModifierService] => 'cm/',
|
197
|
-
[:v201409, :AdGroupCriterionService] => 'cm/',
|
198
|
-
[:v201409, :AdGroupExtensionSettingService] => 'cm/',
|
199
|
-
[:v201409, :AdGroupFeedService] => 'cm/',
|
200
|
-
[:v201409, :AdGroupService] => 'cm/',
|
201
|
-
[:v201409, :AdParamService] => 'cm/',
|
202
|
-
[:v201409, :BudgetOrderService] => 'billing/',
|
203
|
-
[:v201409, :CampaignAdExtensionService] => 'cm/',
|
204
|
-
[:v201409, :CampaignCriterionService] => 'cm/',
|
205
|
-
[:v201409, :CampaignExtensionSettingService] => 'cm/',
|
206
|
-
[:v201409, :CampaignFeedService] => 'cm/',
|
207
|
-
[:v201409, :CampaignService] => 'cm/',
|
208
|
-
[:v201409, :CampaignSharedSetService] => 'cm/',
|
209
|
-
[:v201409, :ConstantDataService] => 'cm/',
|
210
|
-
[:v201409, :ConversionTrackerService] => 'cm/',
|
211
|
-
[:v201409, :CustomerExtensionSettingService] => 'cm/',
|
212
|
-
[:v201409, :CustomerSyncService] => 'ch/',
|
213
|
-
[:v201409, :DataService] => 'cm/',
|
214
|
-
[:v201409, :ExperimentService] => 'cm/',
|
215
|
-
[:v201409, :FeedItemService] => 'cm/',
|
216
|
-
[:v201409, :FeedMappingService] => 'cm/',
|
217
|
-
[:v201409, :FeedService] => 'cm/',
|
218
|
-
[:v201409, :GeoLocationService] => 'cm/',
|
219
|
-
[:v201409, :LocationCriterionService] => 'cm/',
|
220
|
-
[:v201409, :MediaService] => 'cm/',
|
221
|
-
[:v201409, :MutateJobService] => 'cm/',
|
222
|
-
[:v201409, :OfflineConversionFeedService] => 'cm/',
|
223
|
-
[:v201409, :ReportDefinitionService] => 'cm/',
|
224
|
-
[:v201409, :SharedCriterionService] => 'cm/',
|
225
|
-
[:v201409, :SharedSetService] => 'cm/',
|
226
|
-
[:v201409, :TargetingIdeaService] => 'o/',
|
227
|
-
[:v201409, :TrafficEstimatorService] => 'o/',
|
228
|
-
[:v201409, :ManagedCustomerService] => 'mcm/',
|
229
|
-
[:v201409, :CustomerService] => 'mcm/',
|
230
|
-
[:v201409, :CustomerFeedService] => 'cm/',
|
231
|
-
[:v201409, :BudgetService] => 'cm/',
|
232
|
-
[:v201409, :BiddingStrategyService] => 'cm/',
|
233
|
-
[:v201409, :AdwordsUserListService] => 'rm/',
|
234
|
-
[:v201409, :LabelService] => 'cm/',
|
235
149
|
# v201502
|
236
150
|
[:v201502, :AccountLabelService] => 'mcm/',
|
237
151
|
[:v201502, :AdCustomizerFeedService] => 'cm/',
|
@@ -56,20 +56,20 @@ module AdwordsApi
|
|
56
56
|
}
|
57
57
|
skip_report_header = @config.read('library.skip_report_header')
|
58
58
|
unless skip_report_header.nil?
|
59
|
-
headers['skipReportHeader'] = skip_report_header
|
59
|
+
headers['skipReportHeader'] = skip_report_header.to_s
|
60
60
|
end
|
61
61
|
skip_report_summary = @config.read('library.skip_report_summary')
|
62
62
|
unless skip_report_summary.nil?
|
63
|
-
headers['skipReportSummary'] = skip_report_summary
|
63
|
+
headers['skipReportSummary'] = skip_report_summary.to_s
|
64
64
|
end
|
65
65
|
skip_column_header = @config.read('library.skip_column_header')
|
66
66
|
unless skip_column_header.nil?
|
67
|
-
headers['skipColumnHeader'] = skip_column_header
|
67
|
+
headers['skipColumnHeader'] = skip_column_header.to_s
|
68
68
|
end
|
69
69
|
include_zero_impressions_header =
|
70
70
|
@config.read('library.include_zero_impressions_header')
|
71
71
|
unless include_zero_impressions_header.nil?
|
72
|
-
headers['includeZeroImpressoins'] = include_zero_impressions_header
|
72
|
+
headers['includeZeroImpressoins'] = include_zero_impressions_header.to_s
|
73
73
|
end
|
74
74
|
return headers
|
75
75
|
end
|
data/lib/adwords_api/version.rb
CHANGED
@@ -25,7 +25,7 @@ def setup_mocks()
|
|
25
25
|
{"env:Envelope"=>
|
26
26
|
{"env:Header"=>
|
27
27
|
{"wsdl:RequestHeader"=>
|
28
|
-
{"userAgent"=>"ruby-tests (AwApi-Ruby/0.
|
28
|
+
{"userAgent"=>"ruby-tests (AwApi-Ruby/0.16.0, Common-Ruby/0.9.9, Savon/1.2.0, ruby/1.9.3, HTTPI/1.1.1, net_http)",
|
29
29
|
"developerToken"=>"dev_token123",
|
30
30
|
"clientCustomerId"=>"123-456-7890",
|
31
31
|
"xmlns"=>"https://adwords.google.com/api/adwords/cm/v201502"}},
|
@@ -6,7 +6,7 @@ def setup_mocks()
|
|
6
6
|
$api_config = {
|
7
7
|
:service => {:environment => 'PRODUCTION'},
|
8
8
|
:authentication => {
|
9
|
-
:method => '
|
9
|
+
:method => 'OAUTH2_SERVICE_ACCOUNT',
|
10
10
|
:oauth2_issuer => 'not-valid@developer.gserviceaccount.com',
|
11
11
|
:oauth2_secret => key_secret,
|
12
12
|
:oauth2_keyfile => file_name,
|
@@ -40,7 +40,7 @@ def setup_mocks()
|
|
40
40
|
{"env:Envelope"=>
|
41
41
|
{"env:Header"=>
|
42
42
|
{"wsdl:RequestHeader"=>
|
43
|
-
{"userAgent"=>"ruby-tests (AwApi-Ruby/0.
|
43
|
+
{"userAgent"=>"ruby-tests (AwApi-Ruby/0.16.0, Common-Ruby/0.9.9, Savon/1.2.0, ruby/1.9.3, HTTPI/1.1.1, net_http)",
|
44
44
|
"developerToken"=>"dev_token123",
|
45
45
|
"clientCustomerId"=>"123-456-7890",
|
46
46
|
"xmlns"=>"https://adwords.google.com/api/adwords/cm/v201502"}},
|
@@ -25,7 +25,7 @@ def setup_mocks()
|
|
25
25
|
{"env:Envelope"=>
|
26
26
|
{"env:Header"=>
|
27
27
|
{"wsdl:RequestHeader"=>
|
28
|
-
{"userAgent"=>"ruby-tests (AwApi-Ruby/0.
|
28
|
+
{"userAgent"=>"ruby-tests (AwApi-Ruby/0.16.0, Common-Ruby/0.9.9, Savon/1.2.0, ruby/1.9.3, HTTPI/1.1.1, net_http)",
|
29
29
|
"developerToken"=>"dev_token123",
|
30
30
|
"clientCustomerId"=>"123-456-7890",
|
31
31
|
"xmlns"=>"https://adwords.google.com/api/adwords/cm/v201506"}},
|
@@ -6,7 +6,7 @@ def setup_mocks()
|
|
6
6
|
$api_config = {
|
7
7
|
:service => {:environment => 'PRODUCTION'},
|
8
8
|
:authentication => {
|
9
|
-
:method => '
|
9
|
+
:method => 'OAUTH2_SERVICE_ACCOUNT',
|
10
10
|
:oauth2_issuer => 'not-valid@developer.gserviceaccount.com',
|
11
11
|
:oauth2_secret => key_secret,
|
12
12
|
:oauth2_keyfile => file_name,
|
@@ -40,7 +40,7 @@ def setup_mocks()
|
|
40
40
|
{"env:Envelope"=>
|
41
41
|
{"env:Header"=>
|
42
42
|
{"wsdl:RequestHeader"=>
|
43
|
-
{"userAgent"=>"ruby-tests (AwApi-Ruby/0.
|
43
|
+
{"userAgent"=>"ruby-tests (AwApi-Ruby/0.16.0, Common-Ruby/0.9.9, Savon/1.2.0, ruby/1.9.3, HTTPI/1.1.1, net_http)",
|
44
44
|
"developerToken"=>"dev_token123",
|
45
45
|
"clientCustomerId"=>"123-456-7890",
|
46
46
|
"xmlns"=>"https://adwords.google.com/api/adwords/cm/v201506"}},
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-adwords-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danial Klimkin
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-07-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: google-ads-common
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ~>
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 0.
|
20
|
+
version: 0.10.0
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - ~>
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 0.
|
27
|
+
version: 0.10.0
|
28
28
|
description: google-adwords-api is a AdWords API client library for Ruby
|
29
29
|
email:
|
30
30
|
- api.dklimkin@gmail.com
|
@@ -37,75 +37,6 @@ files:
|
|
37
37
|
- ChangeLog
|
38
38
|
- README.md
|
39
39
|
- adwords_api.yml
|
40
|
-
- examples/v201409/account_management/create_account.rb
|
41
|
-
- examples/v201409/account_management/get_account_changes.rb
|
42
|
-
- examples/v201409/account_management/get_account_hierarchy.rb
|
43
|
-
- examples/v201409/advanced_operations/add_ad_customizers.rb
|
44
|
-
- examples/v201409/advanced_operations/add_ad_group_bid_modifier.rb
|
45
|
-
- examples/v201409/advanced_operations/add_click_to_download_ad.rb
|
46
|
-
- examples/v201409/advanced_operations/add_text_ad_with_upgraded_urls.rb
|
47
|
-
- examples/v201409/advanced_operations/get_ad_group_bid_modifiers.rb
|
48
|
-
- examples/v201409/advanced_operations/upload_offline_conversions.rb
|
49
|
-
- examples/v201409/advanced_operations/use_shared_bidding_strategy.rb
|
50
|
-
- examples/v201409/basic_operations/add_ad_groups.rb
|
51
|
-
- examples/v201409/basic_operations/add_campaigns.rb
|
52
|
-
- examples/v201409/basic_operations/add_keywords.rb
|
53
|
-
- examples/v201409/basic_operations/add_text_ads.rb
|
54
|
-
- examples/v201409/basic_operations/get_ad_groups.rb
|
55
|
-
- examples/v201409/basic_operations/get_campaigns.rb
|
56
|
-
- examples/v201409/basic_operations/get_campaigns_with_awql.rb
|
57
|
-
- examples/v201409/basic_operations/get_keywords.rb
|
58
|
-
- examples/v201409/basic_operations/get_text_ads.rb
|
59
|
-
- examples/v201409/basic_operations/pause_ad.rb
|
60
|
-
- examples/v201409/basic_operations/remove_ad.rb
|
61
|
-
- examples/v201409/basic_operations/remove_ad_group.rb
|
62
|
-
- examples/v201409/basic_operations/remove_campaign.rb
|
63
|
-
- examples/v201409/basic_operations/remove_keyword.rb
|
64
|
-
- examples/v201409/basic_operations/update_ad_group.rb
|
65
|
-
- examples/v201409/basic_operations/update_campaign.rb
|
66
|
-
- examples/v201409/basic_operations/update_keyword.rb
|
67
|
-
- examples/v201409/campaign_management/add_campaign_labels.rb
|
68
|
-
- examples/v201409/campaign_management/add_experiment.rb
|
69
|
-
- examples/v201409/campaign_management/add_keywords_in_bulk.rb
|
70
|
-
- examples/v201409/campaign_management/add_location_extension.rb
|
71
|
-
- examples/v201409/campaign_management/get_all_disapproved_ads.rb
|
72
|
-
- examples/v201409/campaign_management/get_all_disapproved_ads_with_awql.rb
|
73
|
-
- examples/v201409/campaign_management/get_campaigns_by_label.rb
|
74
|
-
- examples/v201409/campaign_management/promote_experiment.rb
|
75
|
-
- examples/v201409/campaign_management/set_ad_parameters.rb
|
76
|
-
- examples/v201409/campaign_management/set_criterion_bid_modifier.rb
|
77
|
-
- examples/v201409/campaign_management/validate_text_ad.rb
|
78
|
-
- examples/v201409/error_handling/handle_partial_failures.rb
|
79
|
-
- examples/v201409/error_handling/handle_policy_violation_error.rb
|
80
|
-
- examples/v201409/extensions/add_google_my_business_location_extensions.rb
|
81
|
-
- examples/v201409/extensions/add_site_links.rb
|
82
|
-
- examples/v201409/extensions/add_site_links_using_feeds.rb
|
83
|
-
- examples/v201409/migration/migrate_to_extension_settings.rb
|
84
|
-
- examples/v201409/migration/upgrade_ad_url.rb
|
85
|
-
- examples/v201409/misc/create_ad_words_session_without_properties_file.rb
|
86
|
-
- examples/v201409/misc/get_all_images_and_videos.rb
|
87
|
-
- examples/v201409/misc/setup_oauth2.rb
|
88
|
-
- examples/v201409/misc/upload_image.rb
|
89
|
-
- examples/v201409/misc/use_oauth2_jwt.rb
|
90
|
-
- examples/v201409/optimization/estimate_keyword_traffic.rb
|
91
|
-
- examples/v201409/optimization/get_keyword_bid_simulations.rb
|
92
|
-
- examples/v201409/optimization/get_keyword_ideas.rb
|
93
|
-
- examples/v201409/remarketing/add_audience.rb
|
94
|
-
- examples/v201409/remarketing/add_conversion_tracker.rb
|
95
|
-
- examples/v201409/remarketing/add_rule_based_user_lists.rb
|
96
|
-
- examples/v201409/reporting/download_criteria_report.rb
|
97
|
-
- examples/v201409/reporting/download_criteria_report_with_awql.rb
|
98
|
-
- examples/v201409/reporting/get_report_fields.rb
|
99
|
-
- examples/v201409/reporting/parallel_report_download.rb
|
100
|
-
- examples/v201409/shopping_campaigns/add_product_partition_tree.rb
|
101
|
-
- examples/v201409/shopping_campaigns/add_product_scope.rb
|
102
|
-
- examples/v201409/shopping_campaigns/add_shopping_campaign.rb
|
103
|
-
- examples/v201409/shopping_campaigns/get_product_category_taxonomy.rb
|
104
|
-
- examples/v201409/targeting/add_campaign_targeting_criteria.rb
|
105
|
-
- examples/v201409/targeting/add_demographic_targeting_criteria.rb
|
106
|
-
- examples/v201409/targeting/get_campaign_targeting_criteria.rb
|
107
|
-
- examples/v201409/targeting/get_targetable_languages_and_carriers.rb
|
108
|
-
- examples/v201409/targeting/lookup_location.rb
|
109
40
|
- examples/v201502/account_management/create_account.rb
|
110
41
|
- examples/v201502/account_management/get_account_changes.rb
|
111
42
|
- examples/v201502/account_management/get_account_hierarchy.rb
|
@@ -222,11 +153,11 @@ files:
|
|
222
153
|
- examples/v201506/extensions/add_site_links_using_feeds.rb
|
223
154
|
- examples/v201506/migration/migrate_to_extension_settings.rb
|
224
155
|
- examples/v201506/migration/upgrade_ad_url.rb
|
225
|
-
- examples/v201506/misc/create_ad_words_session_without_properties_file.rb
|
226
156
|
- examples/v201506/misc/get_all_images_and_videos.rb
|
227
157
|
- examples/v201506/misc/setup_oauth2.rb
|
228
158
|
- examples/v201506/misc/upload_image.rb
|
229
159
|
- examples/v201506/misc/use_oauth2_jwt.rb
|
160
|
+
- examples/v201506/misc/use_runtime_config.rb
|
230
161
|
- examples/v201506/optimization/estimate_keyword_traffic.rb
|
231
162
|
- examples/v201506/optimization/get_keyword_bid_simulations.rb
|
232
163
|
- examples/v201506/optimization/get_keyword_ideas.rb
|
@@ -253,88 +184,6 @@ files:
|
|
253
184
|
- lib/adwords_api/report_header_handler.rb
|
254
185
|
- lib/adwords_api/report_utils.rb
|
255
186
|
- lib/adwords_api/utils.rb
|
256
|
-
- lib/adwords_api/v201409/ad_customizer_feed_service.rb
|
257
|
-
- lib/adwords_api/v201409/ad_customizer_feed_service_registry.rb
|
258
|
-
- lib/adwords_api/v201409/ad_group_ad_service.rb
|
259
|
-
- lib/adwords_api/v201409/ad_group_ad_service_registry.rb
|
260
|
-
- lib/adwords_api/v201409/ad_group_bid_modifier_service.rb
|
261
|
-
- lib/adwords_api/v201409/ad_group_bid_modifier_service_registry.rb
|
262
|
-
- lib/adwords_api/v201409/ad_group_criterion_service.rb
|
263
|
-
- lib/adwords_api/v201409/ad_group_criterion_service_registry.rb
|
264
|
-
- lib/adwords_api/v201409/ad_group_extension_setting_service.rb
|
265
|
-
- lib/adwords_api/v201409/ad_group_extension_setting_service_registry.rb
|
266
|
-
- lib/adwords_api/v201409/ad_group_feed_service.rb
|
267
|
-
- lib/adwords_api/v201409/ad_group_feed_service_registry.rb
|
268
|
-
- lib/adwords_api/v201409/ad_group_service.rb
|
269
|
-
- lib/adwords_api/v201409/ad_group_service_registry.rb
|
270
|
-
- lib/adwords_api/v201409/ad_param_service.rb
|
271
|
-
- lib/adwords_api/v201409/ad_param_service_registry.rb
|
272
|
-
- lib/adwords_api/v201409/adwords_user_list_service.rb
|
273
|
-
- lib/adwords_api/v201409/adwords_user_list_service_registry.rb
|
274
|
-
- lib/adwords_api/v201409/bidding_strategy_service.rb
|
275
|
-
- lib/adwords_api/v201409/bidding_strategy_service_registry.rb
|
276
|
-
- lib/adwords_api/v201409/budget_order_service.rb
|
277
|
-
- lib/adwords_api/v201409/budget_order_service_registry.rb
|
278
|
-
- lib/adwords_api/v201409/budget_service.rb
|
279
|
-
- lib/adwords_api/v201409/budget_service_registry.rb
|
280
|
-
- lib/adwords_api/v201409/campaign_ad_extension_service.rb
|
281
|
-
- lib/adwords_api/v201409/campaign_ad_extension_service_registry.rb
|
282
|
-
- lib/adwords_api/v201409/campaign_criterion_service.rb
|
283
|
-
- lib/adwords_api/v201409/campaign_criterion_service_registry.rb
|
284
|
-
- lib/adwords_api/v201409/campaign_extension_setting_service.rb
|
285
|
-
- lib/adwords_api/v201409/campaign_extension_setting_service_registry.rb
|
286
|
-
- lib/adwords_api/v201409/campaign_feed_service.rb
|
287
|
-
- lib/adwords_api/v201409/campaign_feed_service_registry.rb
|
288
|
-
- lib/adwords_api/v201409/campaign_service.rb
|
289
|
-
- lib/adwords_api/v201409/campaign_service_registry.rb
|
290
|
-
- lib/adwords_api/v201409/campaign_shared_set_service.rb
|
291
|
-
- lib/adwords_api/v201409/campaign_shared_set_service_registry.rb
|
292
|
-
- lib/adwords_api/v201409/constant_data_service.rb
|
293
|
-
- lib/adwords_api/v201409/constant_data_service_registry.rb
|
294
|
-
- lib/adwords_api/v201409/conversion_tracker_service.rb
|
295
|
-
- lib/adwords_api/v201409/conversion_tracker_service_registry.rb
|
296
|
-
- lib/adwords_api/v201409/customer_extension_setting_service.rb
|
297
|
-
- lib/adwords_api/v201409/customer_extension_setting_service_registry.rb
|
298
|
-
- lib/adwords_api/v201409/customer_feed_service.rb
|
299
|
-
- lib/adwords_api/v201409/customer_feed_service_registry.rb
|
300
|
-
- lib/adwords_api/v201409/customer_service.rb
|
301
|
-
- lib/adwords_api/v201409/customer_service_registry.rb
|
302
|
-
- lib/adwords_api/v201409/customer_sync_service.rb
|
303
|
-
- lib/adwords_api/v201409/customer_sync_service_registry.rb
|
304
|
-
- lib/adwords_api/v201409/data_service.rb
|
305
|
-
- lib/adwords_api/v201409/data_service_registry.rb
|
306
|
-
- lib/adwords_api/v201409/experiment_service.rb
|
307
|
-
- lib/adwords_api/v201409/experiment_service_registry.rb
|
308
|
-
- lib/adwords_api/v201409/feed_item_service.rb
|
309
|
-
- lib/adwords_api/v201409/feed_item_service_registry.rb
|
310
|
-
- lib/adwords_api/v201409/feed_mapping_service.rb
|
311
|
-
- lib/adwords_api/v201409/feed_mapping_service_registry.rb
|
312
|
-
- lib/adwords_api/v201409/feed_service.rb
|
313
|
-
- lib/adwords_api/v201409/feed_service_registry.rb
|
314
|
-
- lib/adwords_api/v201409/geo_location_service.rb
|
315
|
-
- lib/adwords_api/v201409/geo_location_service_registry.rb
|
316
|
-
- lib/adwords_api/v201409/label_service.rb
|
317
|
-
- lib/adwords_api/v201409/label_service_registry.rb
|
318
|
-
- lib/adwords_api/v201409/location_criterion_service.rb
|
319
|
-
- lib/adwords_api/v201409/location_criterion_service_registry.rb
|
320
|
-
- lib/adwords_api/v201409/managed_customer_service.rb
|
321
|
-
- lib/adwords_api/v201409/managed_customer_service_registry.rb
|
322
|
-
- lib/adwords_api/v201409/media_service.rb
|
323
|
-
- lib/adwords_api/v201409/media_service_registry.rb
|
324
|
-
- lib/adwords_api/v201409/mutate_job_service.rb
|
325
|
-
- lib/adwords_api/v201409/mutate_job_service_registry.rb
|
326
|
-
- lib/adwords_api/v201409/offline_conversion_feed_service.rb
|
327
|
-
- lib/adwords_api/v201409/offline_conversion_feed_service_registry.rb
|
328
|
-
- lib/adwords_api/v201409/report_definition_service.rb
|
329
|
-
- lib/adwords_api/v201409/report_definition_service_registry.rb
|
330
|
-
- lib/adwords_api/v201409/shared_criterion_service.rb
|
331
|
-
- lib/adwords_api/v201409/shared_criterion_service_registry.rb
|
332
|
-
- lib/adwords_api/v201409/shared_set_service.rb
|
333
|
-
- lib/adwords_api/v201409/shared_set_service_registry.rb
|
334
|
-
- lib/adwords_api/v201409/targeting_idea_service.rb
|
335
|
-
- lib/adwords_api/v201409/targeting_idea_service_registry.rb
|
336
|
-
- lib/adwords_api/v201409/traffic_estimator_service.rb
|
337
|
-
- lib/adwords_api/v201409/traffic_estimator_service_registry.rb
|
338
187
|
- lib/adwords_api/v201502/account_label_service.rb
|
339
188
|
- lib/adwords_api/v201502/account_label_service_registry.rb
|
340
189
|
- lib/adwords_api/v201502/ad_customizer_feed_service.rb
|
@@ -509,12 +358,10 @@ files:
|
|
509
358
|
- test/coverage.rb
|
510
359
|
- test/suite_integration.rb
|
511
360
|
- test/suite_unittests.rb
|
512
|
-
- test/templates/v201409/basic_operations_get_campaigns.def
|
513
|
-
- test/templates/v201409/misc_use_oauth2_jwt.def
|
514
361
|
- test/templates/v201502/basic_operations_get_campaigns.def
|
515
|
-
- test/templates/v201502/
|
362
|
+
- test/templates/v201502/misc_use_oauth2_service_account.def
|
516
363
|
- test/templates/v201506/basic_operations_get_campaigns.def
|
517
|
-
- test/templates/v201506/
|
364
|
+
- test/templates/v201506/misc_use_oauth2_service_account.def
|
518
365
|
- test/test_utils.rb
|
519
366
|
homepage: http://code.google.com/p/google-api-ads-ruby/
|
520
367
|
licenses:
|