targetingTemplates

POST /userprofiles/{userprofilesId}/targetingTemplates

Inserts a new targeting template.

Request

  • Base URL
    https://dfareporting.googleapis.com/dfareporting/v5
  • Auth
    OAuth 2 and OAuth 2
    Implicithttps://accounts.google.com/o/oauth2/auth
    Scopeshttps://www.googleapis.com/auth/dfatrafficking
    Authorization codehttps://accounts.google.com/o/oauth2/auth
    Token URLhttps://accounts.google.com/o/oauth2/token
    Scopeshttps://www.googleapis.com/auth/dfatrafficking
  • TypeScript
    A function with typed inputs. Its response is checked against the schema.

Path parameters

userprofilesIdstring required

Request body

accountIdstring int64

Account ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert.

advertiserIdstring int64

Advertiser ID of this targeting template. This is a required field on insert and is read-only after insert.

idstring int64

ID of this targeting template. This is a read-only, auto-generated field.

kindstring

Identifies what kind of resource this is. Value: the fixed string "dfareporting#targetingTemplate".

namestring

Name of this targeting template. This field is required. It must be less than 256 characters long and unique within an advertiser.

subaccountIdstring int64

Subaccount ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert.

Response

Successful response

accountIdstring int64

Account ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert.

advertiserIdstring int64

Advertiser ID of this targeting template. This is a required field on insert and is read-only after insert.

idstring int64

ID of this targeting template. This is a read-only, auto-generated field.

kindstring

Identifies what kind of resource this is. Value: the fixed string "dfareporting#targetingTemplate".

namestring

Name of this targeting template. This field is required. It must be less than 256 characters long and unique within an advertiser.

subaccountIdstring int64

Subaccount ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert.

Changes

No recorded changes to this operation across all 5 revisions of this API.