POST api/AdGroupMedia?systemName={systemName}&username={username}&password={password}

Create a new ad group media

Request Information

URI Parameters

NameDescriptionTypeAdditional information
systemName

string

Required

username

string

Required

password

string

Required

Body Parameters

APIAdGroupMedia
NameDescriptionTypeAdditional information
Id

Unique identifier

integer

None.

AdGroupId

Unique identifier of ad group to which this belongs

integer

None.

MediaId

Unique identifier of media to which this relates

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "adGroupId": 2,
  "mediaId": 3
}

application/xml, text/xml

Sample:
<APIAdGroupMedia xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Rochester.Models">
  <AdGroupId>2</AdGroupId>
  <Id>1</Id>
  <MediaId>3</MediaId>
</APIAdGroupMedia>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>