Marketing API Version

AdSet

Fields

BidInfo, account_id, adlabels, adset_schedule, bid_amount, bid_info, billing_event, budget_remaining, campaign_id, configured_status, created_time, creative_sequence, daily_budget, effective_status, end_time, id, is_autobid, lifetime_budget, lifetime_imps, name, optimization_goal, pacing_type, product_ad_behavior, promoted_object, rf_prediction_id, rtb_flag, start_time, targeting, updated_time

AdSet.get_ad_creatives (fields, params)

Returns iterator over AdCreative's associated with this set.

Name Type Description Required

fields

array

A list of fields to read.

No

params

map

A mapping of request parameters where a key is the parameter name and its value is a string or an object which can be JSON-encoded.

No

Sample Code

adset = AdSet('6040236422240')
adcreatives = adset.get_ad_creatives(fields=[
    AdCreative.Field.name,
    AdCreative.Field.id,
    AdCreative.Field.preview_url,
    AdCreative.Field.call_to_action_type,
])
print adcreatives

AdSet.get_ads (fields, params)

Returns iterator over Ad's associated with this set.

Name Type Description Required

fields

array

A list of fields to read.

No

params

map

A mapping of request parameters where a key is the parameter name and its value is a string or an object which can be JSON-encoded.

No

Sample Code

adset = AdSet('6040236422240')
adgroups = adset.get_ads(fields=[
    AdSet.Field.name,
    AdSet.Field.campaign_id,
    AdSet.Field.configured_status,
])
print adgroups