-
Notifications
You must be signed in to change notification settings - Fork 110
added twitter tracking pixel #112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
from twitter_ads.enum import TRANSFORM | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
from twitter_ads.resource import resource_property, Resource, Persistence, Batch, Analytics | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
from twitter_ads.http import Request | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
from twitter_ads.cursor import Cursor | ||
|
||
class Pixel(Resource, Persistence): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would prefer a different name, but not sure what that should be |
||
|
||
PROPERTIES = {} | ||
|
||
RESOURCE_COLLECTION = '/1/accounts/{account_id}/web_event_tags' | ||
RESOURCE = '/1/accounts/{account_id}/web_event_tags/{id}' | ||
|
||
# read only | ||
resource_property(Pixel, 'embed_code', readonly=True) | ||
resource_property(Pixel, 'id', readonly=True) | ||
resource_property(Pixel, 'status', readonly=True) | ||
resource_property(Pixel, 'website_tag_id', readonly=True) | ||
|
||
#writeable | ||
resource_property(Pixel, 'account_id') | ||
resource_property(Pixel, 'name') | ||
resource_property(Pixel, 'click_window') | ||
resource_property(Pixel, 'view_through_window') | ||
resource_property(Pixel, 'type') | ||
resource_property(Pixel, 'retargeting_enabled') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would prefer a different name, but not sure what that should be