Struct gapi_grpc::google::ads::googleads::v7::resources::ChangeEvent[][src]

pub struct ChangeEvent {
    pub resource_name: String,
    pub change_date_time: String,
    pub change_resource_type: i32,
    pub change_resource_name: String,
    pub client_type: i32,
    pub user_email: String,
    pub old_resource: Option<ChangedResource>,
    pub new_resource: Option<ChangedResource>,
    pub resource_change_operation: i32,
    pub changed_fields: Option<FieldMask>,
    pub campaign: String,
    pub ad_group: String,
    pub feed: String,
    pub feed_item: String,
}

Describes the granular change of returned resource of certain resource types. Changes made through UI, API and new versions of Editor by external users (including external users, and internal users that can be shown externally) in the past 30 days will be shown. The change shows the old values of the changed fields before the change and the new values right after the change. ChangeEvent could have up to 3 minutes delay to reflect a new change.

Fields

resource_name: String

Output only. The resource name of the change event. Change event resource names have the form:

customers/{customer_id}/changeEvent/{timestamp_micros}~{command_index}~{mutate_index}

change_date_time: String

Output only. Time at which the change was committed on this resource.

change_resource_type: i32

Output only. The type of the changed resource. This dictates what resource will be set in old_resource and new_resource.

change_resource_name: String

Output only. The Simply resource this change occurred on.

client_type: i32

Output only. Where the change was made through.

user_email: String

Output only. The email of the user who made this change.

old_resource: Option<ChangedResource>

Output only. The old resource before the change. Only changed fields will be populated.

new_resource: Option<ChangedResource>

Output only. The new resource after the change. Only changed fields will be populated.

resource_change_operation: i32

Output only. The operation on the changed resource.

changed_fields: Option<FieldMask>

Output only. A list of fields that are changed in the returned resource.

campaign: String

Output only. The Campaign affected by this change.

ad_group: String

Output only. The AdGroup affected by this change.

feed: String

Output only. The Feed affected by this change.

feed_item: String

Output only. The FeedItem affected by this change.

Implementations

impl ChangeEvent[src]

pub fn change_resource_type(&self) -> ChangeEventResourceType[src]

Returns the enum value of change_resource_type, or the default if the field is set to an invalid enum value.

pub fn set_change_resource_type(&mut self, value: ChangeEventResourceType)[src]

Sets change_resource_type to the provided enum value.

pub fn client_type(&self) -> ChangeClientType[src]

Returns the enum value of client_type, or the default if the field is set to an invalid enum value.

pub fn set_client_type(&mut self, value: ChangeClientType)[src]

Sets client_type to the provided enum value.

pub fn resource_change_operation(&self) -> ResourceChangeOperation[src]

Returns the enum value of resource_change_operation, or the default if the field is set to an invalid enum value.

pub fn set_resource_change_operation(&mut self, value: ResourceChangeOperation)[src]

Sets resource_change_operation to the provided enum value.

Trait Implementations

impl Clone for ChangeEvent[src]

impl Debug for ChangeEvent[src]

impl Default for ChangeEvent[src]

impl Message for ChangeEvent[src]

impl PartialEq<ChangeEvent> for ChangeEvent[src]

impl StructuralPartialEq for ChangeEvent[src]

Auto Trait Implementations

impl RefUnwindSafe for ChangeEvent

impl Send for ChangeEvent

impl Sync for ChangeEvent

impl Unpin for ChangeEvent

impl UnwindSafe for ChangeEvent

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]