Struct mailchimp_api::facebook_ads::FacebookAds
source · pub struct FacebookAds {
pub client: Client,
}
Fields
client: Client
Implementations
sourceimpl FacebookAds
impl FacebookAds
sourcepub async fn get_all(
&self,
fields: &[String],
exclude_fields: &[String],
count: i64,
offset: i64,
sort_field: GetAllFacebookAdsSortField,
sort_dir: SortDir
) -> Result<GetAllFacebookAdsResponse>
pub async fn get_all(
&self,
fields: &[String],
exclude_fields: &[String],
count: i64,
offset: i64,
sort_field: GetAllFacebookAdsSortField,
sort_dir: SortDir
) -> Result<GetAllFacebookAdsResponse>
List facebook ads.
This function performs a GET
to the /facebook-ads
endpoint.
Get list of Facebook ads.
Parameters:
fields: &[String]
– A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.exclude_fields: &[String]
– A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.count: i64
– The number of records to return. Default value is 10. Maximum value is 1000.offset: i64
– Used for pagination, this it the number of records from a collection to skip. Default value is 0.sort_field: crate::types::GetAllFacebookAdsSortField
– Returns files sorted by the specified field.sort_dir: crate::types::SortDir
– Determines the order direction for sorted results.
sourcepub async fn get(
&self,
fields: &[String],
outreach_id: &str,
exclude_fields: &[String]
) -> Result<FacebookAdsAllOf>
pub async fn get(
&self,
fields: &[String],
outreach_id: &str,
exclude_fields: &[String]
) -> Result<FacebookAdsAllOf>
Get facebook ad info.
This function performs a GET
to the /facebook-ads/{outreach_id}
endpoint.
Get details of a Facebook ad.
Parameters:
fields: &[String]
– A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.outreach_id: &str
– The name of the folder.exclude_fields: &[String]
– A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
Auto Trait Implementations
impl !RefUnwindSafe for FacebookAds
impl Send for FacebookAds
impl Sync for FacebookAds
impl Unpin for FacebookAds
impl !UnwindSafe for FacebookAds
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more