We would like to track where campaigns are created from by labeling them with their source of creation. For example, use wc-gla for the web version, and for the mobile versions, something like wc-gla-android or wc-gla-ios.
This PR allows the creation of a new campaign with a specific label. Note that I haven't updated the frontend to send the label query parameter yet, as I would first like to define the label names we'll be using.
Screenshots:
Detailed test instructions:
Make the following call POST wp-json/wc/gla/ads/campaigns with this body:
Changes proposed in this Pull Request:
Part of pcTzPl-2nS-p2
We would like to track where campaigns are created from by labeling them with their source of creation. For example, use
wc-gla
for the web version, and for the mobile versions, something likewc-gla-android
orwc-gla-ios
.This PR allows the creation of a new campaign with a specific label. Note that I haven't updated the frontend to send the label query parameter yet, as I would first like to define the label names we'll be using.
Screenshots:
Detailed test instructions:
POST wp-json/wc/gla/ads/campaigns
with this body:You should see the campaign that you just created.
Additional details:
Changelog entry