{"id":727,"date":"2020-12-22T14:47:51","date_gmt":"2020-12-22T14:47:51","guid":{"rendered":"https:\/\/wiki.pontiac.media\/?page_id=727"},"modified":"2021-12-08T15:08:30","modified_gmt":"2021-12-08T15:08:30","slug":"creating-a-new-advertiser","status":"publish","type":"docs","link":"https:\/\/wiki.pontiac.media\/?docs=api\/api-remarketing-campaign-tutorial\/creating-a-new-advertiser","title":{"rendered":"Creating a New Advertiser"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">Post a new advertiser with the minimum required properties. In this case we are only passing in the name of the advertiser and its state.<\/span><br \/>\n<span style=\"font-weight: 400;\">curl -X POST -H &#8216;auth: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzZWF0SWQiOjI3MDIsInVzZXJJZCI6MzU1LCJleHBpcmVzIjoiMjAyMC0wOC0SDsawMjo1NToyNyJ9.d6gUDLA_Yx_Em5REoathACFMPcfv1TgL8B87P19q7yA&#8217;\u00a0 &#8216;https:\/\/api.pontiac.media\/pontiac\/advertiser&#8217; -d &#8216;{<\/span><br \/>\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0&#8220;name&#8221;:&#8221;newAdvertiser&#8221;,<\/span><br \/>\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0&#8220;status&#8221;:0<\/span><br \/>\n<span style=\"font-weight: 400;\">}&#8217;<\/span><br \/>\n&nbsp;<br \/>\n<b>Response:<\/b><br \/>\n<span style=\"font-weight: 400;\">{<\/span><br \/>\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0&#8220;timestamp&#8221;:&#8221;Mon Aug 17 20:56:19 UTC 2020&#8243;,<\/span><br \/>\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0&#8220;response&#8221;:{<\/span><br \/>\n<span style=\"font-weight: 400;\">\u00a0\u00a0<\/span> <span style=\"font-weight: 400;\">&#8220;Advertisers&#8221;:[<\/span><br \/>\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400;\">{<\/span><br \/>\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400;\">&#8220;pontiacAdvertiserId&#8221;:1713,<\/span><br \/>\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400;\">&#8220;name&#8221;:&#8221;newAdvertiser&#8221;,<\/span><br \/>\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400;\">&#8220;status&#8221;:0,<\/span><br \/>\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400;\">&#8220;seatId&#8221;:1000,<\/span><br \/>\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400;\">&#8220;insertionOrdersEnabled&#8221;:1,<\/span><br \/>\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400;\">&#8220;gdprEnabled&#8221;:0,<\/span><br \/>\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400;\">&#8220;politicalContentEnabled&#8221;:0,<\/span><br \/>\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400;\">&#8220;hasProfile&#8221;:0,<\/span><br \/>\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400;\">&#8220;gamblingEnabled&#8221;:0<\/span><br \/>\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0<\/span> <span style=\"font-weight: 400;\">}<\/span><br \/>\n<span style=\"font-weight: 400;\">\u00a0\u00a0<\/span> <span style=\"font-weight: 400;\">]<\/span><br \/>\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0},<\/span><br \/>\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0&#8220;accountStatus&#8221;:1,<\/span><br \/>\n<span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0&#8220;seatId&#8221;:1000<\/span><br \/>\n<span style=\"font-weight: 400;\">}<\/span><br \/>\n&nbsp;<br \/>\n<span style=\"font-weight: 400;\">From this you will need the <\/span><b>pontiacAdvertiserId<\/b><span style=\"font-weight: 400;\">, in this case <\/span><b>1713.<\/b><span style=\"font-weight: 400;\"> It will be used when creating the Line and the Creatives<\/span><span style=\"font-weight: 400;\">.<\/span><br \/>\n&nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":714,"menu_order":2,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-727","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=\/wp\/v2\/docs\/727","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=727"}],"version-history":[{"count":1,"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=\/wp\/v2\/docs\/727\/revisions"}],"predecessor-version":[{"id":6466,"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=\/wp\/v2\/docs\/727\/revisions\/6466"}],"up":[{"embeddable":true,"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=\/wp\/v2\/docs\/714"}],"next":[{"title":"Uploading a Creative","link":"https:\/\/wiki.pontiac.media\/?docs=api\/api-remarketing-campaign-tutorial\/uploading-a-creative","href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=\/wp\/v2\/docs\/730"}],"prev":[{"title":"Authentication","link":"https:\/\/wiki.pontiac.media\/?docs=api\/api-remarketing-campaign-tutorial\/authentication","href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=\/wp\/v2\/docs\/724"}],"wp:attachment":[{"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=727"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/wiki.pontiac.media\/index.php?rest_route=%2Fwp%2Fv2%2Fdoc_tag&post=727"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}