facebookads 0.2.10.0 → 0.2.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/facebook_ads.rb +1 -1
- data/lib/facebook_ads/ad_object.rb +8 -6
- data/lib/facebook_ads/ad_objects/ad.rb +2 -1
- data/lib/facebook_ads/ad_objects/ad_account.rb +31 -17
- data/lib/facebook_ads/ad_objects/ad_account_ad_rules_history.rb +45 -0
- data/lib/facebook_ads/ad_objects/ad_account_delivery_estimate.rb +2 -1
- data/lib/facebook_ads/ad_objects/ad_account_roas.rb +1 -1
- data/lib/facebook_ads/ad_objects/ad_account_targeting_unified.rb +6 -1
- data/lib/facebook_ads/ad_objects/ad_account_user.rb +1 -1
- data/lib/facebook_ads/ad_objects/ad_activity.rb +2 -1
- data/lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb +90 -0
- data/lib/facebook_ads/ad_objects/ad_asset_feed_spec_asset_label.rb +37 -0
- data/lib/facebook_ads/ad_objects/ad_asset_feed_spec_body.rb +39 -0
- data/lib/facebook_ads/ad_objects/ad_asset_feed_spec_caption.rb +39 -0
- data/lib/facebook_ads/ad_objects/ad_asset_feed_spec_description.rb +39 -0
- data/lib/facebook_ads/ad_objects/ad_asset_feed_spec_group_rule.rb +43 -0
- data/lib/facebook_ads/ad_objects/ad_asset_feed_spec_image.rb +41 -0
- data/lib/facebook_ads/ad_objects/ad_asset_feed_spec_link_url.rb +41 -0
- data/lib/facebook_ads/ad_objects/ad_asset_feed_spec_target_rule.rb +45 -0
- data/lib/facebook_ads/ad_objects/ad_asset_feed_spec_title.rb +39 -0
- data/lib/facebook_ads/ad_objects/ad_asset_feed_spec_video.rb +41 -0
- data/lib/facebook_ads/ad_objects/ad_async_request.rb +1 -1
- data/lib/facebook_ads/ad_objects/ad_async_request_set.rb +1 -1
- data/lib/facebook_ads/ad_objects/ad_async_request_set_notification_result.rb +1 -1
- data/lib/facebook_ads/ad_objects/ad_campaign_delivery_estimate.rb +2 -1
- data/lib/facebook_ads/ad_objects/ad_creative.rb +9 -1
- data/lib/facebook_ads/ad_objects/ad_creative_collection_thumbnail_info.rb +39 -0
- data/lib/facebook_ads/ad_objects/ad_creative_link_data.rb +12 -1
- data/lib/facebook_ads/ad_objects/ad_creative_link_data_app_link_spec.rb +1 -1
- data/lib/facebook_ads/ad_objects/ad_creative_link_data_call_to_action.rb +5 -1
- data/lib/facebook_ads/ad_objects/ad_creative_link_data_call_to_action_value.rb +1 -1
- data/lib/facebook_ads/ad_objects/ad_creative_link_data_child_attachment.rb +1 -1
- data/lib/facebook_ads/ad_objects/ad_creative_link_data_image_overlay_spec.rb +94 -0
- data/lib/facebook_ads/ad_objects/ad_creative_object_story_spec.rb +1 -1
- data/lib/facebook_ads/ad_objects/ad_creative_offer_data.rb +1 -1
- data/lib/facebook_ads/ad_objects/ad_creative_photo_data.rb +2 -1
- data/lib/facebook_ads/ad_objects/ad_creative_place_data.rb +2 -1
- data/lib/facebook_ads/ad_objects/ad_creative_post_click_configuration.rb +38 -0
- data/lib/facebook_ads/ad_objects/ad_creative_text_data.rb +1 -1
- data/lib/facebook_ads/ad_objects/ad_creative_video_data.rb +4 -1
- data/lib/facebook_ads/ad_objects/ad_image.rb +1 -1
- data/lib/facebook_ads/ad_objects/ad_keyword_stats.rb +1 -1
- data/lib/facebook_ads/ad_objects/ad_label.rb +1 -1
- data/lib/facebook_ads/ad_objects/ad_place_page_set.rb +1 -1
- data/lib/facebook_ads/ad_objects/ad_preview.rb +1 -1
- data/lib/facebook_ads/ad_objects/ad_promoted_object.rb +1 -1
- data/lib/facebook_ads/ad_objects/ad_recommendation.rb +1 -1
- data/lib/facebook_ads/ad_objects/ad_recommendation_data.rb +1 -1
- data/lib/facebook_ads/ad_objects/ad_report_run.rb +1 -1
- data/lib/facebook_ads/ad_objects/ad_rule.rb +56 -0
- data/lib/facebook_ads/ad_objects/ad_rule_evaluation_spec.rb +44 -0
- data/lib/facebook_ads/ad_objects/ad_rule_execution_options.rb +44 -0
- data/lib/facebook_ads/ad_objects/ad_rule_execution_spec.rb +49 -0
- data/lib/facebook_ads/ad_objects/ad_rule_filters.rb +55 -0
- data/lib/facebook_ads/ad_objects/ad_rule_history.rb +58 -0
- data/lib/facebook_ads/ad_objects/ad_rule_history_result.rb +45 -0
- data/lib/facebook_ads/ad_objects/ad_rule_history_result_action.rb +40 -0
- data/lib/facebook_ads/ad_objects/ad_rule_schedule.rb +39 -0
- data/lib/facebook_ads/ad_objects/ad_rule_schedule_spec.rb +38 -0
- data/lib/facebook_ads/ad_objects/ad_rule_trigger.rb +63 -0
- data/lib/facebook_ads/ad_objects/ad_set.rb +20 -4
- data/lib/facebook_ads/ad_objects/ad_study.rb +1 -1
- data/lib/facebook_ads/ad_objects/ad_study_cell.rb +1 -1
- data/lib/facebook_ads/ad_objects/ad_study_objective.rb +1 -1
- data/lib/facebook_ads/ad_objects/adgroup_placement_specific_review_feedback.rb +1 -1
- data/lib/facebook_ads/ad_objects/adgroup_relevance_score.rb +1 -1
- data/lib/facebook_ads/ad_objects/adgroup_review_feedback.rb +1 -1
- data/lib/facebook_ads/ad_objects/ads_action_stats.rb +2 -1
- data/lib/facebook_ads/ad_objects/ads_data_partner.rb +1 -1
- data/lib/facebook_ads/ad_objects/ads_image_crops.rb +1 -1
- data/lib/facebook_ads/ad_objects/ads_insights.rb +2 -2
- data/lib/facebook_ads/ad_objects/ads_pixel.rb +1 -1
- data/lib/facebook_ads/ad_objects/ads_pixel_stats.rb +1 -1
- data/lib/facebook_ads/ad_objects/ads_pixel_stats_result.rb +1 -1
- data/lib/facebook_ads/ad_objects/agency_client_declaration.rb +1 -1
- data/lib/facebook_ads/ad_objects/android_app_link.rb +1 -1
- data/lib/facebook_ads/ad_objects/app_links.rb +1 -1
- data/lib/facebook_ads/ad_objects/broad_targeting_categories.rb +1 -1
- data/lib/facebook_ads/ad_objects/business.rb +13 -64
- data/lib/facebook_ads/ad_objects/business_ad_account_request.rb +1 -1
- data/lib/facebook_ads/ad_objects/business_page_request.rb +1 -1
- data/lib/facebook_ads/ad_objects/campaign.rb +4 -1
- data/lib/facebook_ads/ad_objects/check_batch_request_status.rb +1 -1
- data/lib/facebook_ads/ad_objects/conversion_action_query.rb +1 -2
- data/lib/facebook_ads/ad_objects/custom_audience.rb +4 -1
- data/lib/facebook_ads/ad_objects/custom_audience_ad_account.rb +1 -1
- data/lib/facebook_ads/ad_objects/custom_audience_data_source.rb +9 -1
- data/lib/facebook_ads/ad_objects/custom_audience_permission.rb +1 -1
- data/lib/facebook_ads/ad_objects/custom_audience_prefill_state.rb +1 -1
- data/lib/facebook_ads/ad_objects/custom_audience_session.rb +1 -1
- data/lib/facebook_ads/ad_objects/custom_audience_status.rb +1 -1
- data/lib/facebook_ads/ad_objects/custom_audiences_tos.rb +1 -1
- data/lib/facebook_ads/ad_objects/custom_conversion.rb +3 -2
- data/lib/facebook_ads/ad_objects/custom_conversion_stats_result.rb +1 -1
- data/lib/facebook_ads/ad_objects/day_part.rb +1 -1
- data/lib/facebook_ads/ad_objects/delivery_check.rb +1 -1
- data/lib/facebook_ads/ad_objects/delivery_check_extra_info.rb +1 -1
- data/lib/facebook_ads/ad_objects/delivery_estimate.rb +1 -1
- data/lib/facebook_ads/ad_objects/domain.rb +1 -1
- data/lib/facebook_ads/ad_objects/event.rb +3 -1
- data/lib/facebook_ads/ad_objects/event_source_group.rb +1 -1
- data/lib/facebook_ads/ad_objects/external_event_source.rb +1 -1
- data/lib/facebook_ads/ad_objects/flexible_targeting.rb +1 -1
- data/lib/facebook_ads/ad_objects/funding_source_details.rb +1 -1
- data/lib/facebook_ads/ad_objects/funding_source_details_coupon.rb +1 -1
- data/lib/facebook_ads/ad_objects/hotel.rb +1 -1
- data/lib/facebook_ads/ad_objects/hotel_room.rb +1 -1
- data/lib/facebook_ads/ad_objects/id_name.rb +1 -1
- data/lib/facebook_ads/ad_objects/ios_app_link.rb +1 -1
- data/lib/facebook_ads/ad_objects/lead.rb +1 -1
- data/lib/facebook_ads/ad_objects/lead_gen_qualifier.rb +1 -1
- data/lib/facebook_ads/ad_objects/lead_gen_question.rb +3 -3
- data/lib/facebook_ads/ad_objects/lead_gen_question_option.rb +1 -1
- data/lib/facebook_ads/ad_objects/leadgen_form.rb +4 -2
- data/lib/facebook_ads/ad_objects/legacy_business_ad_account_request.rb +1 -1
- data/lib/facebook_ads/ad_objects/lookalike_spec.rb +1 -1
- data/lib/facebook_ads/ad_objects/minimum_budget.rb +1 -1
- data/lib/facebook_ads/ad_objects/offline_conversion_data_set.rb +99 -0
- data/lib/facebook_ads/ad_objects/offsite_pixel.rb +1 -1
- data/lib/facebook_ads/ad_objects/outcome_prediction_point.rb +1 -1
- data/lib/facebook_ads/ad_objects/partner_category.rb +1 -1
- data/lib/facebook_ads/ad_objects/product_catalog.rb +27 -9
- data/lib/facebook_ads/ad_objects/product_catalog_hotel_rooms_batch.rb +1 -1
- data/lib/facebook_ads/ad_objects/product_catalog_image_settings.rb +1 -1
- data/lib/facebook_ads/ad_objects/product_catalog_image_settings_operation.rb +1 -1
- data/lib/facebook_ads/ad_objects/product_catalog_pricing_variables_batch.rb +1 -1
- data/lib/facebook_ads/ad_objects/product_feed.rb +2 -1
- data/lib/facebook_ads/ad_objects/product_feed_schedule.rb +1 -1
- data/lib/facebook_ads/ad_objects/product_feed_upload.rb +3 -1
- data/lib/facebook_ads/ad_objects/product_feed_upload_error.rb +1 -1
- data/lib/facebook_ads/ad_objects/product_feed_upload_error_sample.rb +1 -1
- data/lib/facebook_ads/ad_objects/product_group.rb +1 -5
- data/lib/facebook_ads/ad_objects/product_item.rb +1 -1
- data/lib/facebook_ads/ad_objects/product_item_commerce_insights.rb +1 -1
- data/lib/facebook_ads/ad_objects/product_set.rb +1 -5
- data/lib/facebook_ads/ad_objects/product_variant.rb +1 -1
- data/lib/facebook_ads/ad_objects/profile_picture_source.rb +1 -1
- data/lib/facebook_ads/ad_objects/rate_card.rb +1 -1
- data/lib/facebook_ads/ad_objects/reach_estimate.rb +2 -1
- data/lib/facebook_ads/ad_objects/reach_frequency_prediction.rb +2 -2
- data/lib/facebook_ads/ad_objects/reach_frequency_spec.rb +1 -1
- data/lib/facebook_ads/ad_objects/rev_share_policy.rb +1 -1
- data/lib/facebook_ads/ad_objects/roas_cohorts_data.rb +1 -1
- data/lib/facebook_ads/ad_objects/roas_cohorts_per_cohort_interval_unit.rb +1 -1
- data/lib/facebook_ads/ad_objects/targeting.rb +2 -2
- data/lib/facebook_ads/ad_objects/targeting_dynamic_rule.rb +1 -1
- data/lib/facebook_ads/ad_objects/targeting_geo_location.rb +1 -1
- data/lib/facebook_ads/ad_objects/targeting_geo_location_city.rb +1 -1
- data/lib/facebook_ads/ad_objects/targeting_geo_location_custom_location.rb +1 -1
- data/lib/facebook_ads/ad_objects/targeting_geo_location_electoral_district.rb +1 -1
- data/lib/facebook_ads/ad_objects/targeting_geo_location_market.rb +1 -1
- data/lib/facebook_ads/ad_objects/targeting_geo_location_place.rb +1 -1
- data/lib/facebook_ads/ad_objects/targeting_geo_location_political_district.rb +1 -1
- data/lib/facebook_ads/ad_objects/targeting_geo_location_region.rb +1 -1
- data/lib/facebook_ads/ad_objects/targeting_geo_location_zip.rb +1 -1
- data/lib/facebook_ads/ad_objects/targeting_product_audience_spec.rb +1 -1
- data/lib/facebook_ads/ad_objects/targeting_product_audience_sub_spec.rb +1 -1
- data/lib/facebook_ads/ad_objects/targeting_sentence_line.rb +1 -1
- data/lib/facebook_ads/ad_objects/transaction.rb +1 -1
- data/lib/facebook_ads/ad_objects/transaction_currency_amount.rb +1 -1
- data/lib/facebook_ads/ad_objects/user.rb +1 -1
- data/lib/facebook_ads/ad_objects/user_lead_gen_disclaimer_response.rb +1 -1
- data/lib/facebook_ads/ad_objects/user_lead_gen_field_data.rb +1 -1
- data/lib/facebook_ads/ad_objects/video_thumbnail.rb +1 -1
- data/lib/facebook_ads/ad_objects/web_app_link.rb +1 -1
- data/lib/facebook_ads/ad_objects/windows_app_link.rb +1 -1
- data/lib/facebook_ads/ad_objects/windows_phone_app_link.rb +1 -1
- data/lib/facebook_ads/field_types/datetime.rb +7 -3
- data/lib/facebook_ads/fields.rb +4 -4
- data/lib/facebook_ads/helpers/shortcuts.rb +1 -1
- data/lib/facebook_ads/session.rb +1 -2
- data/lib/facebook_ads/version.rb +2 -2
- metadata +30 -3
@@ -19,7 +19,7 @@
|
|
19
19
|
# FB:AUTOGEN
|
20
20
|
|
21
21
|
module FacebookAds
|
22
|
-
# This class is auto-
|
22
|
+
# This class is auto-generated.
|
23
23
|
|
24
24
|
# For any issues or feature requests related to this class, please let us know
|
25
25
|
# on github and we'll fix in our codegen framework. We'll not be able to accept
|
@@ -0,0 +1,56 @@
|
|
1
|
+
# Copyright (c) 2017-present, Facebook, Inc. All rights reserved.
|
2
|
+
#
|
3
|
+
# You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
|
4
|
+
# copy, modify, and distribute this software in source code or binary form for use
|
5
|
+
# in connection with the web services and APIs provided by Facebook.
|
6
|
+
#
|
7
|
+
# As with any software that integrates with the Facebook platform, your use of
|
8
|
+
# this software is subject to the Facebook Platform Policy
|
9
|
+
# [http://developers.facebook.com/policy/]. This copyright notice shall be
|
10
|
+
# included in all copies or substantial portions of the software.
|
11
|
+
#
|
12
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
14
|
+
# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
15
|
+
# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
16
|
+
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
17
|
+
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
18
|
+
|
19
|
+
# FB:AUTOGEN
|
20
|
+
|
21
|
+
module FacebookAds
|
22
|
+
# This class is auto-generated.
|
23
|
+
|
24
|
+
# For any issues or feature requests related to this class, please let us know
|
25
|
+
# on github and we'll fix in our codegen framework. We'll not be able to accept
|
26
|
+
# pull request for this class.
|
27
|
+
|
28
|
+
class AdRule < AdObject
|
29
|
+
STATUS = [
|
30
|
+
"ENABLED",
|
31
|
+
"DISABLED",
|
32
|
+
"DELETED",
|
33
|
+
]
|
34
|
+
|
35
|
+
|
36
|
+
field :account_id, 'string'
|
37
|
+
field :created_by, 'User'
|
38
|
+
field :created_time, 'datetime'
|
39
|
+
field :evaluation_spec, 'AdRuleEvaluationSpec'
|
40
|
+
field :execution_spec, 'AdRuleExecutionSpec'
|
41
|
+
field :id, 'string'
|
42
|
+
field :name, 'string'
|
43
|
+
field :schedule_spec, 'AdRuleScheduleSpec'
|
44
|
+
field :status, 'string'
|
45
|
+
field :updated_time, 'datetime'
|
46
|
+
|
47
|
+
has_edge :history do |edge|
|
48
|
+
edge.get 'AdRuleHistory' do |api|
|
49
|
+
api.has_param :action, { enum: -> { AdRuleHistory::ACTION }}
|
50
|
+
api.has_param :hide_no_changes, 'bool'
|
51
|
+
api.has_param :object_id, 'string'
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# Copyright (c) 2017-present, Facebook, Inc. All rights reserved.
|
2
|
+
#
|
3
|
+
# You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
|
4
|
+
# copy, modify, and distribute this software in source code or binary form for use
|
5
|
+
# in connection with the web services and APIs provided by Facebook.
|
6
|
+
#
|
7
|
+
# As with any software that integrates with the Facebook platform, your use of
|
8
|
+
# this software is subject to the Facebook Platform Policy
|
9
|
+
# [http://developers.facebook.com/policy/]. This copyright notice shall be
|
10
|
+
# included in all copies or substantial portions of the software.
|
11
|
+
#
|
12
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
14
|
+
# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
15
|
+
# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
16
|
+
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
17
|
+
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
18
|
+
|
19
|
+
# FB:AUTOGEN
|
20
|
+
|
21
|
+
module FacebookAds
|
22
|
+
# This class is auto-generated.
|
23
|
+
|
24
|
+
# For any issues or feature requests related to this class, please let us know
|
25
|
+
# on github and we'll fix in our codegen framework. We'll not be able to accept
|
26
|
+
# pull request for this class.
|
27
|
+
|
28
|
+
class AdRuleEvaluationSpec < AdObject
|
29
|
+
EVALUATION_TYPE = [
|
30
|
+
"SCHEDULE",
|
31
|
+
"TRIGGER",
|
32
|
+
]
|
33
|
+
|
34
|
+
|
35
|
+
field :evaluation_type, { enum: -> { EVALUATION_TYPE }}
|
36
|
+
field :filters, { list: 'AdRuleFilters' }
|
37
|
+
field :trigger, 'AdRuleTrigger'
|
38
|
+
has_no_id
|
39
|
+
has_no_get
|
40
|
+
has_no_post
|
41
|
+
has_no_delete
|
42
|
+
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# Copyright (c) 2017-present, Facebook, Inc. All rights reserved.
|
2
|
+
#
|
3
|
+
# You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
|
4
|
+
# copy, modify, and distribute this software in source code or binary form for use
|
5
|
+
# in connection with the web services and APIs provided by Facebook.
|
6
|
+
#
|
7
|
+
# As with any software that integrates with the Facebook platform, your use of
|
8
|
+
# this software is subject to the Facebook Platform Policy
|
9
|
+
# [http://developers.facebook.com/policy/]. This copyright notice shall be
|
10
|
+
# included in all copies or substantial portions of the software.
|
11
|
+
#
|
12
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
14
|
+
# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
15
|
+
# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
16
|
+
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
17
|
+
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
18
|
+
|
19
|
+
# FB:AUTOGEN
|
20
|
+
|
21
|
+
module FacebookAds
|
22
|
+
# This class is auto-generated.
|
23
|
+
|
24
|
+
# For any issues or feature requests related to this class, please let us know
|
25
|
+
# on github and we'll fix in our codegen framework. We'll not be able to accept
|
26
|
+
# pull request for this class.
|
27
|
+
|
28
|
+
class AdRuleExecutionOptions < AdObject
|
29
|
+
OPERATOR = [
|
30
|
+
"EQUAL",
|
31
|
+
"IN",
|
32
|
+
]
|
33
|
+
|
34
|
+
|
35
|
+
field :field, 'string'
|
36
|
+
field :operator, { enum: -> { OPERATOR }}
|
37
|
+
field :value, 'object'
|
38
|
+
has_no_id
|
39
|
+
has_no_get
|
40
|
+
has_no_post
|
41
|
+
has_no_delete
|
42
|
+
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# Copyright (c) 2017-present, Facebook, Inc. All rights reserved.
|
2
|
+
#
|
3
|
+
# You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
|
4
|
+
# copy, modify, and distribute this software in source code or binary form for use
|
5
|
+
# in connection with the web services and APIs provided by Facebook.
|
6
|
+
#
|
7
|
+
# As with any software that integrates with the Facebook platform, your use of
|
8
|
+
# this software is subject to the Facebook Platform Policy
|
9
|
+
# [http://developers.facebook.com/policy/]. This copyright notice shall be
|
10
|
+
# included in all copies or substantial portions of the software.
|
11
|
+
#
|
12
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
14
|
+
# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
15
|
+
# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
16
|
+
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
17
|
+
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
18
|
+
|
19
|
+
# FB:AUTOGEN
|
20
|
+
|
21
|
+
module FacebookAds
|
22
|
+
# This class is auto-generated.
|
23
|
+
|
24
|
+
# For any issues or feature requests related to this class, please let us know
|
25
|
+
# on github and we'll fix in our codegen framework. We'll not be able to accept
|
26
|
+
# pull request for this class.
|
27
|
+
|
28
|
+
class AdRuleExecutionSpec < AdObject
|
29
|
+
EXECUTION_TYPE = [
|
30
|
+
"PING_ENDPOINT",
|
31
|
+
"NOTIFICATION",
|
32
|
+
"PAUSE",
|
33
|
+
"REBALANCE_BUDGET",
|
34
|
+
"CHANGE_BUDGET",
|
35
|
+
"CHANGE_BID",
|
36
|
+
"ROTATE",
|
37
|
+
"UNPAUSE",
|
38
|
+
]
|
39
|
+
|
40
|
+
|
41
|
+
field :execution_options, { list: 'AdRuleExecutionOptions' }
|
42
|
+
field :execution_type, { enum: -> { EXECUTION_TYPE }}
|
43
|
+
has_no_id
|
44
|
+
has_no_get
|
45
|
+
has_no_post
|
46
|
+
has_no_delete
|
47
|
+
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
# Copyright (c) 2017-present, Facebook, Inc. All rights reserved.
|
2
|
+
#
|
3
|
+
# You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
|
4
|
+
# copy, modify, and distribute this software in source code or binary form for use
|
5
|
+
# in connection with the web services and APIs provided by Facebook.
|
6
|
+
#
|
7
|
+
# As with any software that integrates with the Facebook platform, your use of
|
8
|
+
# this software is subject to the Facebook Platform Policy
|
9
|
+
# [http://developers.facebook.com/policy/]. This copyright notice shall be
|
10
|
+
# included in all copies or substantial portions of the software.
|
11
|
+
#
|
12
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
14
|
+
# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
15
|
+
# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
16
|
+
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
17
|
+
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
18
|
+
|
19
|
+
# FB:AUTOGEN
|
20
|
+
|
21
|
+
module FacebookAds
|
22
|
+
# This class is auto-generated.
|
23
|
+
|
24
|
+
# For any issues or feature requests related to this class, please let us know
|
25
|
+
# on github and we'll fix in our codegen framework. We'll not be able to accept
|
26
|
+
# pull request for this class.
|
27
|
+
|
28
|
+
class AdRuleFilters < AdObject
|
29
|
+
OPERATOR = [
|
30
|
+
"GREATER_THAN",
|
31
|
+
"LESS_THAN",
|
32
|
+
"EQUAL",
|
33
|
+
"NOT_EQUAL",
|
34
|
+
"IN_RANGE",
|
35
|
+
"NOT_IN_RANGE",
|
36
|
+
"IN",
|
37
|
+
"NOT_IN",
|
38
|
+
"CONTAIN",
|
39
|
+
"NOT_CONTAIN",
|
40
|
+
"ANY",
|
41
|
+
"ALL",
|
42
|
+
"NONE",
|
43
|
+
]
|
44
|
+
|
45
|
+
|
46
|
+
field :field, 'string'
|
47
|
+
field :operator, { enum: -> { OPERATOR }}
|
48
|
+
field :value, 'object'
|
49
|
+
has_no_id
|
50
|
+
has_no_get
|
51
|
+
has_no_post
|
52
|
+
has_no_delete
|
53
|
+
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
# Copyright (c) 2017-present, Facebook, Inc. All rights reserved.
|
2
|
+
#
|
3
|
+
# You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
|
4
|
+
# copy, modify, and distribute this software in source code or binary form for use
|
5
|
+
# in connection with the web services and APIs provided by Facebook.
|
6
|
+
#
|
7
|
+
# As with any software that integrates with the Facebook platform, your use of
|
8
|
+
# this software is subject to the Facebook Platform Policy
|
9
|
+
# [http://developers.facebook.com/policy/]. This copyright notice shall be
|
10
|
+
# included in all copies or substantial portions of the software.
|
11
|
+
#
|
12
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
14
|
+
# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
15
|
+
# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
16
|
+
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
17
|
+
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
18
|
+
|
19
|
+
# FB:AUTOGEN
|
20
|
+
|
21
|
+
module FacebookAds
|
22
|
+
# This class is auto-generated.
|
23
|
+
|
24
|
+
# For any issues or feature requests related to this class, please let us know
|
25
|
+
# on github and we'll fix in our codegen framework. We'll not be able to accept
|
26
|
+
# pull request for this class.
|
27
|
+
|
28
|
+
class AdRuleHistory < AdObject
|
29
|
+
ACTION = [
|
30
|
+
"BUDGET_NOT_REDISTRIBUTED",
|
31
|
+
"CHANGED_BID",
|
32
|
+
"CHANGED_BUDGET",
|
33
|
+
"EMAIL",
|
34
|
+
"ENDPOINT_PINGED",
|
35
|
+
"ERROR",
|
36
|
+
"FACEBOOK_NOTIFICATION_SENT",
|
37
|
+
"MESSAGE_SENT",
|
38
|
+
"NOT_CHANGED",
|
39
|
+
"PAUSED",
|
40
|
+
"UNPAUSED",
|
41
|
+
]
|
42
|
+
|
43
|
+
|
44
|
+
field :evaluation_spec, 'AdRuleEvaluationSpec'
|
45
|
+
field :exception_code, 'int'
|
46
|
+
field :exception_message, 'string'
|
47
|
+
field :execution_spec, 'AdRuleExecutionSpec'
|
48
|
+
field :is_manual, 'bool'
|
49
|
+
field :results, { list: 'AdRuleHistoryResult' }
|
50
|
+
field :schedule_spec, 'AdRuleScheduleSpec'
|
51
|
+
field :timestamp, 'datetime'
|
52
|
+
has_no_id
|
53
|
+
has_no_get
|
54
|
+
has_no_post
|
55
|
+
has_no_delete
|
56
|
+
|
57
|
+
end
|
58
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# Copyright (c) 2017-present, Facebook, Inc. All rights reserved.
|
2
|
+
#
|
3
|
+
# You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
|
4
|
+
# copy, modify, and distribute this software in source code or binary form for use
|
5
|
+
# in connection with the web services and APIs provided by Facebook.
|
6
|
+
#
|
7
|
+
# As with any software that integrates with the Facebook platform, your use of
|
8
|
+
# this software is subject to the Facebook Platform Policy
|
9
|
+
# [http://developers.facebook.com/policy/]. This copyright notice shall be
|
10
|
+
# included in all copies or substantial portions of the software.
|
11
|
+
#
|
12
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
14
|
+
# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
15
|
+
# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
16
|
+
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
17
|
+
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
18
|
+
|
19
|
+
# FB:AUTOGEN
|
20
|
+
|
21
|
+
module FacebookAds
|
22
|
+
# This class is auto-generated.
|
23
|
+
|
24
|
+
# For any issues or feature requests related to this class, please let us know
|
25
|
+
# on github and we'll fix in our codegen framework. We'll not be able to accept
|
26
|
+
# pull request for this class.
|
27
|
+
|
28
|
+
class AdRuleHistoryResult < AdObject
|
29
|
+
OBJECT_TYPE = [
|
30
|
+
"CAMPAIGN",
|
31
|
+
"ADSET",
|
32
|
+
"AD",
|
33
|
+
]
|
34
|
+
|
35
|
+
|
36
|
+
field :actions, { list: 'AdRuleHistoryResultAction' }
|
37
|
+
field :object_id, 'string'
|
38
|
+
field :object_type, { enum: -> { OBJECT_TYPE }}
|
39
|
+
has_no_id
|
40
|
+
has_no_get
|
41
|
+
has_no_post
|
42
|
+
has_no_delete
|
43
|
+
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# Copyright (c) 2017-present, Facebook, Inc. All rights reserved.
|
2
|
+
#
|
3
|
+
# You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
|
4
|
+
# copy, modify, and distribute this software in source code or binary form for use
|
5
|
+
# in connection with the web services and APIs provided by Facebook.
|
6
|
+
#
|
7
|
+
# As with any software that integrates with the Facebook platform, your use of
|
8
|
+
# this software is subject to the Facebook Platform Policy
|
9
|
+
# [http://developers.facebook.com/policy/]. This copyright notice shall be
|
10
|
+
# included in all copies or substantial portions of the software.
|
11
|
+
#
|
12
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
14
|
+
# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
15
|
+
# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
16
|
+
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
17
|
+
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
18
|
+
|
19
|
+
# FB:AUTOGEN
|
20
|
+
|
21
|
+
module FacebookAds
|
22
|
+
# This class is auto-generated.
|
23
|
+
|
24
|
+
# For any issues or feature requests related to this class, please let us know
|
25
|
+
# on github and we'll fix in our codegen framework. We'll not be able to accept
|
26
|
+
# pull request for this class.
|
27
|
+
|
28
|
+
class AdRuleHistoryResultAction < AdObject
|
29
|
+
|
30
|
+
field :action, 'string'
|
31
|
+
field :field, 'string'
|
32
|
+
field :new_value, 'string'
|
33
|
+
field :old_value, 'string'
|
34
|
+
has_no_id
|
35
|
+
has_no_get
|
36
|
+
has_no_post
|
37
|
+
has_no_delete
|
38
|
+
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# Copyright (c) 2017-present, Facebook, Inc. All rights reserved.
|
2
|
+
#
|
3
|
+
# You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
|
4
|
+
# copy, modify, and distribute this software in source code or binary form for use
|
5
|
+
# in connection with the web services and APIs provided by Facebook.
|
6
|
+
#
|
7
|
+
# As with any software that integrates with the Facebook platform, your use of
|
8
|
+
# this software is subject to the Facebook Platform Policy
|
9
|
+
# [http://developers.facebook.com/policy/]. This copyright notice shall be
|
10
|
+
# included in all copies or substantial portions of the software.
|
11
|
+
#
|
12
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
14
|
+
# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
15
|
+
# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
16
|
+
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
17
|
+
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
18
|
+
|
19
|
+
# FB:AUTOGEN
|
20
|
+
|
21
|
+
module FacebookAds
|
22
|
+
# This class is auto-generated.
|
23
|
+
|
24
|
+
# For any issues or feature requests related to this class, please let us know
|
25
|
+
# on github and we'll fix in our codegen framework. We'll not be able to accept
|
26
|
+
# pull request for this class.
|
27
|
+
|
28
|
+
class AdRuleSchedule < AdObject
|
29
|
+
|
30
|
+
field :days, { list: 'int' }
|
31
|
+
field :end_minute, 'int'
|
32
|
+
field :start_minute, 'int'
|
33
|
+
has_no_id
|
34
|
+
has_no_get
|
35
|
+
has_no_post
|
36
|
+
has_no_delete
|
37
|
+
|
38
|
+
end
|
39
|
+
end
|