Example #1
0
def test_ad_group_ad_path():
    customer = "winkle"
    ad_group_ad = "nautilus"
    expected = "customers/{customer}/adGroupAds/{ad_group_ad}".format(
        customer=customer,
        ad_group_ad=ad_group_ad,
    )
    actual = AdGroupAdServiceClient.ad_group_ad_path(customer, ad_group_ad)
    assert expected == actual
Example #2
0
def test_parse_ad_group_ad_path():
    expected = {
        "customer": "scallop",
        "ad_group_ad": "abalone",
    }
    path = AdGroupAdServiceClient.ad_group_ad_path(**expected)

    # Check that the path construction is reversible.
    actual = AdGroupAdServiceClient.parse_ad_group_ad_path(path)
    assert expected == actual