Advertising Test Account

class ad_api.api.AdvertisingTestAccount(account='default', marketplace: Marketplaces = Marketplaces.EU, credentials=None, proxies=None, verify=True, timeout=None, debug=False, access_token=None)

Create test advertising account for 3P API integrators

create_test_account(body: dict or str) ApiResponse:

API to create test accounts

Submit a account creation request. You can create up to 1 test account type per marketplace.

Request body
countryCode (string): [required] Country code of the test account. [ US, CA, MX, BR, UK, DE, FR, ES, IT, CN, JP, AU, AE, SA, NL ]
accountMetaData (string): | vendorCode [optional] Vendor code that needs to be associated with the vendor account. example: ABCDE
accountType (string): [required] Type of test account. [ VENDOR, AUTHOR ]
Returns:

ApiResponse

### Example python

import json
from ad_api.api import AdvertisingTestAccount

data = \
{
    "countryCode": "ES",
    "accountMetaData":
        {
            "vendorCode": "ABCDE"
        },
    "accountType": "VENDOR"
}

result = AdvertisingTestAccount(account=store, marketplace=marketplace, debug=True).create_test_account(
    body=json.dumps(data)
)
{
'requestId': 'A7BCDGCEVXQ1CJJ4301V'
}
get_test_account(requestId: str) ApiResponse
Keyword Args
query requestId (string): [required] request id.
Returns:

ApiResponse

### Example python

from ad_api.api import AdvertisingTestAccount

request_id = "A7BCDGCEVXQ1CJJ4301V"

result = AdvertisingTestAccount(account=store, marketplace=marketplace, debug=True).get_test_account(
    requestId=request_id
)
{
"accountType": "VENDOR",
"asins": [],
"countryCode": "ES",
"id": "ENTITY1MBW4T9T7Z5PC",
"status": "COMPLETED"
}