Esempio n. 1
0
def test_parse_ad_group_ad_path():
    expected = {
        "customer_id": "mussel",
        "ad_group_id": "winkle",
        "ad_id": "nautilus",
    }
    path = ChangeStatusServiceClient.ad_group_ad_path(**expected)

    # Check that the path construction is reversible.
    actual = ChangeStatusServiceClient.parse_ad_group_ad_path(path)
    assert expected == actual
Esempio n. 2
0
def test_ad_group_ad_path():
    customer_id = "oyster"
    ad_group_id = "nudibranch"
    ad_id = "cuttlefish"
    expected = "customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}".format(
        customer_id=customer_id,
        ad_group_id=ad_group_id,
        ad_id=ad_id,
    )
    actual = ChangeStatusServiceClient.ad_group_ad_path(
        customer_id, ad_group_id, ad_id)
    assert expected == actual